std/theme/default

the default theme values

std/theme/default is the theme of a program whose main file imports none, and the template to copy for a new theme: its files start # theme default, and a copy keeps all 34 names and changes values. A main file never imports it (non-canonical, and synod fmt removes the use). Its values (the Synod brand for the colors) are:

Name Value Use
Paper #151A2E scene ground
Ink #EDE9E1 node cards, primary text
Line #3A4366 links, borders
Quiet #8A90A8 secondary text, idle nodes
Accent #F4A340 messages, the one thing to look at
Good #5CC8B8 success, committed
Warning #E8C35A candidate, pending
Critical #E86F5A broken invariant, crashed
Message1 #F4A340 message color 1
Message2 #7FB2F0 message color 2
Message3 #C79BEA message color 3
Message4 #F08FB0 message color 4
Vignette 0 edges not darkened
Sketch 0 outlines not wobbled
Glow 24 glow blur
Shadow 0 no shadow
StrokeWidth 2 outline width
CornerRadius 12 rect corners
NodeShape "card" node cards are rects
NodeFill "solid" node cards are filled
LinkOpacity 1 links are opaque
Easing "smooth" smootherstep moves
Drift 0 no drift
Sans "Inter" default sans face
Mono "JetBrains Mono" default mono face
TitleSize 28 title role
LabelSize 16 label role
ValueSize 15 value role
CaptionSize 20 caption role
TitleWeight 600 title role
LabelWeight 500 label, value, caption roles
Tracking 0 no letter spacing
Margin 4 look.Frame inset
Fill 1 layout scale

A name is one definition whose block is one result line, as in this beginning of the file:

# theme default
# scene ground
define Paper
  result #151A2E

# node cards, primary text
define Ink
  result #EDE9E1

Values

Copy this package into a folder of your own to make a theme: set its first line to # theme <folder name> and change the values. A theme gives every name.

NameTypeValueMeaning
Papercolor #151A2Escene ground
Inkcolor #EDE9E1node cards, primary text
Linecolor #3A4366links, borders
Quietcolor #8A90A8secondary text, idle nodes
Accentcolor #F4A340messages, the one thing to look at
Goodcolor #5CC8B8success, committed
Warningcolor #E8C35Acandidate, pending
Criticalcolor #E86F5Abroken invariant, crashed
Message1color #F4A340message color 1
Message2color #7FB2F0message color 2
Message3color #C79BEAmessage color 3
Message4color #F08FB0message color 4
Vignettenumber0edges not darkened
Sketchnumber0outlines not wobbled
Glownumber24glow blur
Shadownumber0no shadow
StrokeWidthnumber2outline width
CornerRadiusnumber12rect corners
NodeShapetextcardnode cards are rects
NodeFilltextsolidnode cards are filled
LinkOpacitynumber1links are opaque
Easingtextsmoothsmootherstep moves
Driftnumber0no drift
SanstextInterdefault sans face
MonotextJetBrains Monodefault mono face
TitleSizenumber28title role
LabelSizenumber16label role
ValueSizenumber15value role
CaptionSizenumber20caption role
TitleWeightnumber600title role
LabelWeightnumber500label, value, caption roles
Trackingnumber0no letter spacing
Marginnumber4`look.Frame` inset
Fillnumber1layout scale

More looks and themes, with an editable demo each, are on Looks & Themes; the gallery plays every pair.