Skip to content

refactor(core): card setCSS takes CSS builders - #513

Open
marcalexiei wants to merge 1 commit into
stats-organization:masterfrom
marcalexiei:card-css
Open

refactor(core): card setCSS takes CSS builders#513
marcalexiei wants to merge 1 commit into
stats-organization:masterfrom
marcalexiei:card-css

Conversation

@marcalexiei

Copy link
Copy Markdown
  • setCSS({ light, dark }) now takes (colors: CardColors) => string builders instead of CSS strings.
    Card holds both palettes, so it calls dark only when it has dark colors.
  • Every card drops its dark: darkColors ? … : null ternary and its lightColors destructuring,
    each builder reads the colors of its own scheme from its parameter.
  • CardColors moved to common/color.ts and is exported from there; Card.ts had a duplicate 5-field copy.

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant