/** * VENDORED civitai theme override — the GENERATOR INPUT for `@civitai/theme`. * * This is a byte-faithful copy of the CSS-variable-relevant fields of the * `createTheme({...})` override in civitai/civitai's * `src/providers/ThemeProvider.tsx`. civitai/civitai is NOT published as a * package, so we vendor the override here and feed it through Mantine's public * theme -> CSS-variable pipeline (see `generate.ts`) to derive the `--civitai-*` * token contract. * * ONLY the fields that influence Mantine's resolved CSS variables are vendored: * - `colors` (palette tuples — incl. civitai's custom `success`/`accent`/… ) * - `white` / `black` * - `primaryColor` / `primaryShade` / `defaultRadius` / `fontFamily` * (civitai does NOT override these, so they are ABSENT here and the * Mantine defaults apply — that is intentional and faithful). * * The override's `components: {...}` block (Modal.extend, defaultProps, …) is * deliberately NOT vendored: component styles/defaultProps do not participate * in `defaultCssVariablesResolver`, so they cannot affect the token output. * * A drift-guard test (`test/theme-drift.test.ts`) reads civitai/civitai's live * `ThemeProvider.tsx` and FAILS if any vendored value below diverges from it — * so this copy can never silently rot. */ import type { MantineThemeOverride } from '@mantine/core'; export declare const civitaiThemeSource: MantineThemeOverride; /** * The subset of theme fields the drift-guard compares against civitai/civitai's * live source. Kept in one place so the guard and the vendored object cannot * disagree about scope. */ export declare const DRIFT_GUARDED_COLOR_KEYS: readonly ["dark", "gray", "yellow", "green", "blue", "red", "orange", "lime", "gold", "accent", "success"]; /** * Theme fields civitai deliberately does NOT override today, so the derived * `--civitai-*` tokens fall back to the Mantine defaults (blue primary, * primaryShade {light:6,dark:8}, `sm` radius, the system font stack). This * vendored source omits them on purpose. The drift guard asserts civitai's live * `ThemeProvider.tsx` STILL omits them — if civitai adds an override the * vendored source doesn't mirror, CI fails so we notice and re-vendor. */ export declare const DRIFT_GUARDED_ABSENT_KEYS: readonly ["primaryColor", "primaryShade", "defaultRadius", "fontFamily"]; //# sourceMappingURL=theme.source.d.ts.map