Skip to content

More themeing#200

Merged
kylemclaren merged 8 commits into
mainfrom
docs/callouts-tables-404
Jul 3, 2026
Merged

More themeing#200
kylemclaren merged 8 commits into
mainfrom
docs/callouts-tables-404

Conversation

@kylemclaren

@kylemclaren kylemclaren commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Visual refresh of the docs theme, working in both light and dark:

  • Callouts — the <Callout> component restyled as gradient cards with a hairline ring, a gutter icon, and an inline bold label; per-type hues (info/tip violet, warning amber, danger blue).
  • Tables — rounded card with a hairline border and soft shadow, a borderless bold header, and zebra-striped rows.
  • Code blocks — a single shared theme so light and dark render identically; clean card border/shadow; an emerald $ prompt on single-line CLI commands; emerald copy-button checkmark.
  • Links — normal text colour with a green underline, violet on hover.
  • Logo — two-tone space invader matching sprites.dev (navy/violet in light, bright violet in dark, black eyes, larger icon).
  • 404 — centered layout with the brand mark, an "Error 404" pill, and a cityscape background.

- Callouts (Starlight asides): gradient card surface with a 1px ring and a
  soft shadow, an inline bold label that flows into the message, and per-type
  icons in the gutter — note (violet), tip (plain violet, no icon), caution
  (amber warning), danger (blue important). Light + dark, all WCAG AA.
- Tables: rounded card with a hairline border and drop shadow, a borderless
  bold header over a rule, and zebra-striped rows.
- 404: centered layout with the brand logo, an "Error 404" pill, a friendly
  headline, and a cityscape background.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

Name URL
Preview https://pr-200-superfly-sprites-docs.fly.dev

Commit: ff5dc65

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟢 90 🟢 100 🟢 96 🟢 100

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ Tests success

Ran against: https://pr-200-superfly-sprites-docs.fly.dev

The docs render callouts via the <Callout> React component (shadcn Alert),
not Starlight asides — so the earlier aside styling never applied, and the
component still used off-brand colors (info green, tip blue) with generic
outline icons. Rewrite it to the card design: gradient surface, 1px ring,
soft shadow, a filled glyph in the gutter, and an inline bold label. Hues:
info=violet, tip=violet, warning=amber, danger=blue. Light + dark.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the all-violet mark with sprites.dev's two-tone invader: a navy
#22183c body with a violet #7c3aed inner on light; the theme-appropriate
inversion (#f3f1fb body / #8b5cf6 inner) on dark, with eyes reading as
holes in the page colour. Header (SiteTitle), logo config SVGs, and the
404 mark updated; the favicon stays the solid-violet variant, matching
sprites.dev's own favicon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…dev ratio

- Dark mark uses a bright violet (#c084fc / #e0c9ff) for visibility.
- Eyes are black in both themes (matching sprites.dev).
- Icon enlarged to 1.5rem against the 1.25rem wordmark with a 0.625rem gap,
  matching sprites.dev's h-6 / text-xl / gap-2.5 proportions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Content links now use normal text colour with an emerald green (#34d399)
underline — the green from sprites.dev's hero underline — and shift to
violet text on hover. Drops the previous underline-free, always-violet
link treatment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Set ExpressiveCode to a single theme (starlight-dark / Night Owl) so code
blocks render identically in either mode — same background and syntax
colours, sharing one set of components. Force the near-black surface in
both modes and drop the light-mode output-block overrides so output blocks
match too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a green (#34d399) "$ " prompt before single-line shell command blocks,
like fly.io/docs. Scoped to ExpressiveCode terminal frames whose code has a
single .ec-line and a $-prompt shell language (bash/sh/zsh/shell/console) —
so multi-line scripts and non-CLI blocks are untouched. It's a pseudo-element
(user-select:none), so it's never selected or copied. Removes the old dead
data-bash-prompt rule that nothing emitted.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…y check

- Code blocks (always dark) drop the light hairline halo for a faint edge and
  swap EC's offset navy shadow for a soft neutral card shadow — looks clean on
  the light page too.
- The copy-button check turns emerald (#34d399) on success, matching the $
  prompt and link underlines.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kylemclaren kylemclaren changed the title Callout restyle, table cards, and 404 redesign Docs theme: callouts, tables, code blocks, links, logo & 404 Jul 3, 2026
@kylemclaren kylemclaren changed the title Docs theme: callouts, tables, code blocks, links, logo & 404 More themeing Jul 3, 2026
@kylemclaren kylemclaren marked this pull request as ready for review July 3, 2026 13:30
@kylemclaren kylemclaren merged commit fe9af17 into main Jul 3, 2026
5 checks passed
@kylemclaren kylemclaren deleted the docs/callouts-tables-404 branch July 3, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant