Add theme schema

This commit is contained in:
mbaharip
2024-05-04 19:37:49 +07:00
parent a589fa35c6
commit 47110d3a3a
+23
View File
@@ -211,3 +211,26 @@ export type ConfigurationValue<
> = z.infer<typeof Schema_App_Configuration>[T][K];
export type ConfigState = "idle" | "loading";
export const Schema_Theme = z.object({
"background": z.string(),
"foreground": z.string(),
"card": z.string(),
"card-foreground": z.string(),
"popover": z.string(),
"popover-foreground": z.string(),
"primary": z.string(),
"primary-foreground": z.string(),
"secondary": z.string(),
"secondary-foreground": z.string(),
"muted": z.string(),
"muted-foreground": z.string(),
"accent": z.string(),
"accent-foreground": z.string(),
"destructive": z.string(),
"destructive-foreground": z.string(),
"border": z.string(),
"input": z.string(),
"ring": z.string(),
"radius": z.string(),
});