berrypod/assets/css/admin/themes.css

38 lines
1.4 KiB
CSS
Raw Normal View History

/* Admin theme bridge maps DaisyUI --color-* variables to --t-* theme tokens.
Admin components still reference --color-*, which resolve through this bridge
to the merchant's chosen theme. Phase 4 replaces --color-* with --t-* directly,
then this file gets deleted. */
.themed {
/* Surface colours */
--color-base-100: var(--t-surface-base);
--color-base-200: var(--t-surface-sunken);
--color-base-300: var(--t-border-default);
--color-base-content: var(--t-text-primary);
/* Brand colours */
--color-primary: var(--t-accent);
--color-primary-content: var(--t-text-inverse);
--color-secondary: var(--t-text-secondary);
--color-secondary-content: var(--t-text-inverse);
--color-accent: var(--t-text-primary);
--color-accent-content: var(--t-text-inverse);
--color-neutral: var(--t-text-tertiary);
--color-neutral-content: var(--t-text-inverse);
/* Status colours — fixed, not themed */
--color-info: oklch(62% 0.214 259.815);
--color-info-content: oklch(97% 0.014 254.604);
--color-success: oklch(70% 0.14 182.503);
--color-success-content: oklch(98% 0.014 180.72);
--color-warning: oklch(66% 0.179 58.318);
--color-warning-content: oklch(98% 0.022 95.277);
--color-error: oklch(58% 0.253 17.585);
--color-error-content: oklch(96% 0.015 12.422);
/* Shape — mapped to theme shape tokens */
--radius-box: var(--t-radius-card);
--radius-selector: var(--t-radius-button);
--radius-field: var(--t-radius-input);
}