ID:WORK-061Status:done
Lumina Generic Metadata CSS
Priority:highComplexity:moderateMilestone:v0.9.0Source:SPEC-024,SPEC-026
Summary
Write the ~18 generic CSS rules in Lumina that style every metadata badge across every rune using the data-meta-type, data-meta-sentiment, and data-meta-rank attribute selectors. This replaces dozens of per-rune badge CSS rules with a universal set.
Acceptance Criteria
- Lumina includes CSS rules for all 6 meta types: status (coloured pill with dot), category (outlined chip), quantity (bold tabular number), temporal (icon-prefixed value), tag (flat muted label), id (monospace)
- Lumina includes CSS rules for all 4 sentiments: positive → success colour, negative → danger colour, caution → warning colour, neutral → muted colour
- Lumina includes CSS rules for both ranks: primary (full size), secondary (smaller + faded)
- Sentiment colours adapt to dark mode via existing Lumina colour token definitions
--meta-colorand--meta-font-sizecustom properties cascade correctly from sentiment/rank to type rules- CSS coverage tests updated to expect the new
[data-meta-*]selectors - Per-rune badge CSS that is now redundant is identified (removal can be done incrementally in a follow-up)
Approach
Create packages/lumina/styles/dimensions/metadata.css (or similar) with the CSS from SPEC-024's Theme CSS section. Import it in packages/lumina/index.css. Verify that badges render correctly for a sample of runes using the dev site. The per-rune badge CSS can coexist with the generic metadata CSS during migration — both target different selectors, so there's no conflict.
References
- Metadata System (Metadata System — Theme CSS, Dark Mode)
- Lumina Theme — Reference Implementation (Lumina Theme — Sentiment Colours)
Relationships
Implements
History
- 59ded4aContent edited
- f262d7bsource+SPEC-024,SPEC-026
- 92a238bstatusready→done
- ☑ Lumina includes CSS rules for all 6 meta types: status (coloured pill with dot), category (outlined chip), quantity (bold tabular number), temporal (icon-prefixed value), tag (flat muted label), id (monospace)
- ☑ Lumina includes CSS rules for all 4 sentiments: positive → success colour, negative → danger colour, caution → warning colour, neutral → muted colour
- ☑ Lumina includes CSS rules for both ranks: primary (full size), secondary (smaller + faded)
- +4 more criteria
- a129a9emilestone+v0.9.0
- a333007Created (ready, high, moderate, lumina, css, metadata)