On this page
  1. Typography & Color
  2. Contents
  3. Readable Type Defaults
  4. Color Scheme & System Accents

Typography & Color

Prev: Positioning & Stacking | Up: properties | Next: Custom Properties & Animation
Rel: Color & Value Functions, Responsive Design & Theming
Ref: MDN Web Docs — CSS Fonts
Tags: #public #web #css #properties #typography #color


Contents


Readable Type Defaults

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  text-wrap: pretty;
}
h1, h2 {
  line-height: 1.2;
  text-wrap: balance;
}

Color Scheme & System Accents

:root {
  color-scheme: light dark;
  accent-color: oklch(58% 0.18 250);
}

Linked from

Related notes