Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a3317ac
Move the stage's plain layout and type to Tailwind
RobbieTheWagner Nov 23, 2026
82eb7cb
Move the episode and About pages' plain spacing and type to Tailwind
RobbieTheWagner Nov 23, 2026
89cdd7c
Move the top bar, crumbs and sheet titles' plain styles to Tailwind
RobbieTheWagner Nov 23, 2026
27d15f0
Move the home hero and toolbar's plain spacing and type to Tailwind
RobbieTheWagner Nov 23, 2026
5ce114f
Move the Up next board's plain text and grid styles to Tailwind
RobbieTheWagner Nov 23, 2026
7778f73
Move the search palette's plain row text styles to Tailwind
RobbieTheWagner Nov 23, 2026
5e10bd4
Move the archive chips, toolbar row and dock times' plain styles to T…
RobbieTheWagner Nov 23, 2026
8c59416
Draw every colour from the theme
RobbieTheWagner Nov 25, 2026
4fa71e7
Add utilities for the modern CSS Tailwind doesn't ship
RobbieTheWagner Nov 25, 2026
29c4852
Move the stage's grid, frame and title plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
8ca90e8
Move the shell's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
38a95f9
Put element defaults under utilities, and use Tailwind's own utilities
RobbieTheWagner Nov 25, 2026
01f1696
Move the episode page's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
c7dc725
Move the player's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
a8e6752
Read the player home's hook class, not its whole class list
RobbieTheWagner Nov 25, 2026
f688ec1
Move the rail's plain styles to Tailwind
RobbieTheWagner Nov 26, 2026
f7a9aa8
Move the explorer's plain styles to Tailwind
RobbieTheWagner Nov 26, 2026
72f1b60
Keep the hook classes sites style through customCss
RobbieTheWagner Nov 26, 2026
5de1554
Measure Tailwind's spacing and breakpoints in px
RobbieTheWagner Nov 26, 2026
f055da9
Drop the hook classes again
RobbieTheWagner Nov 26, 2026
600c895
Give Starpod its own Tailwind type, leading and radius scales
RobbieTheWagner Nov 26, 2026
80a2fc3
Fold near-duplicate sizes into the scale steps
RobbieTheWagner Nov 26, 2026
18b95e6
Document theming through CSS variables
RobbieTheWagner Nov 26, 2026
9bf2c60
Name the easings, fonts, layout spacing and hairline in the theme
RobbieTheWagner Nov 27, 2026
83ec05d
Size the player card's title row to the title
RobbieTheWagner Nov 27, 2026
be04cc9
Make the playback speed a plain control like the icons beside it
RobbieTheWagner Nov 27, 2026
4038d92
Outline every outlined button the same way, and line up the hosts
RobbieTheWagner Nov 28, 2026
9d37f47
Keep the host photos whole; size the posters instead
RobbieTheWagner Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ connection is configured in `db/index.ts`.
`interactions.css`, then the rail, explorer, player and episode page
(`rail.css`, `explorer.css`, `player.css`, `episode.css`). Prefer Tailwind
utilities for new work; the palette is exposed as Tailwind colors via
`@theme inline` in `tailwind.css`.
`@theme inline` in `tailwind.css`. The type, leading, measure, blur,
tracking, weight, shadow and radius scales are Starpod's own (`text-sm`
is 13px, `font-demibold` is 650, `rounded-card` is `--r-card`) and live in
`tailwind.css`; use those named steps rather than arbitrary values, and
`var(--text-sm)` and the like in the stylesheets.
- Video comes from the feed's `<podcast:alternateEnclosure>` (HLS or another
video type), and people from its `<podcast:person>` tags; `rss-to-json`
drops both, so `src/lib/feed-media.ts` scans the raw XML.
Expand Down
14 changes: 11 additions & 3 deletions packages/starpod/.impeccable/design.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@
"oklch(95% 0.02 273)"
]
},
"on-media-chip": {
"on-media": {
"role": "neutral",
"displayName": "On-Media Chip",
"displayName": "On Media",
"canonical": "oklch(98% 0.005 285)",
"tonalRamp": [
"oklch(15% 0.005 285)",
Expand Down Expand Up @@ -465,6 +465,14 @@
"oklch(95% 0.04 285)"
]
},
"media-shade": {
"role": "neutral",
"displayName": "Media Shade",
"canonical": "oklch(15% 0.02 280)",
"tonalRamp": [
"oklch(15% 0.02 280)"
]
},
"media-glass": {
"role": "neutral",
"displayName": "Media Glass",
Expand Down Expand Up @@ -743,7 +751,7 @@
},
{
"name": "The One Palette Rule",
"body": "Starpod's styles use only the token colours above, which Tailwind's theme exposes as utilities. Tailwind's default palette is still loaded but is not part of the system (the show notes' heading dots are the one place that still uses it). There are no parallel light/dark colour pairs; a single token class follows both schemes.",
"body": "Starpod's styles use only the token colours above, which Tailwind's theme exposes as utilities. Tailwind's default palette is still loaded, but nothing uses it; the typography plugin's prose takes the tokens too. There are no parallel light/dark colour pairs; a single token class follows both schemes.",
"section": "colors"
},
{
Expand Down
9 changes: 5 additions & 4 deletions packages/starpod/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ colors:
on-ink-night: "oklch(16% 0.03 270)"
media-ground-day: "oklch(19% 0.03 280)"
media-ground-night: "oklch(9% 0.02 273)"
on-media-chip: "oklch(98% 0.005 285)"
on-media: "oklch(98% 0.005 285)"
on-media-ink: "oklch(20% 0.04 285)"
media-shade: "oklch(15% 0.02 280)"
media-glass: "oklch(15% 0.02 280 / 0.72)"
hairline-day: "oklch(24% 0.05 292 / 0.1)"
hairline-night: "oklch(97.65% 0.005 274.97 / 0.1)"
Expand Down Expand Up @@ -168,7 +169,7 @@ components:
rounded: "{rounded.pill}"
size: "44px"
stage-play:
backgroundColor: "{colors.on-media-chip}"
backgroundColor: "{colors.on-media}"
textColor: "{colors.on-media-ink}"
rounded: "{rounded.pill}"
size: "clamp(56px, 6vw, 76px)"
Expand Down Expand Up @@ -249,7 +250,7 @@ Cool violet-grey neutrals carrying two rationed accents: Iris (violet) owns the
- **Ground / Surface / Raised** (day and night): page ground, then the shell panels, cards, and fields, then hover fills and keyboard hints. All are faintly violet-tinted so neither scheme reads as dead grey.
- **Line / Line Strong**: hairline dividers and every default border (a bare `border` resolves to Line). Line Strong is for secondary-button and switch borders and the breadcrumb chevron.
- **Ink / Text / Muted**: headings and primary controls, then body, then metadata and secondary labels. **On Ink** is the text on ink-filled controls and flips with the scheme. **On Glow** is the text on the gradient fill (ink by day, on-ink by night).
- **Media Ground** (media-ground-day / -night): the near-black field behind video and artwork in the stage frame and the floating picture. **On-Media Chip / Ink** form the fixed light play disc over media, and **Media Glass** is the translucent dark "Resume at" chip beside it; all three ignore the scheme.
- **Media Ground** (media-ground-day / -night): the near-black field behind video and artwork in the stage frame and the floating picture. **On Media** (`--on-media`) is light text and the play disc over media, with **On-Media Ink** on the disc. **Media Shade** (`--media-shade`) is the one dark for everything over or lifted off media: glass chips, scrims behind sheets and the player card, and the deeper shadows, each a `color-mix()` of it at the strength it needs. **Media Glass** (`--media-glass`, Media Shade at 72%) is the usual chip, like "Resume at". All of these ignore the scheme, and Tailwind has them as `on-media`, `on-media-ink`, `media-shade` and `media-glass`, beside the Iris and Aqua steps (`iris-200`, `aqua-200`…).

### Named Rules
**The Two Lamps Rule.** Iris is the only accent by day and Aqua the only accent by night. Accent fills are limited to interaction, the current item, and playback, and never decorate resting content.
Expand All @@ -258,7 +259,7 @@ Cool violet-grey neutrals carrying two rationed accents: Iris (violet) owns the

**The OKLCH Only Rule.** Every colour is authored in OKLCH, including shadows, masks, and backdrops. Hex and rgb are never used.

**The One Palette Rule.** Starpod's styles use only the token colours above, which Tailwind's theme exposes as utilities. Tailwind's default palette is still loaded, but is not part of the system (the show notes' heading dots are the one place that still uses it). There are no parallel light/dark colour pairs; a single token class follows both schemes.
**The One Palette Rule.** Starpod's styles use only the token colours above, which Tailwind's theme exposes as utilities. Tailwind's default palette is still loaded, but nothing uses it; the typography plugin's prose takes the tokens too. There are no parallel light/dark colour pairs; a single token class follows both schemes.

## Typography

Expand Down
86 changes: 84 additions & 2 deletions packages/starpod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ starpod(starpodConfig, {
database: true,
// Replace built-in components with your own.
components: { Hosts: './src/components/MyHosts.astro' },
// Stylesheets loaded after the built-in ones — override the theme's CSS
// custom properties here.
// Stylesheets loaded after the built-in ones — set the theme's CSS
// variables here (see Theming).
customCss: ['./src/styles/theme.css']
});
```

For a different look, set the theme's variables (see Theming). For
different markup or behaviour, override the component. Class names inside
the built-in components aren't part of the API and can change between
releases, so don't style against them.

Overridable components: `Breadcrumbs`, `EpisodeList`, `Hosts`,
`InfoCard`, `LargePlatforms`, `NotFoundContent`, `Platforms`, `ShowArtwork`.

Expand Down Expand Up @@ -151,6 +156,83 @@ in a `<span>`, as the built-in does. The icon sidebar then shows the icon
alone and names the link in a tooltip. A link with bare text keeps its
text, cut to the icon column, and is still named by the tooltip.

## Theming

Everything Starpod draws reads its values from CSS variables on `:root`:
the built-in stylesheets with `var(--accent)`, and the Tailwind utilities
too (`bg-accent` compiles to `background: var(--accent)`, `text-sm` to
`font-size: var(--text-sm)`). Set the variables in a stylesheet listed in
`customCss`, and both pick them up:

```css
/* src/styles/theme.css */
:root {
--iris-500: oklch(62% 0.19 25);
--iris-700: oklch(48% 0.17 25);
--font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
--r-card: 12px;
}
```

The stylesheet loads after Starpod's, so a plain `:root` rule wins in both
the light and the dark scheme. To change one scheme only, wrap the rule in
`@media (prefers-color-scheme: dark)`, as Starpod's own `tokens.css` does.
A font you name in `--font-ui` needs its own `@font-face` or `@import` in
the same stylesheet.

### Colour

Write colours in OKLCH, as the built-in palette does.

- **Accent scales:** `--iris-100` to `--iris-700` (the light scheme's
accent) and `--aqua-100` to `--aqua-700` (the dark scheme's). Changing a
scale re-colours that scheme's accents. The one exception is the dark
scheme's `--accent-soft`, a deep tint of its own, so set it alongside the
aqua scale.
- **Surfaces and text, set per scheme:** `--ground` (the page),
`--surface`, `--raised`, `--line`, `--line-strong`, `--ink` (headings and
primary text), `--text`, `--muted`, `--on-ink` (text on an `--ink`
fill).
- **Accent roles:** `--accent`, `--accent-ink`, `--accent-soft`, the
`--glow-a`/`--glow-b` gradient and `--on-glow` (text on it), and
`--voice-0`/`--voice-1` (the two hosts' transcript colours).
- **Over video and artwork, the same in both schemes:** `--on-media`,
`--on-media-ink`, `--media-shade`, `--media-glass`, `--media-ground`.
- **Effects:** `--hairline` (the edge drawn over images), and the
`--shadow-soft` and `--shadow-float` shadows.

### Type

- **Fonts:** `--font-ui` (everything), `--font-display` (the large display
titles, the UI font by default), and `--font-voice-0`/`--font-voice-1` (the two hosts'
transcript lines).
- **Sizes:** `--text-3xs` (10px), `--text-2xs` (11px), `--text-xs` (12px),
`--text-sm` (13px, most UI text), `--text-md` (14px), `--text-base` (15px),
`--text-lg` (16px, body), `--text-xl` (17px), `--text-2xl` (18px) and
`--text-3xl` (21px). These are Starpod's own steps, not Tailwind's
defaults. The large display headings scale with the viewport and don't
use a step.
- **Line heights:** `--leading-none` (1), `--leading-tight` (1.2),
`--leading-snug` (1.3), `--leading-normal` (1.45), `--leading-relaxed`
(1.75).
- **Weights:** `--font-weight-normal` (400) to `--font-weight-black` (900).
They include `--font-weight-demibold` (650) and `--font-weight-heavy`
(850).
- **Letter spacing:** `--tracking-tight` and `--tracking-snug`.

### Shape and motion

- **Radii:** `--radius` (chrome) and `--radius-frame` (the media frame).
Components nest from `--r-thumb` (12px) to `--r-row`, `--r-tile`,
`--r-tray` and `--r-card` (28px). Each inner radius is its container's
radius minus the gap between them, so change them together.
- **Easing:** `--ease-out` and `--ease-spring`, and `--quick` for small
colour changes.

Layout measurements such as `--rail-w`, `--topbar-h` and `--gutter` are
also variables, but the layout's geometry depends on them, so they aren't
meant for theming.

## Custom pages

Starpod injects the core routes; anything else is a normal Astro page in
Expand Down
9 changes: 6 additions & 3 deletions packages/starpod/cli/template/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ Pass options as the second argument to `starpod()` in `astro.config.mjs`:
[Turso](https://turso.tech) (see `.env.example`). When off, those sections
simply don't render.
- `components: { Hosts: './src/components/MyHosts.astro' }` — replace built-in
components with your own. Overridable: Dots, EpisodeList, Hosts, InfoCard,
LargePlatforms, NotFoundContent, Platforms, ShowArtwork.
components with your own. Overridable: Breadcrumbs, EpisodeList, Hosts,
InfoCard, LargePlatforms, NotFoundContent, Platforms, ShowArtwork.
- `customCss: ['./src/styles/theme.css']` — stylesheets loaded after the
built-in styles, for theming via CSS custom properties.
built-in styles. Set the theme's CSS variables there (`--accent`,
`--font-ui`, `--r-card`, `--text-sm` and the rest) to restyle the site;
the built-in CSS and the Tailwind utilities both read them. See Theming in
the Starpod README for the full list.

## Custom pages

Expand Down
12 changes: 6 additions & 6 deletions packages/starpod/src/components/AdPackageCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export interface Props {
const { bullets, heading, price } = Astro.props;
---

<div class="bg-surface relative z-10 mb-6 rounded-(--r-card) p-1">
<div class="bg-surface relative z-10 mb-6 rounded-card p-1">
<h2
class="bg-raised text-ink rounded-(--r-tray) px-5 py-4 font-bold lg:py-6"
class="bg-raised text-ink rounded-tray px-5 py-4 font-bold lg:py-6"
>
{heading}
</h2>
Expand All @@ -23,23 +23,23 @@ const { bullets, heading, price } = Astro.props;
}

<h3
class="text-ink mt-8 mb-12 text-4xl font-bold tabular-nums sm:px-5"
class="text-ink mt-8 mb-12 text-[2.25rem] leading-10 font-bold tabular-nums sm:px-5"
>
{price}
<span
class="text-text text-3xl font-light"
class="text-text text-[1.875rem] leading-9 font-light"
>
/
</span>
<span class="text-text text-2xl">
<span class="text-text text-[1.5rem] leading-8">
per episode
</span>
</h3>

<div class="flex w-full">
<a class="btn mb-8 w-full justify-center" href="/contact">
<span
class="text-ink rounded-full px-8 py-3 text-center text-sm"
class="text-ink rounded-full px-8 py-3 text-center text-md leading-5"
>
Become a sponsor
</span>
Expand Down
12 changes: 6 additions & 6 deletions packages/starpod/src/components/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ type Status =
| { state: 'error'; message: string };

const FIELD =
'block w-full rounded-(--r-thumb) border border-line bg-surface px-4 py-3 text-ink placeholder:text-muted outline-none! transition-[border-color,box-shadow] duration-200 focus:border-accent focus:ring-4 focus:ring-accent-soft';
const LABEL = 'text-ink mb-2 block text-sm font-semibold';
'block w-full rounded-thumb border border-line bg-surface px-4 py-3 text-ink placeholder:text-muted outline-none! transition-[border-color,box-shadow] duration-200 focus:border-accent focus:ring-4 focus:ring-accent-soft';
const LABEL = 'text-ink mb-2 block text-md leading-5 font-semibold';

export default function ContactForm() {
const [status, setStatus] = useState<Status>({ state: 'idle' });
Expand Down Expand Up @@ -45,10 +45,10 @@ export default function ContactForm() {
if (status.state === 'sent') {
return (
<div
class="border-line bg-surface max-w-xl rounded-(--r-card) border p-6"
class="border-line bg-surface max-w-xl rounded-card border p-6"
role="status"
>
<p class="text-ink m-0 text-lg font-bold">Message sent</p>
<p class="text-ink m-0 text-2xl leading-7 font-bold">Message sent</p>
<p class="text-text mt-1 mb-0">{status.message}</p>
</div>
);
Expand Down Expand Up @@ -94,14 +94,14 @@ export default function ContactForm() {
</div>

{status.state === 'error' && (
<p class="text-ink border-line m-0 rounded-(--r-row) border px-4 py-3 text-sm" role="alert">
<p class="text-ink border-line m-0 rounded-row border px-4 py-3 text-md leading-5" role="alert">
{status.message}
</p>
)}

<div>
<button
class="button-primary ep-send w-full justify-center disabled:cursor-progress disabled:opacity-70 sm:w-auto"
class="button-secondary ep-send w-full justify-center disabled:cursor-progress disabled:opacity-70 sm:w-auto"
disabled={sending}
type="submit"
>
Expand Down
34 changes: 25 additions & 9 deletions packages/starpod/src/components/EpisodeList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ const { cards, episodes, people, show, years } = Astro.props;
</div>
) : (
<section aria-labelledby="xp-archive-title" class="xp" data-explorer>
<h2 class="xp-heading" id="xp-archive-title">
All episodes <span>{episodes.length}</span>
<h2
class="xp-heading tracking-snug m-0 flex items-baseline gap-[0.6rem] font-display text-[clamp(1.35rem,1.1rem+0.8vw,1.75rem)] leading-tight font-extrabold uppercase font-stretch-[72%]"
id="xp-archive-title"
>
All episodes{' '}
<span class="text-muted text-md font-ui font-medium font-stretch-100%">
{episodes.length}
</span>
</h2>
<Toolbar people={people} total={episodes.length} years={years} />
<div class="xp-stage">
Expand All @@ -54,7 +60,10 @@ const { cards, episodes, people, show, years } = Astro.props;
{/* Only boxes: what shows in it belongs to the open card, so it is
no landmark of its own. */}
<div aria-hidden="true" class="xp-closeup" data-xp-closeup>
<span aria-hidden="true" class="xp-cu-glow" />
<span
aria-hidden="true"
class="xp-cu-glow pointer-events-none -z-1 aspect-square scale-125 self-center bg-[radial-gradient(closest-side,color-mix(in_oklch,var(--live-img-accent,transparent)_var(--xp-glow,40%),transparent),transparent)] [grid-area:art]"
/>
<span aria-hidden="true" class="xp-cu-art" />
<div class="xp-cu-col">
<p aria-hidden="true" class="xp-cu-facts" data-xp-ghost="facts" />
Expand All @@ -72,12 +81,15 @@ const { cards, episodes, people, show, years } = Astro.props;
what to do. One copy for the archive, moved into the card that
opens (explorer.ts). */}
<template data-xp-actions>
<p class="xp-resume" hidden />
<div class="xp-actions">
<p
class="xp-resume text-accent-ink text-md font-demibold m-0 mb-4 hidden"
hidden
/>
<div class="xp-actions hidden flex-wrap items-center gap-2.5 pb-1.5">
<span aria-hidden="true" class="xp-play-slot" />
<button
aria-pressed="false"
class="button-secondary xp-queue"
class="button-secondary xp-queue [&>svg]:flex-none"
type="button"
>
<QueueIcon size={18} />
Expand All @@ -91,17 +103,21 @@ const { cards, episodes, people, show, years } = Astro.props;
</span>
<ArrowOutIcon size={16} />
</a>
<button class="icon-button xp-close" type="button">
<button class="icon-button xp-close ml-auto" type="button">
<CloseIcon />
<span class="sr-only">Close the episode</span>
</button>
</div>
</template>
<div class="xp-empty" data-xp-empty hidden>
<div
class="xp-empty text-text flex flex-col items-center gap-4 pt-4 pb-12 text-center"
data-xp-empty
hidden
>
<div class="empty-art">
<UFOIllustration />
</div>
<p>
<p class="max-w-blurb m-0">
Nothing in the archive matches{' '}
<span data-xp-empty-what>those filters</span>.
</p>
Expand Down
Loading
Loading