This commit is contained in:
1 parent
e85e4d74ea
commit
2e4ed76121
378 files changed
+22404
-20686
No files matched your search
+24
-11
@@ -2,19 +2,32 @@ import { deriveAdminPalette, derivePublicForegrounds, readableColor } from "@/li
|
||||
import type { ThemePalette } from "@/lib/theme-presets";
|
||||
|
||||
const CSS_VARIABLES: Record<keyof ThemePalette, string> = {
|
||||
color_primary: "color-primary", color_background: "color-background",
|
||||
color_surface: "color-surface", color_dropdown: "color-dropdown",
|
||||
color_navbar: "color-navbar", color_navbar_text: "color-navbar-text",
|
||||
color_text: "color-text", color_text_muted: "color-text-muted",
|
||||
color_accent: "color-accent", color_success: "color-success",
|
||||
color_warning: "color-warning", color_error: "color-error", color_info: "color-info",
|
||||
button_primary_color: "button-color", button_text_color: "button-text-color",
|
||||
color_primary: "color-primary",
|
||||
color_background: "color-background",
|
||||
color_surface: "color-surface",
|
||||
color_dropdown: "color-dropdown",
|
||||
color_navbar: "color-navbar",
|
||||
color_navbar_text: "color-navbar-text",
|
||||
color_text: "color-text",
|
||||
color_text_muted: "color-text-muted",
|
||||
color_accent: "color-accent",
|
||||
color_success: "color-success",
|
||||
color_warning: "color-warning",
|
||||
color_error: "color-error",
|
||||
color_info: "color-info",
|
||||
button_primary_color: "button-color",
|
||||
button_text_color: "button-text-color",
|
||||
button_secondary_color: "button-secondary-color",
|
||||
button_secondary_text_color: "button-secondary-text-color",
|
||||
button_danger_color: "button-danger-color", button_danger_text_color: "button-danger-text-color",
|
||||
button_outline_color: "button-outline-color", button_outline_text_color: "button-outline-text-color",
|
||||
link_color: "link-color", link_hover_color: "link-hover-color",
|
||||
border_color: "border-color", gradient_from: "gradient-from", gradient_to: "gradient-to",
|
||||
button_danger_color: "button-danger-color",
|
||||
button_danger_text_color: "button-danger-text-color",
|
||||
button_outline_color: "button-outline-color",
|
||||
button_outline_text_color: "button-outline-text-color",
|
||||
link_color: "link-color",
|
||||
link_hover_color: "link-hover-color",
|
||||
border_color: "border-color",
|
||||
gradient_from: "gradient-from",
|
||||
gradient_to: "gradient-to",
|
||||
};
|
||||
|
||||
export function themePaletteCss(selector: string, palette: ThemePalette): string {
|
||||
|
||||
Reference in new issue
Block a user