diff --git a/web/vite.config.ts b/web/vite.config.ts index e589e3f2..38dd8300 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,6 +1,10 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; import { execSync } from 'node:child_process'; +import tokens from './src/lib/styles/tokens.json' with { type: 'json' }; + +const THEME_DARK = tokens.colors.dark.obsidian; +const THEME_LIGHT = tokens.colors.light.obsidian; const tokensPlugin = { name: 'minstrel-tokens', @@ -29,9 +33,8 @@ const injectGoTokensPlugin = { - - - + + `; // Fail loudly if either anchor drifts. A silent .replace() no-op