Description
Refactor the existing CSS variable-based design system so components can use semantic Tailwind color utilities instead of direct var(...) references.
This should improve readability and make future theme work easier.
For example:
class="bg-[var(--surface)] text-[var(--text)] border-[var(--border)]"
should become:
class="bg-surface text-text border-border"
Acceptance criteria
Implementation notes
Map the existing CSS variables to Tailwind semantic color tokens:
@theme inline {
--color-background: var(--bg);
--color-surface: var(--surface);
--color-sunk: var(--sunk);
--color-hover: var(--hover);
--color-border: var(--border);
--color-border-strong: var(--border-strong);
--color-text: var(--text);
--color-muted: var(--muted);
--color-faint: var(--faint);
--color-accent: var(--accent);
--color-accent-deep: var(--accent-deep);
--color-accent-soft: var(--accent-soft);
--color-accent-ink: var(--accent-ink);
}
Components should then use utilities such as:
bg-background
bg-surface
bg-sunk
bg-hover
text-text
text-muted
text-faint
border-border
border-border-strong
bg-accent
bg-accent-soft
text-accent-ink
Description
Refactor the existing CSS variable-based design system so components can use semantic Tailwind color utilities instead of direct
var(...)references.This should improve readability and make future theme work easier.
For example:
should become:
Acceptance criteria
@theme inlineImplementation notes
Map the existing CSS variables to Tailwind semantic color tokens:
Components should then use utilities such as: