Fusuma

Design

The design is data.

Colours, spacing, corners, type and motion live in files, not in code: 27 palettes with sixteen colour roles in dark and light, and a TOML file of numbers for each design. The toolkit paints with what they generate, and a test fails when the files and the code drift apart. Below are the specs of the two designs, generated from the compiled theme.

Fusuma Cyberdeck See them drawn

Fusuma design spec

Named for the sliding paper door: sumi ink (dark) and washi paper (light), one vermilion accent, small corners, thin outlines; what floats sits on stacked sheets of paper (hard 1 px edges, no blur; a theme can ask for a blurred shadow instead), a bar on the chosen list row like a seal, an underline under the chosen tab.

Generated from Theme and Palette by crates/fusuma-ui/tests/design.rs; do not edit. The tokens are in design/tokens/fusuma/, the design file is built with nu scripts/design.nu build.

Colour roles

roledarklightcontrast darkcontrast light
background#14110f#f4eee21.01.0
surface#1c1815#fbf7ee1.11.1
surface-raised#28221e#eee6d71.21.1
border#423a33#d8cdb81.71.4
border-strong#82766a#887a644.33.6
text#efe8dd#2a242014.514.3
text-muted#a89c8f#685e546.65.9
text-disabled#70675e#a096883.22.7
primary#ec5444#c8372d5.04.9
primary-hover#f47060#b02c246.65.6
primary-active#e04c3c#94221c4.77.3
on-primary#100c0a#ffffff5.55.2
danger#ff6888#a814406.46.9
success#8abe68#3a6c2c8.15.8
warning#e2b248#845c089.05.6
info#8296da#3446966.28.0

Contrast is the WCAG ratio of the colour against the surface it is read on (on-primary on primary, outlines and fills against the page).

Typography

rolefontsize
titleInter21
bodyInter15
captionInter11
codeJetBrains Mono15
iconLucide20

Spacing, shape and size

tokenpx
decor/bar4
decor/dots0
decor/hatch0
decor/lattice0
decor/ticks0
radius/lg4
radius/md3
radius/sm2
size/border1
size/control-height44
size/elevation0
size/indicator20
size/track-height6
space/lg20
space/md12
space/sm6
space/xs2

A control is at least 44 px tall (the smallest touch target). Shadows: none.

Motion

fast 100 ms, normal 240 ms, slow 420 ms.

Decoration

pieceruleon a glass without greys
seal bara 4 px bar in primary on the left edge of the chosen list row, inset a sixth of the height top and bottomkept

Widgets

widgetlook
primary button, idleprimary fill, no outline, on-primary text, radius 2
primary button, hoverprimary-hover fill, no outline, on-primary text, radius 2
primary button, pressedprimary-active fill, no outline, on-primary text, radius 2
primary button, disabledsurface fill, border outline, text-disabled text, radius 2
secondary button, idlesurface fill, border-strong outline, text text, radius 2
secondary button, hoversurface-raised fill, border-strong outline, text text, radius 2
secondary button, pressedborder fill, border-strong outline, text text, radius 2
secondary button, disabledsurface fill, border outline, text-disabled text, radius 2
ghost button, idle#28221e fill, no outline, text text, radius 2
ghost button, hoversurface-raised fill, no outline, text text, radius 2
ghost button, pressedborder fill, no outline, text text, radius 2
ghost button, disabledsurface fill, border outline, text-disabled text, radius 2
list item, chosensurface-raised fill, text text
list item, idleno fill, text text
list item, hoversurface-raised fill, text text
list item, pressedborder fill, text text
tab, chosenno fill, text text, primary bar under it
tab, idleno fill, text-muted text
tab, hoversurface-raised fill, text text
dialogsurface fill, border-strong outline, radius 3, no shadow
menusurface fill, border-strong outline, radius 3, no shadow
toastsurface-raised fill, primary outline, radius 3, no shadow

Source of the look: crates/fusuma-ui/src/fusuma.rs.

Tokens (W3C design-token format): dark, light.

Cyberdeck design spec

Near-black, white mono text, one vermilion accent, 1 px outlines, square corners, no shadow; corner ticks, a hatch on the chosen row, a dotted track and a progress bar round the frame.

Generated from Theme and Palette by crates/fusuma-ui/tests/design.rs; do not edit. The tokens are in design/tokens/cyberdeck/, the design file is built with nu scripts/design.nu build.

Colour roles

roledarklightcontrast darkcontrast light
background#0a0a0b#f4f3ef1.01.0
surface#111113#ffffff1.01.1
surface-raised#1e1e21#eae8e31.21.1
border#3c3c42#ceccc61.81.4
border-strong#96969e#64625e6.75.5
text#f6f6f6#10101217.519.0
text-muted#a6a6ac#5452507.87.8
text-disabled#68686e#9694903.43.0
primary#f04e3a#c8372d5.35.2
primary-hover#f86e5c#b02c247.05.9
primary-active#e24632#94221c4.97.6
on-primary#0a0a0b#ffffff5.55.2
danger#ff5470#ba163a6.16.4
success#4cd67a#00763610.15.8
warning#ffc400#865c0011.85.9
info#468cff#005cc45.86.3

Contrast is the WCAG ratio of the colour against the surface it is read on (on-primary on primary, outlines and fills against the page).

Typography

rolefontsize
titleJetBrains Mono18
bodyJetBrains Mono14
captionJetBrains Mono10
codeJetBrains Mono14
iconLucide18

Spacing, shape and size

tokenpx
decor/bar0
decor/dots3
decor/hatch5
decor/lattice0
decor/ticks8
radius/lg3
radius/md2
radius/sm0
size/border1
size/control-height44
size/elevation0
size/indicator18
size/track-height4
space/lg14
space/md8
space/sm4
space/xs2

A control is at least 44 px tall (the smallest touch target). Shadows: none.

Motion

fast 80 ms, normal 160 ms, slow 300 ms.

Decoration

pieceruleon a glass without greys
corner ticks8 px arms, 1 px thick, in the four corners of a card and a dialog; the card has a quiet 1 px outline between themkept (they are lines)
hatch45 degree lines 5 px apart in primary thinned to 62 % over surface, on the chosen list row and taba solid primary fill with on-primary text
dotted tracka solid bar to the value, then a 1 px dot every 3 px in border-stronga solid track
frame progressa progress with room on all four sides (taller than twice track-height) runs round its edge, clockwise from the top left, track-height thick, over a border trackkept (it is lines)

Widgets

widgetlook
primary button, idleprimary fill, no outline, on-primary text, radius 0
primary button, hoverprimary-hover fill, no outline, on-primary text, radius 0
primary button, pressedprimary-active fill, no outline, on-primary text, radius 0
primary button, disabledsurface fill, border outline, text-disabled text, radius 0
secondary button, idlesurface fill, border-strong outline, text text, radius 0
secondary button, hoversurface-raised fill, border-strong outline, text text, radius 0
secondary button, pressedborder fill, border-strong outline, text text, radius 0
secondary button, disabledsurface fill, border outline, text-disabled text, radius 0
ghost button, idle#1e1e21 fill, no outline, text text, radius 0
ghost button, hoversurface-raised fill, no outline, text text, radius 0
ghost button, pressedborder fill, no outline, text text, radius 0
ghost button, disabledsurface fill, border outline, text-disabled text, radius 0
list item, chosensurface fill, hatched, text text
list item, idleno fill, text text
list item, hoversurface-raised fill, text text
list item, pressedborder fill, text text
tab, chosensurface fill, hatched, text text, primary bar under it
tab, idleno fill, text-muted text
tab, hoversurface-raised fill, text text
dialogsurface fill, border-strong outline, radius 2, no shadow, corner ticks
menusurface fill, border-strong outline, radius 2, no shadow, corner ticks
toastsurface-raised fill, primary outline, radius 2, no shadow

Source of the look: crates/fusuma-ui/src/cyberdeck.rs.

Tokens: dark, light.

Source: design/ in the toolkit. A design file for OpenPencil and Figma-compatible tools is built from the same data.