Add more button/navbar colors and gradient mix section to theme editor
This commit is contained in:
1 parent
e43a768ce4
commit
f386ae2b25
4 files changed
+53
-8
No files matched your search
@@ -10,12 +10,20 @@ import { FONTS, PRESETS, THEME_COLOR_KEYS } from "@/lib/theme-presets";
|
||||
|
||||
// Only hex/keyword colour values are accepted (matches ThemeVars' sanitiser).
|
||||
const COLOR_RE = /^[#a-zA-Z0-9(),.\s%-]+$/;
|
||||
// Extra colour settings beyond the preset palette (buttons + links).
|
||||
// Extra colour settings beyond the preset palette (buttons + links + gradients).
|
||||
const EXTRA_COLOR_KEYS = [
|
||||
"button_secondary_color",
|
||||
"button_secondary_text_color",
|
||||
"button_danger_color",
|
||||
"button_danger_text_color",
|
||||
"button_outline_color",
|
||||
"button_outline_text_color",
|
||||
"button_secondary_hover_color",
|
||||
"button_danger_hover_color",
|
||||
"link_color",
|
||||
"link_hover_color",
|
||||
"gradient_from",
|
||||
"gradient_to",
|
||||
];
|
||||
const HEADING_KEYS = ["size_heading_h1", "size_heading_h2", "size_heading_h3"];
|
||||
const CUSTOM_CSS_MAX = 20000;
|
||||
|
||||
Reference in new issue
Block a user