Repository navigation
Redesign 7/7: one theme, and the plain CSS in Tailwind - #87
RobbieTheWagner wants to merge 28 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
b57d90f to
ec8852e
Compare
ec8852e to
799863b
Compare
799863b to
6f8929e
Compare
6f8929e to
db16a1b
Compare
db16a1b to
52de256
Compare
52de256 to
123933b
Compare
123933b to
5ce9db0
Compare
5ce9db0 to
e49d1db
Compare
e49d1db to
91eeeb9
Compare
The island's glass, grid and parts (art, title and name, the episode link, bars, scrubber row and times, transport and tools boxes, the home control and its options), the scrim, the floating picture's bar box, title and light, the More popover's box and rows, the Up next board's trays, titles, read-out lines, rows, shelf grid and captions, the covers' tile, face, hit, chip and remove, and the dock block and island stations now style themselves in the markup. The home control's checked and focused options became has-* variants, so the popover's own override is gone. Kept in CSS: the island's springs, position and transitions (the anchored layout would otherwise make it absolute), every per-home and per-fit state rule, anchored stations, chains and @position-try, pseudo-elements, the ship and bars' keyframes, slots and mini buttons shared by many elements, classes shared with shell.css (icon-button, dock-play, scrubber), and the picture and its cell, which the engine moves the video into. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage slot now carries utilities after its hook class, so the helper compares the first class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rail's column, head and slot sizes, the toggle, chevron, title block, ring, follow body and stacks, the hosts' list, faces' slots, names and credit line, the tooltip and its box and key, the flyouts and their boxes, the search palette (dialog, panel, field, results, rows, light, thumbs, Cancel and the bold completion) and the sheets' head, title and close now style themselves in the markup. The rail's rules stay desktop-only as lg: utilities, and the touch-only Cancel uses pointer-coarse:. Kept in CSS: the divider (JS moves it), every per-form and fanned rule, --stacked and the rail's custom properties, anchored and fallback layout, the tooltip's and flyouts' position, top and margin (the anchored layout's popover reset is unlayered), @position-try and anchored queries, pseudo-elements, starting styles and staggers, the highlights, and the classes shared by several components or stylesheets (rail-slot, rail-nav, rail-label, rail-fly-title, sheet, sheet-nav, platforms, host-row, the topbar and show art). The search row test reads the hook classes first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hero's grid, glow, picture, ambient wash, artwork, kind chip, play disc, progress bar, on-air bars, title and its link, and the show-notes link; the archive heading and its count; the toolbar's sticky bar and form, search field and input, count, chip row, filters, clear buttons, Reset, and the menus' boxes, lists and titles; the card's art cell, number, kind, description and More; the close-up's glow; the open card's resume line, actions row, queue icon and close button; the cast's person grid; and the empty state now style themselves in the markup. Kept in CSS: every per-state rule (data-current, data-on, data-swap, data-open, data-folding, data-view, filter and hash states), anchored and fallback layout, @position-try-like anchored container queries, @Property, keyframes, starting styles, scroll-driven and view-transition rules, pseudo-elements, the hero's pointer custom properties and its landscape form, and the classes shared by several elements or read by explorer.ts: the chips, picks, segmented controls, options and radios, the With face (people.css sets its padding), the flying, cloned and anchored card parts, the parked blocks, the close-up slots, the back of the card and the cast's shared chips. Back to the top, the queue button's pressed state and the actions' buttons stay too: icon-button and button-secondary are unlayered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f124533 to
f7a9aa8
Compare
The move to utilities dropped the class from elements whose styles it inlined. Sites target those classes from customCss, so they're back, ahead of the utilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stylesheets and the scripts' matchMedia use px, so rem-based utilities drifted from them when a visitor changes the browser's default font size: lg: switched at a different width than the rail's own 1024px media query, and size-10 grew past the 40px geometry around it. The values match Tailwind's defaults at 16px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai Re the outside-diff finding on Layout.astro (the |
|
Tip For best results, initiate chat on the files or code changes. Analysis chain
Learnings added
If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! You are interacting with an AI system. |
|
Correction to my last comment: on reflection we don't treat element class names as a styling contract. Sites that want a different look override the component through the integration's |
Nothing styles them, and sites restyle by overriding the component instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The theme now defines the steps the markup was spelling out as arbitrary values: text sizes, leading, weights (demibold 650, heavy 850), tracking, reading measures, blurs, and the shadow and radius tokens. Every class and stylesheet value that matched a step exactly now uses it, and the named text sizes that changed meaning keep their old line-height explicitly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Values a hair off a step now use it: 1.05-1.1rem text is xl, 1.15rem is 2xl, 1.3rem is 3xl, 0.9rem is md, 9px is 3xs; line-heights 0.95-1.04 are none, 1.15 is tight, 1.25-1.35 snug, 1.4-1.5 normal, 1.625 relaxed; 58ch and 62ch are the 60ch lead measure; a 10px backdrop blur is sm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sites restyle Starpod by setting the theme's variables in a customCss stylesheet; the built-in CSS and the Tailwind utilities both read them. The README lists the public ones (palette, fonts, the type scale, radii, easing), and says class names inside components aren't API: override the component for different markup. The template README points there, and names Breadcrumbs instead of the removed Dots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ease-(--ease-out), font-(family-name:--font-display), px-(--gutter) and the colour-mix brackets become ease-out, font-display, px-gutter and bg-surface/72. The hand-written var(--quick) transitions become transition-colors, and --quick now reads Tailwind's default transition, so the two share one value. Variables a component sets for itself (--art-w, --r, --pad) keep the var() form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The row was a fixed 64/72/96px, and the card centres its rows, so a title that wraps to two lines rode up over the art. The row is auto now; the grid's gap keeps the space between art and title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It was the player's one outlined button among icon buttons: a bordered pill that drew the gradient ring on hover. It is an icon button now, its label painted with the same --icon-a/--icon-b gradient the icons fade into on hover and focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
Action performed
|
- Send message is an outlined button. Its completion bar moves to ::before, since ::after is the outline. - The episode pills (About, people, sponsors) draw the gradient outline over a real 1px border instead of turning their inset shadow to ink. - The explorer's filter pills no longer turn their border to ink (white in dark) before the outline sweeps on. - Icons inside outlined controls fade into the gradient with the outline. - The host posters are subgrids, so their bios, episodes and links line up side by side. The name is sized to the poster so RobbieTheWagner fits on one line, and the photo stops at 300px tall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 300px cap cropped the photos to a band across the faces. The photo is its full 4:3 again, and the posters are at least 320px with as many across as fit, so on a wide screen two hosts sit at the size they had on smaller screens (beside an empty column) instead of stretching, and three or four fill the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The last part of the redesign stack. It puts every colour on one shared theme, moves the redesign's plain CSS into Tailwind utilities, gives Tailwind Starpod's own scales so the markup uses standard classes instead of arbitrary values, and documents theming through CSS variables.
One theme
tokens.css, exposed to Tailwind through@theme inlineintailwind.css. That includes the media overlay colours (--on-media,--on-media-ink,--media-shade,--media-glass) and the iris/aqua accent scales.prose, with--tw-prose-*mapped to the tokens.--radiusand--radius-framelive intokens.css, and the old override inworlds.cssis gone.Starpod's own Tailwind theme (
tailwind.css)The markup uses named utilities, not arbitrary values like
text-[1.0625rem]orease-(--ease-out):--spacingis 4px and the breakpoints are Tailwind's defaults in px. The stylesheets and scripts measure in px, solg:now switches at the same width as the rail's own@media (min-width: 1024px), even when a visitor changes the browser's font size.text-3xs(10px) totext-3xl(21px);none,tight,snug,normal,relaxed;demibold(650) andheavy(850);tightandsnug;max-w-headlinetomax-w-transcript;blur-xstoblur-haze;rounded-chrome,rounded-frame, androunded-thumbtorounded-card.text-xl(17px), and line heights 1.25–1.35 becameleading-snug(1.3). A few headings move by a few px; the screenshots were reviewed for each.ease-out,ease-spring,ease-halo;font-ui,font-display,font-voice-0/-1;px-gutter,-mx-gutter,h-topbar,h-tabbar;outline-hairline,border-hairline;bg-media-shade/50.--quickreads Tailwind's default transition, sotransition-colorsand the stylesheets'var(--quick)share one value.var():w-(--art-w),rounded-(--r));calc()expressions;--slomo-scaled duration;Theming docs
customCssstylesheet; the built-in CSS and the Tailwind utilities both read them.--gutterare marked as not for theming.Utilities for modern CSS (
src/styles/utilities.css)Tailwind 4.3 has no utilities for some of the CSS this design uses. Rather than add dependencies, the utilities and variants are written here. Where a plugin had already settled on names, these follow it, with credit (all MIT):
anchor-name-*,anchor-*,top-anchor-*,try-*,container-anchored, and theanchored-flip-*variants.timeline-*,view-timeline-*,animate-range-*, andtarget-current.vt-name-*andvt-class-*for view transitions;stagger-*, built onsibling-index();stuck-top,live-paused/live-playingandtruncatedquery variants.content-visibility-auto,contain-intrinsic-*andreading-flow-*.What moved into the markup
html,body, headings, links, focus and selection) now sit in@layer base, so utilities can override them. Before this, the unlayereda { color: inherit }beat everytext-*utility.[prop:value]. That covers layout, spacing, type, colour, borders, radii, shadows and simple transitions.shell.cssstage.cssepisode.cssplayer.cssrail.cssexplorer.cssIn total, 57 files change: +1,291 / −3,326.
What stays CSS, on purpose
@property, keyframes and@starting-style;@position-tryand anchored positioning with fallbacks orcalc();::view-transition-*rules;:root[data-*], the rail's collapsed and icon forms, the player's home and fit states, the explorer's filter states, and the transcript.[data-⚓️-to]and popover resets;interactions.css, scripts or tests. Hook classes stay first in each class list.How it was checked
Each stylesheet went in its own commit and was held to these checks:
::beforeand::after, for the states screenshots can't reach:#…link state, card hover, focus and open in list and grid, the empty result, and deep in the archive;bg-*/NNserialises asoklabinstead ofoklch, for the same colour;shadow-[…]adds Tailwind's four transparent zero-size shadows;flex-endappears whereendwas, which is identical in these layouts;scaleappears wheretransform: scale()was;hover:now applies only on devices that can hover, Tailwind's default.fontshorthand resetting tabular numbers;no-underlineleaving a 1px decoration thickness;duration-(--quick)resolving to 0s, because--quickholds both a duration and an easing.🤖 Generated with Claude Code
Summary by CodeRabbit