Skip to content

docs: CSS variables guide + fix markdown-output missing import#147

Merged
rgbkrk merged 1 commit intomainfrom
rgbkrk/css-vars-docs-fix
Feb 14, 2026
Merged

docs: CSS variables guide + fix markdown-output missing import#147
rgbkrk merged 1 commit intomainfrom
rgbkrk/css-vars-docs-fix

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Feb 14, 2026

Summary

  • Add contributing/css-variables.md documenting the dual-location pattern (global.css + registry.json)
  • Update AGENTS.md with CSS variables section and checklist item
  • Fix markdown-output import error by bundling dark-mode.ts utility

The markdown-output component was importing isDarkMode from @/registry/editor/themes, which doesn't exist for consumers installing via the registry. Now it includes its own bundled dark-mode utility.

Test plan

  • pnpm run types:check passes
  • Verify markdown-output installs correctly for consumers

- Add contributing/css-variables.md explaining dual-location pattern
- Update AGENTS.md with CSS variables section and checklist item
- Fix markdown-output import by bundling dark-mode.ts utility
  (was importing from @/registry/editor/themes which doesn't exist for consumers)
@vercel
Copy link

vercel bot commented Feb 14, 2026

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

Project Deployment Actions Updated (UTC)
nteract-elements Ready Ready Preview, Comment Feb 14, 2026 4:10am

Request Review

@rgbkrk rgbkrk merged commit 6fe2057 into main Feb 14, 2026
5 checks passed
@rgbkrk rgbkrk deleted the rgbkrk/css-vars-docs-fix branch February 14, 2026 04:23
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