Backpack CSS Vars Migration

Migrate a Backpack component's SCSS mixin from static SASS tokens to CSS custom properties (CSS vars) for light/dark mode support, while preserving SASS tokens as fallbacks. Use when: (1) a component needs light/dark mode theming via the new CSS var system, (2) a component still uses bare SASS token values (e.g. tokens.$bpk-text-primary-day) instead of var() declarations, (3) you need to wire up BpkThemeProvider overrides to the new CSS var names. Covers the full migration: SCSS mixins, themeAttributes.tsx, stories, and tests.

skyscanner b663b92 11.4 KB Updated

File contents

skyscanner/backpack/tree/main/.claude/skills/backpack-css-vars-migration commit b663b92c5e

Frequently asked questions

npx skillmds@latest add skyscanner/backpack-css-vars-migration