You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2e05b91
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): appearance classes use theme tokens and scale values
Enables shadcn/no-arbitrary-values as an error for apps/web/src outside
components/ui, with layout allowed. 479 findings in 112 files -> 0.
New theme tokens (index.css):
- --text-2xs (11px, line-height 1rem) and --text-3xs (10px, 0.875rem): the
two sizes below text-xs that dense UI uses app-wide (metadata rows,
badges, counters, kbd hints, diagnostics). 11px/0.6875rem/.7rem map to
2xs; 10px/.65rem/.6rem/9px/8px/7px map to 3xs. Registered with
tailwind-merge in cn(), which otherwise reads text-2xs as a colour and
drops it next to text-muted-foreground.
- --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1), the decelerating curve the
composer context controls already shared (6 sites). The two one-off
curves, (.2,.8,.2,1) on the composer "new" pop and (0.22,1,0.36,1) on the
provider update pill, map to it as well.
- Transition property lists stay as written (transition-[width],
transition-[opacity,translate], ...): the rule allows the "transition"
class group, because which properties an element animates is
per-element behaviour like layout, not a design value. Every transition
keeps exactly the properties it animated before; none widens to all.
- --shadow-composer / --shadow-composer-dark: the composer's elevation,
shared by the composer, its context strip and attached banners.
- --background-image-composer-seam-below / -above: the dark-mode shade
where the context strip and attached banners meet the composer.
- --workspace-gutter(-start/-end): the page header and the chat column
shared a copied calc(env(safe-area-inset-*)+0.75rem|1.25rem) gutter.
- --font-size-prompt-touch: the prompt size on coarse-pointer phones,
floored at 16px so iOS does not zoom on focus.
Mappings:
- 12px -> text-xs; 14px -> text-sm; 13px/0.8125rem -> text-xs for
descriptions and text-sm for titles and body; 1.0625rem -> text-base;
1.4rem -> text-2xl.
- Uppercase-label tracking (0.08em..0.2em) -> tracking-widest; -0.005em
dropped; -0.05em -> tracking-tighter. leading-[1.125rem] -> leading-4.5,
leading-[1.45] -> leading-normal.
- [transition-duration:var(--x)] -> duration-(--x).
- Other bespoke shadows -> shadow-xs/sm/md and inset-shadow-2xs with a
colour; rgb/var colour mixes -> Tailwind colour/alpha syntax
(bg-(--x)/(--glass-opacity), scrollbar-thumb-border/78, bg-foreground/10).
- Radii -> the theme radius scale (22/20/24px -> 3xl, 16px -> 2xl, ...).
- Masks -> mask-t/b-from/to utilities.
- One-shot keyframe animations (stash count, SnapShot contents, provider
pill countdown) -> transitions with starting: styles; keyframes removed.
- ComposerControl icons take text-muted-foreground directly instead of a
--control-icon-color indirection.
- The right panel tab bar reserves the 6rem beside the native window
controls with a spacer, not a calc() padding; the empty state pads its
list instead of calc()ing the offset.
Exemptions (each commented in vite.config.ts):
- rounded-[inherit]: overlays follow their frame's corner, set at runtime
(floating preview) or by the element they decorate (composer outline).
- gap-[0.33em], px-[0.5em], rounded-[0.5em], text-[0.86em]: inline chips
size in em so they scale with the prompt font-size preference.
- rounded-[25%]: project icons render 14-48px with one proportional
corner (the favicon's 37.5% now matches the monogram's 25%).
- text-[length:80cqh]: an emoji icon fills its container.
- bg-[Highlight]: the platform selection colour on a selected chip.
- Brand fills for Cursor, Grok and Claude marks.
- AuthSurfaceShell.tsx off: the sign-in masthead is T3 brand artwork.
ContextChip's accent mixes with border/foreground (colour-mix of two
colours) are now named custom properties on the chip, read with
border-(--...) and text-(--...); the colour choices are unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
0 commit comments