Skip to content

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

Merged
martin-mfg merged 2 commits into
stats-organization:masterfrom
marcalexiei:card-css
Sep 12, 2026
Merged

martin-mfg merged 2 commits 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.

@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
github-stats-extended-backend Ready Ready Preview Sep 12, 2026 3:59pm UTC

Request Review

@martin-mfg
martin-mfg merged commit c243af6 into stats-organization:master Sep 12, 2026
5 of 7 checks passed
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.

2 participants