Developer Tools & IDEs Light theme No. 037 / 134

Svelte

Web framework. Editorial near-white paper, DM Serif Display headlines, manual-like reading pages

#ffffff #d43008 16 colors 11 type styles 4px radius
svelte/design Light theme
Svelte ProductCompanyPricing Get started
Developer Tools & IDEs
Tools that disappear into the work.

Web framework. Editorial near-white paper, DM Serif Display headlines, manual-like reading pages

Start building Documentation
Type specimenDisplay
Aa
DM Serif Display54px
#d43008 16 color tokens 11 type styles 4px radius
01

Color

Palette & roles.

16 tokens extracted from the file. Ratios shown against the light canvas.

Aa 5.0:1
Primary #d43008 Brand · primary
Aa 1.0:1
On Primary #ffffff Text · on-primary
Aa 3.5:1
Logo Orange #ff3e00 Brand · logo-orange
Aa 1.0:1
Canvas #ffffff Surface · canvas
Aa 1.0:1
Surface Raised #fdfdfd Surface · surface-raised
Aa 1.0:1
Surface Bar #fafafa Surface · surface-bar
Aa 1.1:1
Fill Sunken #f2f2f2 Token · fill-sunken
Aa 1.2:1
Hairline #ebebeb Border · hairline
Aa 1.1:1
Hero Mist Light #ebf3f9 Token · hero-mist-light
Aa 1.4:1
Hero Mist Deep #d6dee4 Token · hero-mist-deep
Aa 15.1:1
Ink #262626 Text · ink
Aa 18.4:1
Ink Display #141414 Text · ink-display
Aa 21.0:1
Ink Black #000000 Text · ink-black
Aa 5.7:1
Ink Muted #666666 Text · ink-muted
Aa 5.3:1
Ink Gutter #6c6c6c Text · ink-gutter
Aa 3.9:1
Ink Subtle #808080 Text · ink-subtle
02

Typography

The type ramp.

Families, sizes, weights and tracking exactly as specified. Local faces fall back to the closest system stack.

DM Serif DisplayGoogleGeorgiaLocalFira SansGoogleFira MonoGoogle
Display DM Serif Display · 54px · 500 / 64.8px · 0

Build something worth remembering.

Heading Md DM Serif Display · 30px · 500 / 36px · 0

Clarity at every scale.

Body Georgia · 16px · 400 / 24px · 0

The quick brown fox jumps over the lazy dog.

Body Lg Georgia · 18px · 400 / 27px · 0

The quick brown fox jumps over the lazy dog.

Code Fira Mono · 14px · 400 / 23.8px · 0

const system = "design";

Heading Sm DM Serif Display · 24px · 500 / 28.8px · 0

Clarity at every scale.

Cta Fira Sans · 20px · 400 / 30px · 0

The quick brown fox jumps over the lazy dog.

Ui Fira Sans · 16px · 400 / 24px · 0

The quick brown fox jumps over the lazy dog.

Input Fira Sans · 14px · 400 / 21px · 0

The quick brown fox jumps over the lazy dog.

03

Shape & space

Radii & rhythm.

The geometry and spacing scale that give the system its physical feel.

Corner radii

None0px
Xs2px
Sm4px
Pill56px
Full9999px

Spacing scale

4px Xxs
8px Xs
10px Sm
20px Md
32px Lg
48px Xl
80px Xxl
100px Section
04

The source

Read the file.

The complete DESIGN.md behind Svelte, rendered for reading — or copy the raw Markdown for your agent.

Download

Overview#

Svelte's site reads like a well-set technical book rather than a product launch. Headlines are a high-contrast didone serif (DM Serif Display) in sentence case ("web development for the rest of us"), running text is Georgia at 18px, interface chrome switches to Fira Sans and code to Fira Mono, so headline, prose and interface are always distinguishable.

Color is almost absent. A grey ramp from {colors.ink-display} to {colors.surface-raised} carries the layout, and one burnt-orange red, {colors.primary}, is spent only on links, "GET STARTED", author names and active underlines; {colors.logo-orange} lives in the logo alone. There are no filled brand buttons: actions are coloured text, and tool controls are white chips with a heavier bottom-right edge.

Density varies by page type: a generous home page with 100px bands, a three-column docs reader, a full-bleed split playground editor, and a two-column blog index. The rhythm is white band after white band; the only tonal change is the misty blue-grey wash behind the home hero.

Key Characteristics:

  • DM Serif Display headlines at 54px in sentence case, never uppercase or bold-weighted sans.
  • Georgia body copy at 18px/27px for prose, sidebar lists and month archives.
  • Fira Sans for every interface label, often uppercase at 13px.
  • One accent, {colors.primary}, used as text and 2px underline bars, never as a large fill.
  • Raised chip controls with 1px top-left and 2px bottom-right borders.
  • A single atmospheric gradient: the radial blue-grey mist behind the home hero.
  • Square-ish geometry: 4px radius for chips and code, 56px only for the search field.

Colors#

Brand & Accent#

  • Svelte Red ({colors.primary} — #d43008): links, "GET STARTED", active nav and tab underlines, author bylines, sidebar current page, "Edit this page on GitHub".
  • On Primary ({colors.on-primary} — #ffffff): the lightning glyph inside the playground runes badge.
  • Logo Orange ({colors.logo-orange} — #ff3e00): the S logo mark in the top bar, never used for text or controls.

Surface#

  • Canvas ({colors.canvas} — #ffffff): page background, top bar, playground panes.
  • Surface Raised ({colors.surface-raised} — #fdfdfd): docs sidebar and code-block body.
  • Surface Bar ({colors.surface-bar} — #fafafa): code-block header bar and editor line-number gutter.
  • Fill Sunken ({colors.fill-sunken} — #f2f2f2): search field, keyboard hint, and the light top-left edge of raised chips.
  • Hairline ({colors.hairline} — #ebebeb): code-block border, playground title input border, bottom-right edge of raised chips.

Text#

  • Ink Display ({colors.ink-display} — #141414): every serif headline.
  • Ink ({colors.ink} — #262626): body prose, nav links, tab labels, definition badge fill.
  • Ink Black ({colors.ink-black} — #000000): typed text in the search field.
  • Ink Muted ({colors.ink-muted} — #666666): blog deks, code filenames, "PREVIOUS / NEXT" labels, photo captions.
  • Ink Gutter ({colors.ink-gutter} — #6c6c6c): playground line numbers.
  • Ink Subtle ({colors.ink-subtle} — #808080): docs breadcrumbs, "CLEAR" button, keyboard hint.

Brand Gradient#

  • Hero Mist Light ({colors.hero-mist-light} — #ebf3f9): the bright centre of the radial wash behind the home hero, placed at 40% / 30%.
  • Hero Mist Deep ({colors.hero-mist-deep} — #d6dee4): the outer ring of that wash; a linear fade to {colors.canvas} dissolves it before the definition section.

Typography#

Font Family#

DM Serif Display (weight 500) sets headlines; Georgia sets prose; Fira Sans sets the interface; Fira Mono sets code. All four are open or system fonts, so no substitutes are needed.

Hierarchy#

TokenSizeWeightLine heightLetter spacingUse
display54px50064.8px0Home section titles, docs H1, blog lead post
heading-md30px50036px0Blog post titles
heading-sm24px50028.8px0Docs sidebar groups, "On this page"
body-lg18px40027px0Prose, month archive, footer note
body16px40024px0Sidebar links, blog deks, pager link
cta20px40030px0"GET STARTED" (uppercase)
ui16px40024px0Nav links, captions, title input
input14px40021px0Search field
ui-sm13px40019.5px0Breadcrumbs, bylines, tabs, chips
kbd12px40020.4px0"⌘K" hint
code14px40023.8px0Code blocks, editor, gutter

Principles#

Serif carries meaning, sans carries mechanics. Anything a reader reads — a headline, an explanation, a list of docs pages, the month archive — is serif; anything a reader operates — a tab, a toggle, a byline, a breadcrumb — is Fira Sans, usually uppercase at 13px. Weight never changes: every style is 400 or 500, so hierarchy comes only from size and family. Headlines stay in sentence case and sit tight at 1.2 line height.

Layout#

Spacing System#

The scale runs {spacing.xxs} 4px, {spacing.xs} 8px, {spacing.sm} 10px, {spacing.md} 20px, {spacing.lg} 32px, {spacing.xl} 48px, {spacing.xxl} 80px and {spacing.section} 100px. Home bands use 100px vertical padding; the top bar and page gutters use 48px.

Grid & Container#

The home page centres a 1104px column inside 48px gutters, with the hero split text-left, illustration-right. Docs use a 280px sidebar, a 624px text column and a 292px table-of-contents rail. The playground is two equal panes under a 42px tab row. The blog index is a 760px column with a narrow month rail to its right.

Whitespace Philosophy#

Sections are separated by empty height, not rules or tinted bands.

Responsive Strategy#

Breakpoints#

NameWidthBehaviour
sm480pxWider type and spacing begin
md768pxTop bar switches from mobile to desktop layout
lg832pxDocs sidebar and playground split become visible
xl1200px"On this page" rail appears beside docs
xxl1400pxWide home layout

Touch Targets#

Top-bar links are 60px tall; icon chips are 32px; the search field is 34px.

Collapsing Strategy#

Below 832px the docs sidebar and playground panes stack, and the "On this page" rail is hidden below 1200px.

Image Behavior#

The hero illustration and community photos scale with the column; the supporter avatars sit in a fixed-size scrolling grid.

Elevation & Depth#

LevelTreatmentUse
0Flat, no borderBands, sidebar, blog list
11px {colors.hairline} borderCode block, title input, "CLEAR" chip
21px {colors.fill-sunken} top-left, 2px {colors.hairline} bottom-rightRaised chips and icon buttons
35% black linear fade under the top barTop bar

Decorative Depth#

The only decorative depth is the hero mist, a radial {colors.hero-mist-light} to {colors.hero-mist-deep} wash with a linear fade to white.

Shapes#

Border Radius Scale#

TokenValueUse
none0pxTabs, CTA text, bands
xs2pxText links in the playground
sm4pxChips, code blocks, video frame, badges
pill56pxSearch field
full9999pxSupporter avatars

Photography Geometry#

Photos and the documentary video sit at {rounded.sm}; the community collage tilts overlapping rectangular photos around one wide group shot.

Components#

Buttons#

button-cta-text — "GET STARTED →" under the home headline, the only call to action on the page.

  • No fill, {colors.primary} label in {typography.cta} uppercase with a trailing arrow, square corners {rounded.none}, padding 0, 30px tall. It is a text link styled as a button.

button-raised — "CONSOLE" at the bottom of the playground result pane.

  • {colors.canvas} fill, {colors.ink} label in {typography.ui-sm} uppercase, {rounded.sm}, padding 0 8px, 32px tall, with the level 2 border: 1px {colors.fill-sunken} top-left, 2px {colors.hairline} bottom-right. A chevron icon leads.

button-raised-quiet — "CLEAR" at the bottom-right of the playground result pane.

  • {colors.canvas} fill, {colors.ink-subtle} label in {typography.ui-sm} uppercase, {rounded.sm}, padding 3px 8px, 28px tall, with an even 1px {colors.hairline} border instead of the raised edge.

button-icon — the "A" font toggle and moon theme toggle at the right of the top bar.

  • {colors.canvas} fill, {colors.ink} glyph, {rounded.sm}, padding 0, 32px square, with the level 2 raised border. Two sit side by side after the Discord, Bluesky and GitHub icons.

button-icon-sm — the copy button at the right of each docs code-block bar.

  • {colors.surface-bar} fill matching the bar, {colors.ink} clipboard glyph, {rounded.sm}, padding 0, 26px square, with the same raised border as button-icon.

button-menu-text — "log in ⌄" at the right of the playground toolbar.

  • No fill, {colors.ink} label in {typography.ui}, padding 0 0 0 4px, with a chevron after the label. It sits after two raised icon chips for fork and save.

Cards & Containers#

hero-band — the home hero: "web development for the rest of us" over a conveyor-belt illustration.

  • {colors.hero-mist-light} radial wash fading to white, {colors.ink-display} headline in {typography.display}, padding 100px 0 0. Text left, illustration bleeding right.

definition-badge — "ADJECTIVE" in the definition line under the hero.

  • {colors.ink} fill, {colors.surface-raised} text in {typography.ui-sm} uppercase, {rounded.sm}, padding 3.25px 6.5px, 22px tall. A red pronunciation glyph precedes it; "attractively thin, graceful and stylish" follows.

logo-strip — "used by companies you've heard of".

  • {colors.canvas} band with the {typography.display} headline in {colors.ink-display} centred, flanked by grey wordmarks (Yelp, Square, Apple, Spotify, The New York Times) fading toward the edges.

video-frame — the Svelte Origins documentary player.

  • Full-bleed footage clipped to {rounded.sm}, 1104px wide, with caption and mute controls top-right and a thin {colors.primary} progress bar at the bottom. "Watch the full Svelte Origins documentary" follows as a {colors.primary} underlined link.

community-collage — "join our friendly community".

  • {colors.canvas} band, padding 0 48px, overlapping event photos around a wide group shot, with "Photos by Marcel Cutts" below in {typography.ui} {colors.ink-muted}.

supporter-grid — "Backed by Vercel and countless donors".

  • {colors.canvas} band; a {typography.body-lg} {colors.ink} paragraph above three rows of greyscale avatars at {rounded.full}, fading out at both ends.

footer-note — the closing line "© 2026 Svelte contributors".

  • {colors.canvas} band, padding 100px 0, centred {typography.body-lg} in {colors.ink} with "free and open source software" as a text-link.

code-block — every docs example, such as App.svelte on Overview.

  • {colors.surface-raised} fill, {colors.ink} code in {typography.code}, {rounded.sm}, padding 7px 10px, a 1px {colors.hairline} border, and a code-block-bar on top.

code-block-bar — the header strip of each code block.

  • {colors.surface-bar} fill, {colors.ink-muted} filename in {typography.ui-sm}, padding 0 5px 0 10px, 36px tall; a ts-toggle and button-icon-sm at its right end.

runes-badge — the lightning square before "RUNES" in the playground toolbar.

  • {colors.primary} fill, {colors.on-primary} glyph, 18px square, labelled in {typography.ui-sm} uppercase; a wrench menu follows.

editor-gutter — the line-number column of the playground editor.

  • {colors.surface-bar} fill, {colors.ink-gutter} numbers in {typography.code}, 50px wide, with fold arrows on lines that open blocks.

blog-lead-post — "What's new in Svelte" at the top of the blog index.

  • No fill, {colors.ink-display} title in {typography.display}, a blog-dek and byline below, padding 0 0 40px before "FEATURED POSTS".

blog-post-entry — each featured post ("Celebrating ten years of Svelte").

  • No fill, {colors.ink-display} title in {typography.heading-md}, then a blog-dek and a byline, stacked as a single column beside the month archive.

blog-dek — the one-line summary under each post title ("We gathered in Ljubljana").

  • {colors.ink-muted} in {typography.body}, no fill, directly under the title with no gap.

byline — "DANI SANDOVAL DEC 1 2026" under posts.

  • {colors.ink} date in {typography.ui-sm} uppercase, padding 10px 0 0; the author name before it is {colors.primary} and underlined.

Inputs & Forms#

search-input — "search" in the top bar.

  • {colors.fill-sunken} fill, {colors.ink-black} text in {typography.input}, {rounded.pill}, padding 7px 7px 5.6px 28px, 34px tall, 190px wide, no border, a magnifier icon at left and a kbd-hint at right.

kbd-hint — "⌘K" inside the search field.

  • {colors.fill-sunken} fill, {colors.ink-subtle} text in {typography.kbd} uppercase, {rounded.sm}, no padding, sitting at the right edge of search-input.

title-input — "Hello world", the playground project name.

  • {colors.canvas} fill, {colors.ink} text in {typography.ui}, {rounded.sm}, padding 2px 6px, 32px tall, 1px {colors.hairline} border, spanning the toolbar after a hamburger chip.

ts-toggle — "JS TS" switch in docs code-block bars.

  • {colors.surface-bar} fill, {colors.ink} labels in {typography.ui-sm} with the active one underlined, {rounded.sm}, padding 0 6px, 26px tall, raised border.

top-nav — the 60px bar on every page: logo, "Docs", "Playground", "Tutorial", "Packages", "Blog".

  • {colors.canvas} fill, {colors.ink} links in {typography.ui}, padding 0 48px, 60px tall, with a 5% black fade below. Search, social icons and two button-icon chips sit right.

nav-link — each top-bar label; "Docs" and "Playground" carry a chevron.

  • No fill, {colors.ink} text in {typography.ui}, padding 1px 8px 0, 60px tall, so the hit area spans the full bar height.

nav-link-active — the current section, such as "Blog" on the blog.

  • {colors.primary} text in {typography.ui}, padding 1px 8px 0, 60px tall, with a 2px inset {colors.primary} bar along the bottom edge.

docs-sidebar — the left column on docs pages ("Introduction", "Runes", "Template syntax").

  • {colors.surface-raised} fill, group titles in {typography.heading-sm} {colors.ink}, padding 80px 0 32px 32px, 280px wide, a soft shade on its right edge.

sidebar-link — "Getting started", "$state", "{#if ...}".

  • {colors.ink} in {typography.body}, padding 0 5px 0 0, 24px tall, no underline, stacked tight under each group title.

sidebar-link-active — the current page, "Overview".

  • {colors.primary} in {typography.body} with an underline, padding 0 5px 0 0, 24px tall, and a small notch pointing into the text column.

breadcrumb — "SVELTE • INTRODUCTION" above the docs H1.

  • {colors.ink-subtle} in {typography.ui-sm} uppercase, separated by bullets, with no fill or border.

toc-panel — "On this page" on the right of docs.

  • {colors.ink} heading in {typography.heading-sm}, 292px wide, then section links in Georgia, underlined {colors.ink}.

docs-meta-link — "Edit this page on GitHub" and "llms.txt" under docs content.

  • {colors.primary} in {typography.ui-sm}, 20px tall, each with a small leading icon, no underline.

docs-pager — "PREVIOUS" / "NEXT Getting started" at the foot of docs.

  • {colors.ink-muted} labels in {typography.ui} uppercase, padding 10px 0 0 under a 1px {colors.hairline} rule; the target title is {colors.primary} Georgia.

editor-tab — "JS output", "CSS output", "AST output" over the playground result.

  • No fill, {colors.ink} in {typography.ui-sm}, square corners {rounded.none}, padding 0 10px, 42px tall, with a transparent 2px bottom border.

editor-tab-active — "Result" when selected.

  • {colors.ink} in {typography.ui-sm}, {rounded.none}, padding 0 10px, 42px tall, with a 2px {colors.primary} bottom border.

file-tab-active — "App.svelte" above the playground editor.

  • {colors.ink} filename in {typography.ui-sm}, padding 0 14px 0 26px, 42px tall, a file icon and drag handle at left and a 2px {colors.primary} bottom border.

text-link — inline links like "Svelte Society" and "our Discord server".

  • {colors.primary} in {typography.body-lg}, underlined 1px, inheriting the surrounding prose size.

text-link-ink — inline docs links like "interactive tutorial" and "playground".

  • {colors.ink} in {typography.body-lg}, underlined; inside docs prose the links stay ink, not red.

month-list — "MONTHLY UPDATES" on the blog index.

  • {colors.ink} month names in {typography.body-lg}, one per line, no bullets, under a {typography.ui-sm} uppercase {colors.ink-muted} label.

Do's and Don'ts#

Do#

  • Set headlines in {typography.display} DM Serif Display, sentence case, in {colors.ink-display}.
  • Keep prose in Georgia {typography.body-lg} and interface labels in Fira Sans {typography.ui-sm}.
  • Spend {colors.primary} only on text, underlines and 2px active bars, as in nav-link-active and editor-tab-active.
  • Build tool controls as button-raised chips with the 1px/2px edge.
  • Put code in a code-block with a code-block-bar filename strip.
  • Separate home bands with {spacing.section} of empty space instead of rules or tints.
  • Reserve {colors.logo-orange} for the logo mark.

Don't#

  • Don't fill a large button with {colors.primary}; the brand has no filled CTA.
  • Don't set body copy in Fira Sans or headlines in Georgia.
  • Don't add a second accent colour; syntax colours in code stay inside the code.
  • Don't round chips beyond {rounded.sm}; only search-input uses {rounded.pill}.
  • Don't add drop shadows to cards; depth comes from borders and the top-bar fade.
  • Don't tint sections; the hero-band mist is the only coloured background.
  • Don't uppercase headlines; uppercase is for byline, breadcrumb and chip labels.