1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00
smov/themes/types.ts

16 lines
357 B
TypeScript
Raw Permalink Normal View History

2024-02-26 16:54:56 +01:00
import { DeepPartial } from "vite-plugin-checker/dist/esm/types";
import { defaultTheme } from "./default";
export interface Theme {
name: string;
extend: DeepPartial<(typeof defaultTheme)["extend"]>
}
export function createTheme(theme: Theme) {
return {
name: theme.name,
selectors: [`.theme-${theme.name}`],
extend: theme.extend
}
}