Design System Analysis of Svelte

An editorial framework site on white paper: DM Serif Display headlines, Georgia prose, Fira Sans interface labels, and one burnt-orange red spent only on links, active underlines and the "GET STARTED" call to action.

01 — Foundations

Color Palette

Svelte Red · primary

#d43008

links, "GET STARTED", active nav and tab underlines, author bylines, sidebar current page, "Edit this page on GitHub".

On Primary · on-primary

#ffffff

the lightning glyph inside the playground runes badge.

Logo Orange · logo-orange

#ff3e00

the S logo mark in the top bar, never used for text or controls.

Canvas · canvas

#ffffff

page background, top bar, playground panes.

Surface Raised · surface-raised

#fdfdfd

docs sidebar and code-block body.

Surface Bar · surface-bar

#fafafa

code-block header bar and editor line-number gutter.

Fill Sunken · fill-sunken

#f2f2f2

search field, keyboard hint, and the light top-left edge of raised chips.

Hairline · hairline

#ebebeb

code-block border, playground title input border, bottom-right edge of raised chips.

Hero Mist Light · hero-mist-light

#ebf3f9

the bright centre of the radial wash behind the home hero, placed at 40% / 30%.

Hero Mist Deep · hero-mist-deep

#d6dee4

the outer ring of that wash; a linear fade to dissolves it before the definition section.

Ink · ink

#262626

body prose, nav links, tab labels, definition badge fill.

Ink Display · ink-display

#141414

every serif headline.

Ink Black · ink-black

#000000

typed text in the search field.

Ink Muted · ink-muted

#666666

blog deks, code filenames, "PREVIOUS / NEXT" labels, photo captions.

Ink Gutter · ink-gutter

#6c6c6c

playground line numbers.

Ink Subtle · ink-subtle

#808080

docs breadcrumbs, "CLEAR" button, keyboard hint.

02 — Foundations

Typography

DM Serif Display (500) for headlines, Georgia for prose, Fira Sans for every interface label and Fira Mono for code; no fallbacks needed.

display
DM Serif Display — 54px / 500 / 64.8px / 0
Svelte
heading-md
DM Serif Display — 30px / 500 / 36px / 0
Svelte
heading-sm
DM Serif Display — 24px / 500 / 28.8px / 0
Svelte
body-lg
Georgia — 18px / 400 / 27px / 0
The quick brown fox jumps over the lazy dog
body
Georgia — 16px / 400 / 24px / 0
The quick brown fox jumps over the lazy dog
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
ui-sm
Fira Sans — 13px / 400 / 19.5px / 0
The quick brown fox jumps over the lazy dog
kbd
Fira Sans — 12px / 400 / 20.4px / 0
The quick brown fox jumps over the lazy dog
code
Fira Mono — 14px / 400 / 23.8px / 0
The quick brown fox jumps over the lazy dog
03 — Components

Button Variants

button-cta-text · red text CTA

Home hero; no fill, square, 30px tall.

button-raised · raised chip

1px top-left, 2px bottom-right edge.

button-raised-quiet · quiet chip

Even 1px hairline, subtle label.

button-icon · 32px chip

Font and theme toggles in the top bar.

button-icon-sm · 26px copy chip

Copy button in the code-block bar.

button-menu-text · text menu

Playground toolbar account menu.

04 — Components

Cards & Surfaces

top-nav · nav-link · nav-link-active · hero-band · button-cta-text · definition-badge
SVELTE Docs ⌄Playground ⌄TutorialPackagesBlog

web development
for the rest of us

Get started →
/ˈsvɛlt/adjective attractively thin, graceful and stylish
docs-sidebar · sidebar-link · sidebar-link-active · breadcrumb · text-link-ink · code-block · code-block-bar · ts-toggle · button-icon-sm · docs-meta-link · docs-pager · toc-panel

Introduction

Overview
Getting started
.svelte files

Runes

What are runes?
$state
$derived
Svelte • Introduction

Overview

Svelte is a framework for building user interfaces on the web. Try it in the playground.

App.svelteJS TS⧉
<script lang="ts">
  function greet() { alert('Welcome!'); }
</script>
✎ Edit this page on GitHub▤ llms.txt
PreviousNext
Getting started

On this page

Overview
title-input · button-menu-text · file-tab-active · runes-badge · editor-gutter · editor-tab · editor-tab-active · button-raised · button-raised-quiet
≡Hello worldlog in ⌄
App.svelteϟRunes
1
2
3
<script> let name = $state('world'); </script>
ResultJS outputCSS output
⌃ ConsoleClear
blog-lead-post · blog-dek · byline · blog-post-entry · month-list

What’s new in Svelte

Custom renderers, Svelte DevTools and a Svelte Summit recap

Dani Sandoval Dec 1 2026

Featured posts

Celebrating ten years of Svelte

We gathered in Ljubljana. There was cake

Rich Harris Nov 25 2026

Monthly updates
October 2026
September 2026
August 2026
July 2026
logo-strip · video-frame · text-link · community-collage · supporter-grid · footer-note
yelpSquare

used by companies
you’ve heard of

SpotifyNYT
Watch the full Svelte Origins documentary

join our friendly community

Photos by Marcel Cutts

Backed by Vercel and countless donors.

© 2026 Svelte contributors. Svelte is free and open source software released under the MIT license.

05 — Components

Form Elements

search-input · kbd-hint
⌕⌘K
title-input
ts-toggleJS TS
06 — Foundations

Spacing Scale

4–100px scale; home bands take 100px vertical padding, the top bar and page gutters 48px, the docs sidebar 80px at top.

xxs
4px
xs
8px
sm
10px
md
20px
lg
32px
xl
48px
xxl
80px
section
100px
07 — Foundations

Border Radius

Nearly square: 4px on chips, code blocks, badges and the video; 56px only on the search field; full circles only for supporter avatars.

0px
none
2px
xs
4px
sm
56px
pill
9999px
full
08 — Foundations

Elevation & Depth

Level 0 — flat, no border. Bands, docs sidebar, blog list.
Level 1 — 1px #ebebeb hairline. Code block, title input, CLEAR chip.
Level 2 — 1px #f2f2f2 top-left, 2px #ebebeb bottom-right. Raised chips and icon buttons.
Level 3 — 5% black fade under the 60px top bar.
09 — Responsive

Responsive Behavior

NameWidthKey changes
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
480
768
832
1200
1400

Touch targets: top-bar links are 60px tall, icon chips 32px, the search field 34px. Collapsing: below 832px the docs sidebar and the playground panes stack; the "On this page" rail is hidden below 1200px.