You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
15 lines
357 B
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 |
|
} |
|
}
|
|
|