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: day. Language: English.

Tokens

Shared custom properties for all components. Colour and the type are part of the theme (themes/day.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-rulecolor-mix(in oklab, var(--rst-accent) 18%, var(--rst-line))
  • --rst-line#e5e7eb
  • --rst-line-strong#7f8792
  • --rst-surface#ffffff
  • --rst-surface-2#f6f7f8

Text

  • --rst-text#1a1d21
  • --rst-text-faint#656c78
  • --rst-text-muted#4b5563

Accent

  • --rst-accent#2464e0
  • --rst-accent-soft#eef3fe
  • --rst-accent-strong#1a4fc0
  • --rst-on-accent#ffffff

Status tones

  • --rst-tone-negative-bg#fee2e2
  • --rst-tone-negative-fg#b91c1c
  • --rst-tone-neutral-bg#eef0f2
  • --rst-tone-neutral-fg#374151
  • --rst-tone-positive-bg#dcfce7
  • --rst-tone-positive-fg#166534
  • --rst-tone-warning-bg#fef3c7
  • --rst-tone-warning-fg#854d0e

Depth

  • --rst-overlayrgba(0, 0, 0, 0.45)
  • --rst-shadow-knob0 1px 2px rgba(0, 0, 0, 0.3)
  • --rst-shadow-lift0 1px 2px rgba(0, 0, 0, 0.08)
  • --rst-shadow-pop0 8px 24px light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5))

Radius

  • --rst-radius8px
  • --rst-radius-pill999px
  • --rst-radius-sm6px

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