13 lines
495 B
TypeScript
13 lines
495 B
TypeScript
import { components } from "./components/index";
|
|
import { pages } from "./pages/index";
|
|
import { primitives } from "./primitives/index";
|
|
import { currentTheme } from "../themes";
|
|
import { createTokens } from "./tokens/index";
|
|
import type { ThemeTokenSource } from "./tokens/render-theme";
|
|
|
|
export function createStylesheet(theme: ThemeTokenSource): string {
|
|
return [createTokens(theme), primitives, components, pages].join("\n\n");
|
|
}
|
|
|
|
export const stylesheet = createStylesheet(currentTheme);
|