add Mono theme

This commit is contained in:
charlie
2025-04-19 16:32:10 -06:00
parent 56d3f1fdf4
commit 82b10ef5e2
+97 -8
View File
@@ -1,15 +1,15 @@
import { defaultThemeState } from "../config/theme";
import { ThemePreset, ThemeStyles } from "../types/theme";
import { defaultThemeState } from "../config/theme"
import { ThemePreset, ThemeStyles } from "../types/theme"
export function getPresetThemeStyles(name: string): ThemeStyles {
const defaultTheme = defaultThemeState.styles;
const defaultTheme = defaultThemeState.styles
if (name === "default") {
return defaultTheme;
return defaultTheme
}
const preset = presets[name];
const preset = presets[name]
if (!preset) {
return defaultTheme;
return defaultTheme
}
return {
@@ -22,7 +22,7 @@ export function getPresetThemeStyles(name: string): ThemeStyles {
...(preset.styles.light || {}),
...(preset.styles.dark || {}),
},
};
}
}
export const presets: Record<string, ThemePreset> = {
@@ -2532,4 +2532,93 @@ export const presets: Record<string, ThemePreset> = {
},
},
},
};
mono: {
label: "Mono",
createdAt: "2025-04-19",
styles: {
light: {
background: "#ffffff",
foreground: "#0a0a0a",
card: "#ffffff",
"card-foreground": "#0a0a0a",
popover: "#ffffff",
"popover-foreground": "#0a0a0a",
primary: "#171717",
"primary-foreground": "#fafafa",
secondary: "#f5f5f5",
"secondary-foreground": "#171717",
muted: "#f5f5f5",
"muted-foreground": "#717171",
accent: "#f5f5f5",
"accent-foreground": "#171717",
destructive: "#e7000b",
"destructive-foreground": "#f5f5f5",
border: "#e5e5e5",
input: "#e5e5e5",
ring: "#a1a1a1",
"chart-1": "#737373",
"chart-2": "#737373",
"chart-3": "#737373",
"chart-4": "#737373",
"chart-5": "#737373",
sidebar: "#fafafa",
"sidebar-foreground": "#0a0a0a",
"sidebar-primary": "#171717",
"sidebar-primary-foreground": "#fafafa",
"sidebar-accent": "#f5f5f5",
"sidebar-accent-foreground": "#171717",
"sidebar-border": "#e5e5e5",
"sidebar-ring": "#a1a1a1",
"font-sans": "Geist Mono, monospace",
"font-serif": "Geist Mono, monospace",
"font-mono": "Geist Mono, monospace",
radius: "0rem",
"shadow-color": "hsl(0 0% 0%)",
"shadow-opacity": "0",
"shadow-blur": "0px",
"shadow-spread": "0px",
"shadow-offset-x": "0px",
"shadow-offset-y": "1px",
},
dark: {
background: "#0a0a0a",
foreground: "#fafafa",
card: "#171717",
"card-foreground": "#fafafa",
popover: "#262626",
"popover-foreground": "#fafafa",
primary: "#e5e5e5",
"primary-foreground": "#171717",
secondary: "#262626",
"secondary-foreground": "#fafafa",
muted: "#262626",
"muted-foreground": "#a1a1a1",
accent: "#404040",
"accent-foreground": "#fafafa",
destructive: "#ff6467",
"destructive-foreground": "#262626",
border: "#262626",
input: "#ffffff",
ring: "#737373",
"chart-1": "#737373",
"chart-2": "#737373",
"chart-3": "#737373",
"chart-4": "#737373",
"chart-5": "#737373",
sidebar: "#171717",
"sidebar-foreground": "#fafafa",
"sidebar-primary": "#fafafa",
"sidebar-primary-foreground": "#171717",
"sidebar-accent": "#262626",
"sidebar-accent-foreground": "#fafafa",
"sidebar-border": "#ffffff",
"sidebar-ring": "#525252",
"font-sans": "Geist Mono, monospace",
"font-serif": "Geist Mono, monospace",
"font-mono": "Geist Mono, monospace",
radius: "0rem",
},
},
},
}