Skip to content

feat: spike design tokens / branding.theme overrides - #7985

Draft
patoperpetua wants to merge 1 commit into
decaporg:mainfrom
patoperpetua:feature/design-tokens-mvp
Draft

feat: spike design tokens / branding.theme overrides#7985
patoperpetua wants to merge 1 commit into
decaporg:mainfrom
patoperpetua:feature/design-tokens-mvp

Conversation

@patoperpetua

Copy link
Copy Markdown

Summary

  • Draft spike for incremental UI theming discussed in Customize the appearance (theming) #1727 / Custom UI Theming  #3559
  • Maps semantic colors (and a few related tokens) to CSS custom properties with current palette as fallbacks
  • Adds optional branding.theme config overrides that re-inject :root vars at runtime
  • Defaults are unchanged when branding.theme is omitted

This is intentionally small and incomplete — meant to validate direction with maintainers before expanding coverage / dark mode / next-ui work.

Example

branding:
  theme:
    primary: '#112f4e'
    background: '#f5f6f8'
    text: '#798291'
    textLead: '#313d3e'
    status:
      draft: '#70399f'
      in_review: '#754e00'
      ready: '#005614'

Notes / non-goals for this draft

  • Not all hard-coded hex values across widgets are tokenized yet
  • No dark mode yet
  • No CMS.registerTheme() API yet
  • Not a next-ui port

Test plan

  • Unit tests for token helpers (themeTokens.spec.js)
  • Config schema accepts branding.theme and rejects unknown keys
  • Manual: run CMS with branding.theme.primary set and confirm header/active accents + body background pick up overrides
  • Manual: omit branding.theme and confirm UI looks identical to current main

Refs: #1727 #3559

Made with Cursor

Expose semantic UI colors as CSS custom properties and allow overrides
through config branding.theme, as a draft for decaporg#1727.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for decap-cms ready!

Name Link
🔨 Latest commit f95ab24
🔍 Latest deploy log https://app.netlify.com/projects/decap-cms/deploys/6aa2c0747397600008557757
😎 Deploy Preview https://deploy-preview-7985--decap-cms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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