Skip to content

docs: update Box color token types and add background-inverse#11529

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/fix-docs/docs-update-box-color-token-types-and-add-backgrou-eeaf8e
Open

docs: update Box color token types and add background-inverse#11529
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/fix-docs/docs-update-box-color-token-types-and-add-backgrou-eeaf8e

Conversation

@detail-app
Copy link
Copy Markdown
Contributor

@detail-app detail-app Bot commented May 8, 2026

Updated CLAUDE.md to reflect that Box component now uses specific color token types (BackgroundColorToken, TextColorToken, BorderColorToken) instead of the generic ColorToken, and added the newly introduced background-inverse token to the color tokens table.

Introduced by commit 4faa55c (@sebastianekstrom, #11500)

Without this update, developers following the documentation would incorrectly believe they could use any color token for any color prop. For example, attempting to use a text color token like 'text-primary' as a backgroundColor would now fail TypeScript validation, but the old documentation suggested this was valid.


Doc Drift PRs can be configured here.

@detail-app detail-app Bot requested a review from a team as a code owner May 8, 2026 16:28
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

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

Project Deployment Actions Updated (UTC)
polar Ready Ready Preview, Comment May 8, 2026 4:31pm
polar-sandbox Ready Ready Preview, Comment May 8, 2026 4:31pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Preview Environment
URL: https://polar-preview-vm.taildbff7b.ts.net/pr-11529
API: https://polar-preview-vm.taildbff7b.ts.net/pr-11529/v1/
Logs: backend
SHA: 9cba9c7af2768d1009e41dfce76a98024f4feed9

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.

0 participants