All Posts
February 15, 20260.1.25Jugg.ai

v0.1.25 — feat: add brand color placeholders to template globals.css

Release v0.1.25: Brand Color Placeholders in Template CSS

February 15, 2026

What changed

  • Brand-aware template CSS: The template globals.css now uses {{BRAND_PRIMARY}}, {{BRAND_SECONDARY}}, {{BRAND_ACCENT}}, {{BRAND_BACKGROUND}}, and {{BRAND_TEXT}} placeholders, replaced at bootstrap time with each customer's brand colors (or sensible defaults like #3b82f6).
  • Design token propagation: Brand colors flow through --primary, --ring, --sidebar-primary, --chart-1/2/3, --accent, and --secondary tokens in both light and dark modes.
  • Tailwind integration: brand-primary, brand-secondary, and brand-accent are registered in the @theme inline block for use as Tailwind utility classes.
  • New buildTemplateVars() utility: Template variable construction is extracted into a tested, exported function.
  • Bug fix: Corrected an off-by-one error in decrypt() buffer length validation.
  • Test coverage: New test suite for replacePlaceholders and buildTemplateVars including edge cases and integration tests.

Why it matters

Every generated app now ships with the customer's exact brand colors applied across the entire design system — no manual CSS edits needed after bootstrap.

Technical notes

  • replacePlaceholders and buildTemplateVars are now exported from bootstrap.ts for testability.
  • Colors are sourced from project.brandingConfig.colors with fallback defaults.

Release Notes

Successfully merged PR #76 and published release v0.1.25.

PR #76: "feat: add brand color placeholders to template globals.css"

  • Squash merged to main (SHA: 7e500f4c1ae08bfe97de8f0eac9fe31d7f22bb98)

Release v0.1.25 — Brand Color Placeholders in Template Bootstrap

Key changes released:

  1. Brand-aware template CSS with --brand-primary, --brand-secondary, --brand-accent custom properties and full design token propagation
  2. New buildTemplateVars() utility in the bootstrap pipeline with 5 brand color variables (with sensible defaults)
  3. Tailwind CSS integration via @theme inline block registration
  4. Bug fix for off-by-one error in decrypt() buffer length validation
  5. Comprehensive test coverage for placeholder replacement and template variable building
v0.1.25 — feat: add brand color placeholders to template globals.css — Jugg.ai Blog