This repository was archived by the owner on Aug 5, 2026. It is now read-only.
Migrate bpk-component-map to CSS custom properties #4841
Copy link
Copy link
Closed
Labels
Description
Parent
What to build
Migrate SASS tokens in bpk-component-map to CSS custom properties with SASS fallbacks. This component has some --bpk-private-map-* vars, so a themeAttributes.tsx is required.
Tokens with CSS vars:
$bpk-border-radius-sm→var(--bpk-radius-sm, ...)$bpk-core-primary-day→var(--bpk-core-primary, ...)$bpk-status-success-fill-day→var(--bpk-surface-success-fill, ...)$bpk-surface-default-day→var(--bpk-surface-default, ...)$bpk-surface-highlight-day→var(--bpk-surface-highlight, ...)$bpk-text-on-dark-day→var(--bpk-text-on-dark, ...)$bpk-text-on-light-day→var(--bpk-text-on-light, ...)
Private with CSS var:
$bpk-private-map-previous-selection-day→var(--bpk-private-map-previous-selection, ...)
Gaps — keep as bare SASS tokens:
$bpk-box-shadow-sm— box-shadow shorthand$bpk-icon-size-sm— icon dimension$bpk-private-map-poi-pin-day— no CSS var exists yet- Other map private tokens not in CSS vars — check SCSS
Create themeAttributes.tsx exposing --bpk-private-map-previous-selection and any other --bpk-private-map-* vars that are used.
Acceptance criteria
- Covered tokens replaced with
var(--css-var, tokens.$sass-fallback) -
themeAttributes.tsxcreated with camelCase keys for available private map vars -
themeAttributes-test.tsxcreated/updated - Gap tokens left as bare SASS tokens with comments
- Storybook stories updated to include a dark mode story
- Existing tests pass unchanged
- No new CSS custom property names invented
Blocked by
None — can start immediately.
Activity
[CLOV-CSS] Migrate bpk-component-map to CSS custom properties (Skysca…