PortfolioDesign system 03 · designed and coded by Sandro RaitanoAll three systems
Glassmorphism DS 03 · v1.0.0
Tokens

Design system 03 · spatial

Glassmorphism

A spatial interface system. Translucent panes over a midnight field, depth from blur and a single highlight edge — and every line of text still at 4.5:1.

Components
10
Blur levels
4
Accent hues
2
Radius
12–28
Contrast
WCAG AA
Themes
2

Inspired by visionOS · macOS · Apple Music

§ Foundations

Light as material

Translucent panes over a colour field; depth coded in blur and one highlight edge. The dark set is midnight, the light set is daylight frost — tuned separately so every pane keeps 4.5:1. All values are read live from tokens.css.

Foundations · 01

Colour roles

Iris is the action colour; Sky marks focus and information. Panes are white at 7–12 % (dark) or 58–82 % (light), so each translucent value is listed with the colour it actually composites to.

RoleLightDarkUsed for
Background--bg
light: #EDEFF9
dark: #08081A

Page canvas

Surface--surface
light: rgba(255,255,255,.58) composited≈ #F7F8FC
dark: rgba(255,255,255,.07) composited≈ #19192A

Cards, panels, inputs

Surface raised--surface-2
light: rgba(255,255,255,.82) composited≈ #FCFCFE
dark: rgba(255,255,255,.12) composited≈ #262635

Sunken wells, hovers, table heads

Ink--ink
light: #17142E
dark: #F6F4FF

Headings, primary text

Ink soft--ink-2
light: #33305A
dark: #D8D4EE

Body copy on surfaces

Muted--muted
light: #585480
dark: #A7A3C6

Helper text, metadata

Line--line
light: rgba(23,20,46,.10) composited≈ #D8D9E5
dark: rgba(255,255,255,.12) composited≈ #262635

Dividers, card edges

Line strong--line-strong
light: rgba(23,20,46,.52) composited≈ #7E7D8F
dark: rgba(255,255,255,.38) composited≈ #666671

Input borders (3:1 non-text)

Primary--primary
light: #5A3ECF
dark: #B8A3FF

The one filled button per screen

On primary--primary-ink
light: #FFFFFF
dark: #160E33

Label on primary

Accent--accent
light: #5A3ECF
dark: #B8A3FF

Links, selection, focus — touchable only

On accent--accent-ink
light: #FFFFFF
dark: #160E33

Label on accent fills

Danger--danger
light: #B01F37
dark: #FF9EA6

Errors, destructive actions

On danger--danger-ink
light: #FFFFFF
dark: #2A0A10

Label on danger fills

Danger soft--danger-soft
light: rgba(176,31,55,.10) composited≈ #E7DAE6
dark: rgba(255,120,132,.16) composited≈ #301A2B

Error wash

Success--ok
light: #0D6E4E
dark: #76E3B6

Saved, active, done

Success soft--ok-soft
light: rgba(13,110,78,.12) composited≈ #D2E0E4
dark: rgba(118,227,182,.14) composited≈ #172730

Success wash

Warning--warn
light: #855200
dark: #FFD47C

Pending, heads-up

Warning soft--warn-soft
light: rgba(176,110,0,.14) composited≈ #E4DDD6
dark: rgba(255,212,124,.14) composited≈ #2B2528

Warning wash

Info--info
light: #0A6594
dark: #8FD8FF

Neutral news, “new”

Info soft--info-soft
light: rgba(10,101,148,.10) composited≈ #D6E1EF
dark: rgba(125,211,252,.14) composited≈ #18243A

Info wash

Focus ring--focus
light: #0A6594
dark: #8FD8FF

Keyboard focus outline

Scrim--scrim
light: rgba(30,26,60,.28)
dark: rgba(5,5,18,.55)

Behind modals and sheets

Contrast, both themes

Measured live from the tokens.

PairLightDark
Headings on field--ink / --bg
15.58:1AAA
18.21:1AAA
Body on pane--ink-2 / --surface
11.60:1AAA
11.97:1AAA
Metadata on pane--muted / --surface
6.63:1AA
7.15:1AAA
Metadata on lifted pane--muted / --surface-2
6.85:1AA
6.19:1AA
Primary button label--primary-ink / --primary
6.94:1AA
8.49:1AAA
Link on pane--accent / --surface
6.56:1AA
7.99:1AAA
Destructive button--danger-ink / --danger
6.78:1AA
9.30:1AAA
Error message--danger / --surface
6.41:1AA
8.79:1AAA
Success pill--ok / --ok-soft
4.61:1AA
9.84:1AAA
Warning pill--warn / --warn-soft
4.88:1AA
10.76:1AAA
Input border--line-strong / --surface
3.58:13:1 UI
3.55:13:1 UI
Focus ring--focus / --bg
5.55:13:1 UI
12.67:13:1 UI

Text needs 4.5:1, large text and UI edges 3:1 (WCAG 2.2). The current theme’s column is shaded. Translucent roles are composited over the background before measuring.

Contrast lab

Pick any two roles; switch theme to see the dark pairing.

—

Light is the material.

Foundations · 02

Typography

Outfit for display — round, light, spatial. Manrope for text and figures, with tabular numbers. Two families, nothing else.

Display and heading sizes scale down fluidly on small screens.

displayOutfit 500 · 72/72 · -0.035em

Light is the material.

h1Outfit 500 · 44/47 · -0.025em

Depth without weight.

h2Outfit 500 · 30/34 · -0.015em

Layers you can see through.

h3Outfit 500 · 21/27 · -0.005em

Soft edges, exact spacing.

body-lgManrope 400 · 18/29 · +0em

Translucent layers keep their place in space: blur says how far, the highlight edge says where.

bodyManrope 400 · 16/26 · +0em

Text never sits on raw blur — every pane carries a tint that guarantees 4.5:1.

smallManrope 500 · 14/21 · +0em

Updated 2 min ago.

captionManrope 600 · 12/17 · +0.08em · caps

Now playing · 12 tracks

monoManrope 500 · 13/20 · +0em

backdrop-filter: blur(24px) saturate(1.6)

Foundations · 03

Spacing

A 4-px base with softer middle steps — 20, 28 — that suit rounded panes.

--space-14px
--space-28px
--space-312px
--space-416px
--space-520px
--space-628px
--space-740px
--space-856px
--space-980px

Foundations · 04

Radius & borders

Large and concentric: an inner radius equals the outer one minus the padding, so nested panes stay parallel.

--radius-xs8px · Checkboxes, tags
--radius-sm12px · Inputs, small buttons
--radius-md18px · Widgets, menus
--radius-lg28px · Panes, modals
--radius-pill999px · Buttons, pills, switches
border-w
1px
border-w-strong
1.5px

Foundations · 05

Elevation

Blur is the elevation. Each level adds blur and a deeper, softer shadow; every pane keeps a 1 px highlight along its top edge.

Pane · blur 16--elev-0

In-flow panels. Depth comes from blur and one highlight edge, not shadow.

Lifted · blur 24--elev-1

Controls and widgets resting on a pane.

Floating · blur 32--elev-2

Toasts, menus, the now-playing bar.

Window · blur 40--elev-3

Modals and sheets — the most blur, the deepest shadow.

Foundations · 06

Motion

Weightless: long decelerations, panes sharpen out of blur as they arrive. The tab pill glides in 420 ms; everything else stays under 300.

--dur-micro140ms · var(--ease-out)

Hover glow, press

--dur-enter280ms · var(--ease-out)

Panes rise and sharpen out of blur

--dur-exit180ms · var(--ease-in)

Panes soften back into the field

--dur-emphasis420ms · var(--ease-standard)

The selection pill gliding between tabs

ease-out
cubic-bezier(.16,1,.3,1)
ease-in
cubic-bezier(.5,0,.75,0)
ease-standard
cubic-bezier(.32,.72,0,1)

Entrances 200–300 ms, exits 150–200 ms, never linear (R31). With “reduce motion” on, every transition drops to 1 ms and the dots jump.

§ Components

Ten components, in glass

Every component is live, and each one is shown frozen in all its states. Text never sits on raw blur — each pane carries a tint that guarantees contrast.

Component · 01

Button

Pill buttons. Primary is solid Iris; secondary is a glass pill that lets the field show through. Hover adds light, never darkness.

Press “Continue”: it shows its loading state, then confirms. One filled button per screen (R6); the rest step down to secondary or ghost.

States · primary

Primary button in six states: default, hover, focus, pressed, disabled, loading.

States · secondary

Secondary button in six states.

Heights
36 · 44 · 52 px
Radius
var(--radius-pill)
Label
Manrope 600 · 15 px
Secondary
blur 24 + surface-2 + edge
Hover
+ inner glow
Touch target
≥ 44 × 44

Component · 02

Field & validation

Frosted fields with the label above (R29). Focus brightens the pane and draws a Sky ring; errors take the reserved line under the field (R10).

We never share it.

At least 8 characters.

Your friends see this name.

Errors appear when you leave a field, then clear as you type.

States

Text field in six states: default, hover, focus, filled, error, disabled.

Height
44 px
Fill
var(--surface) + blur
Border
1 px var(--line-strong) · 3.5:1
Focus
Sky ring 3 px
Radius
12 px
Error
icon + words

Component · 03

Select & segmented

The native select under a frosted skin. Segmented controls use a glass pill that glides to the selection.

Lossless uses about 3× more data.

View

Four options or fewer: show them all, no menu.

States

Select in four states.

Control
Native <select> — keyboard, screen readers and mobile pickers for free
Height
var(--control-h)
Chevron
18 px, pointer-events none
Segmented
≤ 4 options, radio inputs underneath

Component · 04

Checkbox, radio, switch

Soft, rounded controls; Iris fills what is on. Switches apply at once — the setting is the action.

Sync
Audio output

Sound

States

Checkbox, radio and switch in their states.

Box
20 × 20, label row 44 px tall
Group label
<fieldset> + <legend>
Switch
role="switch", acts immediately — no Save
Select all
indeterminate when partly checked

Component · 05

Card & status

Widgets are panes: tinted glass, a highlight edge and a soft shadow. A widget that opens something is one link.

Now playing Aurora driftLune · Northern Lights Open player
BrusselsMy location

19°

Partly cloudy · H 21° L 14°

  • Now19°
  • 1320°
  • 1421°
  • 1520°
  • 1618°
Wallet+12.4 %

Balance

€ 4 280.50

Last 12 months

Status, avatars, tags

LivePendingFailedBetaPro EMJWMTSO+3
Fill
var(--surface) · blur 24
Edge
1 px inner highlight
Radius
var(--radius-lg) · 28 px
Padding
24 px → inner radius 4 px less
Link widget
one <a>

Component · 06

Tabs

A glass pill glides to the selected tab in 420 ms on the spatial curve. Arrow keys move between tabs.

Picked for this evening: three slow records and a live set from Oslo.

States

Tab in five states.

Keyboard
← → move and select · Home / End
Indicator
slides in var(--dur-emphasis)
Tab height
44 px
Disabled tab
explains why on its panel or tooltip

Component · 07

Toast with undo

Toasts float at elevation 2: the most blur after modals. They confirm, offer Undo when it applies, and leave on their own.

  • Road trip — 42 tracksPlaylist · 2 h 48 min
  • Late focus — 18 tracksPlaylist · 1 h 06 min
  • Sunday — 25 tracksPlaylist · 1 h 37 min

Archive acts at once and offers Undo for 6 s — no “Are you sure?” (R28). Hover or focus the toast to pause the timer.

Enter
280 ms, rises out of blur
Exit
180 ms
Life
4 s · 6 s with an action
Pause
on hover and on focus
Stack
3 at most
Announce
aria-live="polite"

Component · 09

Empty state

Empty panes still tell you where you are and what comes next (R30).

  • ÉMÉlodie MartinListening to Aurora drift
  • JWJonas WeilOffline
  • MTMei TanakaListening to Glasshouse
  • SOSasha OkaforLast seen yesterday
  • ZLZoé LambertListening to Low orbit
  • KAKai AndersenOffline

No favourites yet

Tap the heart on any track and it lands here, on every device.

Never a dead end
every empty state offers the next action (R30)
Says why
no results ≠ nothing yet ≠ error
Search
counter announces matches, aria-live polite

Component · 10

Skeleton

Skeletons are frosted panes with the same footprint as the widget. They pulse slowly; with reduced motion they stay still.

Now playingSoft staticYui · Iridescent
Shape
mirrors the real layout, same height (R10)
Pulse
1.4 s, alternate, off with reduced motion
When
only after 300 ms — faster loads show nothing
Screen readers
aria-busy on the container

§ Screens

Two screens, in depth

The components at work in a music app: a player with a queue, and a home screen of widgets at three depths.

Screen A

Aurora — Now playing

A player on glass. Play, skip and scrub; tap a track to play it; favourite with Undo; empty the queue to meet its empty state (R30).

Aurora drift

Lune · Northern Lights

1:243:42

Up Next

5 tracks

  • 3:42
  • 4:15
  • 2:58
  • 5:02
  • 4:01

Screen B

Aurora — Home widgets

Widgets at three depths. The chart switches period with a segmented control; the switches act instantly — settings that apply at once need no Save button.

Listening time

This week · minutes

Sound

Friends

  • MMeiGlasshouse · now
  • JJonasOffline
  • ZZoéLow orbit · 2 min

Doctrine

Rules this system keeps

Sandro’s forty design rules, and how Glassmorphism measures up to the ones you can check.

  • R6One filled button per screen

    Solid Iris is the primary; glass pills are secondary. The player’s Play button is the one fill on its screen.

  • R10Nothing jumps

    Skeleton panes keep the widget’s exact size; field messages are reserved.

  • R12Two typefaces

    Outfit for display, Manrope for text and figures.

  • R14Accent means touchable

    Iris fills buttons, switches and selection; Sky marks focus. Headings stay in ink.

  • R15No pure black

    Midnight is #08081A; scrims are tinted navy, never black.

  • R16Contrast on glass

    Ratios are measured on the composited pane colour; all 24 pairs pass.

  • R19Depth = blur

    Four blur levels; shadow only on panes that float.

  • R2044 px targets

    Pills and icon buttons are 44 px; queue rows are full-width targets.

  • R28Undo over confirm

    Unfavourite, remove from queue and archive all offer Undo.

  • R31Weightless motion

    280 ms in, 180 ms out, long ease-out; nothing linear.

  • R32Nothing flickers

    The colour field is still; motion happens only where you act.

  • R39Glass with a reason

    Blur codes depth; it is never decoration on text.

Filters

Status
Sort by