Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Migrate bpk-component-card to CSS custom properties #4834

Closed

Description

Parent

#4792

What to build

Migrate SASS tokens in bpk-component-card to CSS custom properties with SASS fallbacks.

Tokens with CSS vars:

  • $bpk-border-radius-md → var(--bpk-radius-md, ...)
  • $bpk-border-radius-sm → var(--bpk-radius-sm, ...)
  • $bpk-border-radius-xs → var(--bpk-radius-xs, ...)
  • $bpk-border-size-sm → var(--bpk-border-1, ...)
  • $bpk-canvas-contrast-day → var(--bpk-canvas-contrast, ...)
  • $bpk-core-accent-day → var(--bpk-core-accent, ...)
  • $bpk-line-day → var(--bpk-other-line-default, ...)
  • $bpk-surface-default-day → var(--bpk-surface-default, ...)
  • $bpk-surface-highlight-day → var(--bpk-surface-highlight, ...)
  • $bpk-surface-low-contrast-day → var(--bpk-surface-low-contrast, ...)
  • $bpk-surface-subtle-day → var(--bpk-surface-subtle, ...)
  • $bpk-text-on-dark-day → var(--bpk-text-on-dark, ...)
  • $bpk-text-secondary-day → var(--bpk-text-secondary, ...)

Gaps — keep as bare SASS tokens:

  • $bpk-box-shadow-lg — box-shadow shorthand
  • $bpk-duration-sm — animation duration
  • $bpk-input-border — border shorthand
  • $bpk-one-pixel-rem — hairline border utility

No themeAttributes.tsx needed — no --bpk-private-card-* colour vars exist (only --bpk-private-card-button-* which belong to card-button).

Acceptance criteria

  • Covered tokens replaced with var(--css-var, tokens.$sass-fallback)
  • 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

  1. added
    ready-for-agent
    needs-triage
    and removed
    ready-for-agent
    on Jul 3, 2026
  2. added
    ready-for-agent
    and removed
    needs-triage
    on Jul 17, 2026
  3. added a commit that references this issue on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions