import type { ThemeColors } from "@/types/themes";

export const LIGHT_COLORS: ThemeColors = {
	background: "#ffffff",
	foreground: "#09090b",
	card: "#ffffff",
	"card-foreground": "#09090b",
	popover: "#ffffff",
	"popover-foreground": "#09090b",
	primary: "#3b4cf8",
	"primary-foreground": "#f8fafc",
	secondary: "#f4f4f5",
	"secondary-foreground": "#18181b",
	muted: "#f4f4f5",
	"muted-foreground": "#71717a",
	accent: "#f4f4f5",
	"accent-foreground": "#18181b",
	destructive: "#ef4444",
	border: "#e4e4e7",
	input: "#e4e4e7",
	ring: "#a1a1aa",
	sidebar: "#fafafa",
	"sidebar-foreground": "#09090b",
	"sidebar-primary": "#3b4cf8",
	"sidebar-primary-foreground": "#f8fafc",
	// boolean → blue-600, number → emerald-600, date → amber-600, string → rose-600
	"type-boolean": "#2563eb",
	"type-number": "#059669",
	"type-date": "#d97706",
	"type-string": "#e11d48",
};

export const DARK_COLORS: ThemeColors = {
	background: "#09090b",
	foreground: "#fafafa",
	card: "#18181b",
	"card-foreground": "#fafafa",
	popover: "#18181b",
	"popover-foreground": "#fafafa",
	primary: "#818cf8",
	"primary-foreground": "#0f172a",
	secondary: "#27272a",
	"secondary-foreground": "#fafafa",
	muted: "#27272a",
	"muted-foreground": "#a1a1aa",
	accent: "#27272a",
	"accent-foreground": "#fafafa",
	destructive: "#f87171",
	border: "rgba(255,255,255,0.1)",
	input: "rgba(255,255,255,0.15)",
	ring: "#818cf8",
	sidebar: "#18181b",
	"sidebar-foreground": "#fafafa",
	"sidebar-primary": "#818cf8",
	"sidebar-primary-foreground": "#0f172a",
	// boolean → blue-400, number → emerald-400, date → amber-400, string → rose-400
	"type-boolean": "#60a5fa",
	"type-number": "#34d399",
	"type-date": "#fbbf24",
	"type-string": "#fb7185",
};

export const CATPPUCCIN_LATTE_COLORS: ThemeColors = {
	background: "#eff1f5",
	foreground: "#4c4f69",
	card: "#e6e9ef",
	"card-foreground": "#4c4f69",
	popover: "#e6e9ef",
	"popover-foreground": "#4c4f69",
	primary: "#1e66f5",
	"primary-foreground": "#eff1f5",
	secondary: "#ccd0da",
	"secondary-foreground": "#4c4f69",
	muted: "#ccd0da",
	"muted-foreground": "#6c6f85",
	accent: "#bcc0cc",
	"accent-foreground": "#4c4f69",
	destructive: "#d20f39",
	border: "#acb0be",
	input: "#bcc0cc",
	ring: "#7287fd",
	sidebar: "#e6e9ef",
	"sidebar-foreground": "#4c4f69",
	"sidebar-primary": "#1e66f5",
	"sidebar-primary-foreground": "#eff1f5",
	// boolean → Latte Blue, number → Latte Green, date → Latte Yellow, string → Latte Maroon
	"type-boolean": "#1e66f5",
	"type-number": "#40a02b",
	"type-date": "#df8e1d",
	"type-string": "#e64553",
};

export const CATPPUCCIN_FRAPPE_COLORS: ThemeColors = {
	background: "#303446",
	foreground: "#c6d0f5",
	card: "#292c3c",
	"card-foreground": "#c6d0f5",
	popover: "#292c3c",
	"popover-foreground": "#c6d0f5",
	primary: "#8caaee",
	"primary-foreground": "#303446",
	secondary: "#414559",
	"secondary-foreground": "#c6d0f5",
	muted: "#414559",
	"muted-foreground": "#a5adce",
	accent: "#51576d",
	"accent-foreground": "#c6d0f5",
	destructive: "#e78284",
	border: "rgba(198,208,245,0.15)",
	input: "rgba(198,208,245,0.2)",
	ring: "#babbf1",
	sidebar: "#292c3c",
	"sidebar-foreground": "#c6d0f5",
	"sidebar-primary": "#8caaee",
	"sidebar-primary-foreground": "#303446",
	// boolean → Frappé Blue, number → Frappé Green, date → Frappé Yellow, string → Frappé Maroon
	"type-boolean": "#8caaee",
	"type-number": "#a6d189",
	"type-date": "#e5c890",
	"type-string": "#ea999c",
};

export const CATPPUCCIN_MACCHIATO_COLORS: ThemeColors = {
	background: "#24273a",
	foreground: "#cad3f5",
	card: "#1e2030",
	"card-foreground": "#cad3f5",
	popover: "#1e2030",
	"popover-foreground": "#cad3f5",
	primary: "#8aadf4",
	"primary-foreground": "#24273a",
	secondary: "#363a4f",
	"secondary-foreground": "#cad3f5",
	muted: "#363a4f",
	"muted-foreground": "#a5adcb",
	accent: "#494d64",
	"accent-foreground": "#cad3f5",
	destructive: "#ed8796",
	border: "rgba(202,211,245,0.15)",
	input: "rgba(202,211,245,0.2)",
	ring: "#b7bdf8",
	sidebar: "#1e2030",
	"sidebar-foreground": "#cad3f5",
	"sidebar-primary": "#8aadf4",
	"sidebar-primary-foreground": "#24273a",
	// boolean → Macchiato Blue, number → Macchiato Green, date → Macchiato Yellow, string → Macchiato Maroon
	"type-boolean": "#8aadf4",
	"type-number": "#a6da95",
	"type-date": "#eed49f",
	"type-string": "#ee99a0",
};

export const CATPPUCCIN_MOCHA_COLORS: ThemeColors = {
	background: "#1e1e2e",
	foreground: "#cdd6f4",
	card: "#181825",
	"card-foreground": "#cdd6f4",
	popover: "#181825",
	"popover-foreground": "#cdd6f4",
	primary: "#89b4fa",
	"primary-foreground": "#1e1e2e",
	secondary: "#313244",
	"secondary-foreground": "#cdd6f4",
	muted: "#313244",
	"muted-foreground": "#a6adc8",
	accent: "#45475a",
	"accent-foreground": "#cdd6f4",
	destructive: "#f38ba8",
	border: "rgba(205,214,244,0.15)",
	input: "rgba(205,214,244,0.2)",
	ring: "#b4befe",
	sidebar: "#181825",
	"sidebar-foreground": "#cdd6f4",
	"sidebar-primary": "#89b4fa",
	"sidebar-primary-foreground": "#1e1e2e",
	// boolean → Mocha Blue, number → Mocha Green, date → Mocha Yellow, string → Mocha Maroon
	"type-boolean": "#89b4fa",
	"type-number": "#a6e3a1",
	"type-date": "#f9e2af",
	"type-string": "#eba0ac",
};
