Skip to content
Menu
Language, currently English
EnglishGaeilge简体中文Españolहिन्दीPortuguêsবাংলাРусский日本語廣東話Tiếng Việtالعربية

rastrillo design system

An overview of everything the design system provides. Theme: plain. Language: English.

Tokens

Shared custom properties for all components. Colour and the type are part of the theme (themes/plain.css). Type scale and the spacing steps are structure and come from tokens.css.

Light mode shown here, light-dark for all values. WCAG 2.2 AA floors: 4.5:1 for text, 3:1 for control borders. All colours in chips etc pull from the variables.

Surfaces and lines

  • --rst-bg#ffffff
  • --rst-header-rulevar(--rst-line)
  • --rst-line#e0e0e0
  • --rst-line-strong#767676
  • --rst-surface#ffffff
  • --rst-surface-2#f4f4f4

Text

  • --rst-text#111111
  • --rst-text-faint#636363
  • --rst-text-muted#4a4a4a

Accent

  • --rst-accent#111111
  • --rst-accent-soft#ededed
  • --rst-accent-strong#000000
  • --rst-on-accent#ffffff

Status tones

  • --rst-tone-negative-bg#f0e3e3
  • --rst-tone-negative-fg#7a2c2c
  • --rst-tone-neutral-bg#eaeaea
  • --rst-tone-neutral-fg#3f3f3f
  • --rst-tone-positive-bg#e4ebe6
  • --rst-tone-positive-fg#2e5b3e
  • --rst-tone-warning-bg#efeadd
  • --rst-tone-warning-fg#6a5320

Depth

  • --rst-overlayrgba(0, 0, 0, 0.4)
  • --rst-shadow-knob0 1px 1px light-dark(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.4))
  • --rst-shadow-lift0 1px 1px light-dark(rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.3))
  • --rst-shadow-pop0 1px 3px light-dark(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.5))

Radius

  • --rst-radius4px
  • --rst-radius-pill999px
  • --rst-radius-sm3px

Type family

  • --rst-fontsystem-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif

Type scale

  • Ag--rst-fs-base0.875rem
  • Ag--rst-fs-lg1.0625rem
  • Ag--rst-fs-sm0.78125rem
  • Ag--rst-fs-xs0.71875rem

Spacing

  • --rst-sp-10.25rem
  • --rst-sp-20.5rem
  • --rst-sp-30.75rem
  • --rst-sp-41rem
  • --rst-sp-51.5rem
  • --rst-sp-62.5rem