Add 4 new theme colors (success, warning, error, info) with full preset support
This commit is contained in:
1 parent
54c03c998c
commit
e43a768ce4
4 files changed
+87
-7
No files matched your search
@@ -36,6 +36,10 @@ export const THEME_COLOR_KEYS = [
|
||||
"color_text",
|
||||
"color_text_muted",
|
||||
"color_accent",
|
||||
"color_success",
|
||||
"color_warning",
|
||||
"color_error",
|
||||
"color_info",
|
||||
"button_primary_color",
|
||||
"button_text_color",
|
||||
"border_color",
|
||||
@@ -54,6 +58,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#0f172a",
|
||||
color_text_muted: "#64748b",
|
||||
color_accent: "#10b981",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#f59e0b",
|
||||
button_text_color: "#1e293b",
|
||||
border_color: "#eeb425",
|
||||
@@ -68,6 +76,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#e5e7eb",
|
||||
color_text_muted: "#9ca3af",
|
||||
color_accent: "#22c55e",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#facc15",
|
||||
color_error: "#f87171",
|
||||
color_info: "#38bdf8",
|
||||
button_primary_color: "#eeb425",
|
||||
button_text_color: "#1a1a2e",
|
||||
border_color: "#eeb425",
|
||||
@@ -82,6 +94,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#082f49",
|
||||
color_text_muted: "#64748b",
|
||||
color_accent: "#14b8a6",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#0ea5e9",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#38bdf8",
|
||||
@@ -96,6 +112,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#052e16",
|
||||
color_text_muted: "#5f6b63",
|
||||
color_accent: "#84cc16",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#16a34a",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#22c55e",
|
||||
@@ -110,6 +130,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#431407",
|
||||
color_text_muted: "#78716c",
|
||||
color_accent: "#ec4899",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#f97316",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#fb923c",
|
||||
@@ -124,6 +148,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#500724",
|
||||
color_text_muted: "#9d6b80",
|
||||
color_accent: "#a855f7",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#ec4899",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#f472b6",
|
||||
@@ -138,6 +166,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#e9e5ff",
|
||||
color_text_muted: "#a39dcf",
|
||||
color_accent: "#22d3ee",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#facc15",
|
||||
color_error: "#f87171",
|
||||
color_info: "#38bdf8",
|
||||
button_primary_color: "#a855f7",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#7c3aed",
|
||||
@@ -152,6 +184,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#1e1b4b",
|
||||
color_text_muted: "#636681",
|
||||
color_accent: "#d97706",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#4f46e5",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#818cf8",
|
||||
@@ -166,6 +202,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#f5e9ff",
|
||||
color_text_muted: "#b08fd6",
|
||||
color_accent: "#ff2a6d",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#facc15",
|
||||
color_error: "#f87171",
|
||||
color_info: "#38bdf8",
|
||||
button_primary_color: "#ff2a6d",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#05d9e8",
|
||||
@@ -180,6 +220,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#e8ffe8",
|
||||
color_text_muted: "#7fae7f",
|
||||
color_accent: "#ff00ff",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#facc15",
|
||||
color_error: "#f87171",
|
||||
color_info: "#38bdf8",
|
||||
button_primary_color: "#39ff14",
|
||||
button_text_color: "#0a0a0a",
|
||||
border_color: "#39ff14",
|
||||
@@ -194,6 +238,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#3f2d1c",
|
||||
color_text_muted: "#8a7560",
|
||||
color_accent: "#15803d",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#a16207",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#ca8a04",
|
||||
@@ -208,6 +256,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#0e3a4f",
|
||||
color_text_muted: "#5b7585",
|
||||
color_accent: "#6366f1",
|
||||
color_success: "#16a34a",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#0891b2",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#67e8f9",
|
||||
@@ -222,6 +274,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#14321f",
|
||||
color_text_muted: "#5f7a68",
|
||||
color_accent: "#15803d",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#eab308",
|
||||
color_error: "#ef4444",
|
||||
color_info: "#0ea5e9",
|
||||
button_primary_color: "#dc2626",
|
||||
button_text_color: "#ffffff",
|
||||
border_color: "#16a34a",
|
||||
@@ -236,6 +292,10 @@ export const PRESETS: Record<string, Record<string, string>> = {
|
||||
color_text: "#dfe5ef",
|
||||
color_text_muted: "#94a0b5",
|
||||
color_accent: "#5eb0c9",
|
||||
color_success: "#22c55e",
|
||||
color_warning: "#facc15",
|
||||
color_error: "#f87171",
|
||||
color_info: "#38bdf8",
|
||||
button_primary_color: "#e8a33d",
|
||||
button_text_color: "#1b2230",
|
||||
border_color: "#e8a33d",
|
||||
|
||||
Reference in new issue
Block a user