Skip to content

@remotion/design: Add theme defaults to register CSS#6938

Merged
JonnyBurger merged 1 commit intomainfrom
fix/design-register-theme-defaults
Mar 31, 2026
Merged

@remotion/design: Add theme defaults to register CSS#6938
JonnyBurger merged 1 commit intomainfrom
fix/design-register-theme-defaults

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Summary

  • The @remotion/design/register entry point only had a @source directive for Tailwind class scanning
  • Consumers who import it still needed to manually define --color-card-bg, --color-text, --color-button-bg, etc. in their own @theme for design system utilities to resolve
  • Add @theme defaults to the register CSS so components like Card, Button, and Switch work out of the box

Test plan

  • Verify @remotion/design components render correctly in consumers using @import '@remotion/design/register'
  • Verify promo-pages still works (its own @theme overrides these defaults)

🤖 Generated with Claude Code

The register entry point (`@remotion/design/register`) only provided
a `@source` directive for class scanning. Consumers using `@import
'@remotion/design/register'` still needed to manually define all theme
variables (`--color-card-bg`, `--color-text`, etc.) for utilities like
`bg-card-bg` to resolve correctly.

Add `@theme` defaults so the design system works out of the box when
the register CSS is imported.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog bot commented Mar 31, 2026

Reviewed PR #6938 — no actionable issues found. The theme defaults are correct, match component usage, and both existing consumers (promo-pages, convert) fully override them.

Task list (5/5 completed)
  • Read the diff and understand the change
  • Examine the full file and related component usage of these theme variables
  • Verify theme variable names match actual usage in components
  • Check @theme vs @theme inline semantics and impact on consumers
  • Submit review or report no issues

Pullfrog  | View workflow run | Triggered by Pullfrog | Using Big Pickle (free) | 𝕏

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Mar 31, 2026 8:50am
remotion Ready Ready Preview, Comment Mar 31, 2026 8:50am

Request Review

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean change. The @theme / @theme inline split mirrors src/index.css, the variable names match all component usage (bg-card-bg, text-text, bg-button-bg, text-brand, font-brand, etc.), and both existing consumers (promo-pages and convert) fully override these defaults in their own theme blocks — no breakage risk.

Pullfrog  | View workflow run | Using Big Pickle (free) | 𝕏

@JonnyBurger JonnyBurger merged commit 86150df into main Mar 31, 2026
17 checks passed
@JonnyBurger JonnyBurger deleted the fix/design-register-theme-defaults branch March 31, 2026 09:09
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