Repository navigation
fix(scraps): Keep the shadcn theme to tokens only - #133340
Closed
sentry-junior[bot] wants to merge 1 commit into
Closed
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Map shadcn's colors to plain palette tokens instead of the Scraps button tokens, use a translucent neutral border instead of border.primary, which is near black in dark mode, and import fonts.css and variables.css instead of theme.css so the reset doesn't override shadcn's base styles. Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
scrapsshadcn theme item (#133288) is meant to give shadcn apps Sentry's palette and tokens while shadcn components keep their own look. Three parts of it pulled in Scraps styling instead:border,inputandsidebar-bordermapped toborder.primary. In dark mode that's#141119on a#2e2936background, so a stock 1px shadcn border reads heavy. They now map toborder.transparent.neutral.muted(#00002026light,#c0a8e03ddark), a translucent line like shadcn's default border.primary,destructive,success,warning,promotionandsidebar-primaryreadinteractive.chonky.embossed.*. They now read the plain palette,background.<color>.vibrantwithcontent.onVibrant.light/dark. The resolved colors are identical today, but the theme no longer depends on the chonky button tokens.theme.css, which includesreset.css(14px body, Scraps line-height and body colors) and overrides shadcn's base typography. It now importsfonts.cssandvariables.css, still intolayer(base).registry.jsonis regenerated, and the README describes the item as tokens only. Thescraps/buttonandscraps/theme-provideritems are unchanged.Open decision for @natemoo-re: whether
border.transparent.neutral.mutedis the right Scraps token for shadcn borders, or a different neutral border token fits better.via @dcramer.
--
View Session [Sentry]