Skip to content

design: dark by default with light toggle, brand colours and fonts - #15

Merged
gobinathm merged 1 commit into
mainfrom
design/dark-default-brand
Nov 19, 2026
Merged

gobinathm merged 1 commit into
mainfrom
design/dark-default-brand

Conversation

@gobinathm

Copy link
Copy Markdown
Owner

Brings notes.gobinath.com in line with the subdomain rules in gobinath.com docs/DESIGN.md §3 (see gobinathm/gobinath.com#29).

Theme

  • appearance: 'dark': dark for every visitor by default, whatever their system setting; the existing toggle switches to light and is remembered.
  • Pages are rendered with <html class="dark">, so the site is dark without JavaScript too. A tiny head script removes it before paint only when the visitor chose light (no flash).
  • theme-color follows the theme (#0b0b0a / #f7f6f0).

Colour: black / off-white / yellow tokens replace the old emerald + purple mesh gradients. Yellow is text only on dark; on light, brand text is ink with yellow markers and underlines. Gradient-clipped titles are now solid text. White-on-yellow buttons now use ink text.

Type: Archivo (headings), Newsreader (body), JetBrains Mono (code and uppercase labels), self-hosted through Fontsource. VitePress's bundled Inter is dropped (vitepress/theme-without-fonts) and the Dancing Script footer font is removed.

Also: yellow focus ring, <mark> highlight, prefers-reduced-motion, yellow logo.

Not changed: vendor colours on cert badges (AWS orange, Azure blue, GCP blue), status colours (warning/danger), the PDF export styles, and the standalone HTML cheatsheets in public/cheatsheets/.

pnpm run docs:build passes. Checked dark, light and no-JS rendering in Chrome.

🤖 Generated with Claude Code

Follows gobinath.com docs/DESIGN.md §3 for subdomains:
- appearance 'dark' and <html class="dark"> so it is dark without JS; light only when chosen
- black / off-white / yellow tokens replace emerald and purple gradients
- Archivo, Newsreader, JetBrains Mono via Fontsource; drop Inter and Dancing Script
- yellow links underlines, focus ring, <mark>, reduced-motion support, theme-color sync

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gobinathm
gobinathm merged commit 585f63e into main Nov 19, 2026
1 check passed
@gobinathm
gobinathm deleted the design/dark-default-brand branch November 19, 2026 18:32
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