Forme DS

Fondations

Valeurs

Le tableau complet des jetons du socle : couleurs (avec leur contraste sur la page et la surface, en clair et en sombre), typographie, mesures. Il est généré à chaque construction du site depuis @forme-ch/design-system/dist/tokens.md, lui-même produit par scripts/build-tokens.mjs à partir de la source unique tokens/forme.tokens.json. Pour changer une valeur : la source, jamais cette page.

Jetons Forme® — valeurs verrouillées (S1, @forme-ch/ui 3.0)

@generated par scripts/build-tokens.mjs depuis tokens/forme.tokens.json — ne pas éditer à la main.

Couleurs sémantiques

Contraste WCAG 2 (minimum texte 4.5:1) sur la page et la surface.

Jeton Clair Sombre Page clair Surface clair Page sombre Surface sombre Variables Astryx
--forme-color-background-page #f4f4f5 #0b0b0c 1.00 1.10 1.00 1.05 --color-background-body --color-background-muted
--forme-color-background-surface #ffffff #121214 1.10 1.00 1.05 1.00 --color-background-surface --color-background-card
--forme-color-background-canvas #ececee #0e0e10 1.07 1.18 1.02 1.03
--forme-color-background-field #f4f4f5 #1a1a1d 1.00 1.10 1.13 1.08
--forme-color-background-hover #f7f7f8 #17171a 1.03 1.07 1.10 1.05 --color-tint-hover
--forme-color-background-selected #efeff1 #1f1f23 1.04 1.15 1.20 1.14
--forme-color-background-floating #ffffff #1f1f23 1.10 1.00 1.20 1.14 --color-background-popover
--forme-color-background-strong #e7e7ea #2a2a2e 1.12 1.23 1.38 1.31
--forme-color-text-primary #18181b #ededed 16.12 17.72 16.80 15.98 --color-text-primary
--forme-color-text-secondary #65656d #8f8f8f 5.26 5.78 6.08 5.79 --color-text-secondary --color-text-tertiary
--forme-color-text-success #047857 #34d399 4.99 5.48 10.23 9.73 --color-text-green
--forme-color-text-warning #c2410c #fb923c 4.71 5.18 8.69 8.27 --color-text-orange --color-text-yellow
--forme-color-text-error #be123c #fb7185 5.72 6.29 7.31 6.95 --color-text-red --color-icon-red
--forme-color-text-info #1d4ed8 #60a5fa 6.10 6.70 7.74 7.36 --color-text-blue
--forme-color-text-disabled #b4b4ba #5c5c5c 1.88 ✗ 2.06 ✗ 2.94 ✗ 2.80 ✗ --color-text-disabled --color-icon-disabled
--forme-color-status-success #047857 #34d399 4.99 5.48 10.23 9.73 --color-success --color-icon-green
--forme-color-status-warning #c2410c #fb923c 4.71 5.18 8.69 8.27 --color-warning --color-icon-orange --color-icon-yellow
--forme-color-status-error #e11d48 #fb7185 4.27 4.70 7.31 6.95 --color-error
--forme-color-status-info #1d4ed8 #60a5fa 6.10 6.70 7.74 7.36 --color-info --color-icon-blue
--forme-color-status-success-tint #d1fae5 #10392c 1.03 1.13 1.54 1.46 --color-background-green
--forme-color-status-warning-tint #ffedd5 #3d2415 1.04 1.15 1.37 1.30 --color-background-orange --color-background-yellow
--forme-color-status-error-tint #ffe4e6 #401a24 1.09 1.20 1.30 1.24 --color-background-red
--forme-color-status-info-tint #dbeafe #172554 1.11 1.22 1.34 1.27
--forme-color-status-success-line #6ee7b7 #1f6b52 1.39 1.52 3.08 2.93 --color-border-green
--forme-color-status-warning-line #fdba74 #7c3a16 1.53 1.69 2.32 2.20 --color-border-orange --color-border-yellow
--forme-color-status-error-line #fda4af #7f2638 1.72 1.89 2.10 1.99 --color-border-red
--forme-color-status-success-muted #a7f3d0 #34d3993d 1.17 1.28 1.59 1.63 --color-success-muted
--forme-color-status-warning-muted #fed7aa #fb923c3d 1.23 1.35 1.51 1.55 --color-warning-muted
--forme-color-status-error-muted #fecdd3 #fb71853d 1.28 1.41 1.43 1.46 --color-error-muted
--forme-color-status-neutral #a1a1aa #6b6b6b 2.33 2.56 3.69 3.51
--forme-color-border-default #e7e7ea #1c1c1f 1.12 1.23 1.16 1.10 --color-border
--forme-color-border-strong #e4e4e7 #2a2a2e 1.15 1.27 1.38 1.31 --color-border-emphasized
--forme-color-border-floating #e4e4e7 #2a2a2e 1.15 1.27 1.38 1.31
--forme-color-overlay-hover #0000000d #ffffff0d 1.12 1.12 1.10 1.13 --color-overlay-hover
--forme-color-brand-accent #ffaa00 #ffaa00 1.74 1.91 10.31 9.80
--forme-color-brand-on-accent #171717 #171717 16.31 17.93 1.10 1.04

Paires contrôlées en CI (scripts/check-contrast.mjs) :

Texte Fond Thème Contraste
text.primary background.page clair 16.12:1
text.primary background.page sombre 16.80:1
text.primary background.surface clair 17.72:1
text.primary background.surface sombre 15.98:1
text.primary background.field clair 16.12:1
text.primary background.field sombre 14.83:1
text.primary background.selected clair 15.43:1
text.primary background.selected sombre 14.03:1
text.secondary background.page clair 5.26:1
text.secondary background.page sombre 6.08:1
text.secondary background.surface clair 5.78:1
text.secondary background.surface sombre 5.79:1
text.secondary background.field clair 5.26:1
text.secondary background.field sombre 5.37:1
text.secondary background.selected clair 5.03:1
text.secondary background.selected sombre 5.08:1
text.success background.page clair 4.99:1
text.success background.page sombre 10.23:1
text.success background.surface clair 5.48:1
text.success background.surface sombre 9.73:1
text.success background.field clair 4.99:1
text.success background.field sombre 9.03:1
text.success background.selected clair 4.78:1
text.success background.selected sombre 8.54:1
text.warning background.page clair 4.71:1
text.warning background.page sombre 8.69:1
text.warning background.surface clair 5.18:1
text.warning background.surface sombre 8.27:1
text.warning background.field clair 4.71:1
text.warning background.field sombre 7.67:1
text.warning background.selected clair 4.51:1
text.warning background.selected sombre 7.26:1
text.error background.page clair 5.72:1
text.error background.page sombre 7.31:1
text.error background.surface clair 6.29:1
text.error background.surface sombre 6.95:1
text.error background.field clair 5.72:1
text.error background.field sombre 6.45:1
text.error background.selected clair 5.47:1
text.error background.selected sombre 6.10:1
text.info background.page clair 6.10:1
text.info background.page sombre 7.74:1
text.info background.surface clair 6.70:1
text.info background.surface sombre 7.36:1
text.info background.field clair 6.10:1
text.info background.field sombre 6.83:1
text.info background.selected clair 5.84:1
text.info background.selected sombre 6.46:1
brand.on-accent brand.accent clair 9.39:1
brand.on-accent brand.accent sombre 9.39:1
text.success status.success-tint clair 4.84:1
text.success status.success-tint sombre 6.65:1
text.warning status.warning-tint clair 4.52:1
text.warning status.warning-tint sombre 6.35:1
text.error status.error-tint clair 5.24:1
text.error status.error-tint sombre 5.61:1
text.info status.info-tint clair 5.49:1
text.info status.info-tint sombre 5.78:1

Typographie

Cran Taille / interligne Graisse Tailles Astryx Rôles Astryx
caption 12/16 400 sm, xs, 2xs, 3xs, 4xs heading-5, heading-6, supporting
body 13/20 400 base heading-4, body, label, code
large 16/24 400 lg heading-3, large
title 20/28 500 xl heading-2
heading 24/32 500 2xl heading-1, display-3
display 32/40 700 3xl, 4xl, 5xl display-1, display-2
mono-caps 12/16 · 0.08em 400 — —

Espacement

Jeton Valeur Variables Astryx
--forme-spacing-0 0px
--forme-spacing-1 4px
--forme-spacing-2 8px
--forme-spacing-3 12px
--forme-spacing-4 16px
--forme-spacing-5 20px
--forme-spacing-6 24px
--forme-spacing-7 28px
--forme-spacing-8 32px
--forme-spacing-9 36px
--forme-spacing-10 40px
--forme-spacing-11 44px
--forme-spacing-12 48px
--forme-spacing-16 64px

Rayons

Jeton Valeur Variables Astryx
--forme-radius-sm 4px --radius-inner
--forme-radius-md 8px --radius-element
--forme-radius-lg 12px --radius-container --radius-page
--forme-radius-full 9999px --radius-full

Ombres

Jeton Valeur Variables Astryx
--forme-shadow-low clair 0px 2px 4px 0px #0000000d, 0px 4px 8px 0px #0000001a, inset 0px 0px 0px 1px #00000000
sombre 0px 2px 4px 0px #00000040, 0px 4px 8px 0px #00000066, inset 0px 0px 0px 1px #ffffff14
--shadow-low
--forme-shadow-high clair 0px 4px 6px 0px #0000001a, 0px 12px 24px 0px #00000026, inset 0px 0px 0px 1px #00000000
sombre 0px 4px 6px 0px #00000080, 0px 12px 24px 0px #000000b3, inset 0px 0px 0px 1px #ffffff26
--shadow-high --shadow-med

z-index

Jeton Valeur Variables Astryx
--forme-z-base 0
--forme-z-raised 1
--forme-z-sticky 10
--forme-z-dropdown 100
--forme-z-drawer 200
--forme-z-modal 300
--forme-z-toast 400
--forme-z-tooltip 450

Ruptures

Jeton Valeur Variables Astryx
--forme-breakpoint-sm 480px
--forme-breakpoint-md 768px
--forme-breakpoint-lg 1024px
--forme-breakpoint-xl 1280px

Durées

Jeton Valeur Variables Astryx
--forme-duration-fast 125ms --duration-fast
--forme-duration-medium 300ms --duration-medium
--forme-duration-slow 700ms --duration-slow

Courbe

Jeton Valeur Variables Astryx
--forme-ease-standard cubic-bezier(0.24, 1, 0.4, 1)

Hauteurs de contrôle

Jeton Valeur Variables Astryx
--forme-control-compact-sm 28px
--forme-control-compact-md 28px
--forme-control-compact-lg 36px
--forme-control-confortable-sm 28px
--forme-control-confortable-md 28px
--forme-control-confortable-lg 36px
--forme-control-tactile-min 44px

Primitives de couleur

Jeton Valeur
neutral.0 #ffffff
neutral.50 #fafafa
neutral.100 #f1f1f1
neutral.300 #d4d4d4
neutral.400 #a3a3a3
neutral.450 #8f8f8f
neutral.500 #6b6b6b
neutral.600 #525252
neutral.800 #262626
neutral.850 #1f1f1f
neutral.900 #171717
neutral.1000 #000000
marque.black #000000
marque.white #ffffff
marque.gray-600 #767676
marque.gray-300 #dddddd
marque.gray-100 #f7f7f7
forme.orange #ffaa00
forme.rose #ff82be
forme.violet #823cff
forme.bleu #00a0ff
forme.vert #00dc8c
forme.rouge #ae0411
forme.orange-light #fee7cb
forme.rose-light #ffe2ee
forme.violet-light #ebe8ff
forme.bleu-light #dbeeff
forme.vert-light #d3f5e0
forme.rouge-light #ffe4e1
forme.orange-ultra-light #fff7e5
forme.rose-ultra-light #fff3f9
forme.violet-ultra-light #f3ebff
forme.bleu-ultra-light #dff6ff
forme.vert-ultra-light #dcfbf4
forme.rouge-ultra-light #f7e6e7
vif.green-700 #047857
vif.green-400 #34d399
vif.orange-700 #c2410c
vif.orange-400 #fb923c
vif.red-600 #e11d48
vif.red-700 #be123c
vif.red-400 #fb7185
vif.blue-700 #1d4ed8
vif.blue-400 #60a5fa
vif.green-tint #d1fae5
vif.green-tint-dark #10392c
vif.orange-tint #ffedd5
vif.orange-tint-dark #3d2415
vif.red-tint #ffe4e6
vif.red-tint-dark #401a24
vif.blue-tint #dbeafe
vif.blue-tint-dark #172554
vif.green-line #6ee7b7
vif.green-line-dark #1f6b52
vif.orange-line #fdba74
vif.orange-line-dark #7c3a16
vif.red-line #fda4af
vif.red-line-dark #7f2638
vif.green-muted #a7f3d0
vif.green-muted-dark #34d3993d
vif.orange-muted #fed7aa
vif.orange-muted-dark #fb923c3d
vif.red-muted #fecdd3
vif.red-muted-dark #fb71853d
alpha.black-5 #0000000d
alpha.black-8 #00000014
alpha.black-10 #0000001a
alpha.black-15 #00000026
alpha.black-25 #00000040
alpha.black-40 #00000066
alpha.black-50 #00000080
alpha.black-70 #000000b3
alpha.white-5 #ffffff0d
alpha.white-8 #ffffff14
alpha.white-10 #ffffff1a
alpha.white-15 #ffffff26
alpha.transparent #00000000
ui.d-page #0b0b0c
ui.d-canvas #0e0e10
ui.d-surface #121214
ui.d-hover #17171a
ui.d-field #1a1a1d
ui.d-line #1c1c1f
ui.d-selected #1f1f23
ui.d-strong #2a2a2e
ui.d-disabled #5c5c5c
ui.d-secondary #8f8f8f
ui.d-primary #ededed
ui.l-page #f4f4f5
ui.l-canvas #ececee
ui.l-surface #ffffff
ui.l-hover #f7f7f8
ui.l-selected #efeff1
ui.l-strong #e7e7ea
ui.l-floating-line #e4e4e7
ui.l-disabled #b4b4ba
ui.l-secondary #65656d
ui.l-primary #18181b
ui.l-neutral-dot #a1a1aa
ui.d-neutral-dot #6b6b6b