Skip to content

fix(scraps): Keep the shadcn theme to tokens only - #133340

Closed
sentry-junior[bot] wants to merge 1 commit into
masterfrom
scraps/shadcn-theme-tokens-only
Closed

sentry-junior[bot] wants to merge 1 commit into
masterfrom
scraps/shadcn-theme-tokens-only

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

The scraps shadcn 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:

  • Borders: border, input and sidebar-border mapped to border.primary. In dark mode that's #141119 on a #2e2936 background, so a stock 1px shadcn border reads heavy. They now map to border.transparent.neutral.muted (#00002026 light, #c0a8e03d dark), a translucent line like shadcn's default border.
  • Button tokens: primary, destructive, success, warning, promotion and sidebar-primary read interactive.chonky.embossed.*. They now read the plain palette, background.<color>.vibrant with content.onVibrant.light/dark. The resolved colors are identical today, but the theme no longer depends on the chonky button tokens.
  • Reset: the item imported theme.css, which includes reset.css (14px body, Scraps line-height and body colors) and overrides shadcn's base typography. It now imports fonts.css and variables.css, still into layer(base).

registry.json is regenerated, and the README describes the item as tokens only. The scraps/button and scraps/theme-provider items are unchanged.

Open decision for @natemoo-re: whether border.transparent.neutral.muted is the right Scraps token for shadcn borders, or a different neutral border token fits better.

via @dcramer.

--

View Session [Sentry]

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>
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
scraps Ready Ready Preview Dec 3, 2026 12:47am UTC

Request Review

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 3, 2026
@sentry-junior
sentry-junior Bot requested a review from dcramer December 3, 2026 00:49
@sentry-junior sentry-junior Bot closed this Dec 3, 2026

This branch was successfully deployed

1 active deployment
Preview – sentry — a4f78ff1 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant