mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
15 lines
360 B
TypeScript
15 lines
360 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,
|
|
};
|
|
}
|