mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 20:25:19 +01:00
16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
|
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
|
||
|
}
|
||
|
}
|