Skip to content

Base Styles

Base styles provide default resets and element-level defaults for Digital Delve applications.

Body

The body uses a 16px base font size with a line height of 1.345, -webkit-font-smoothing, and the --font variable.

css
body {
  font: 16px/1.345 var(--font);
  -webkit-font-smoothing: antialiased;
}

Headings

All headings use --font-header at 800 weight. Font sizes scale down from h1 to h6.

ElementFont Size
h12rem
h21.6rem
h31.3rem
h41.2rem
h51.1rem
h61.15rem
legend1.2rem

An h2 immediately following an h1 is treated as a subtitle — smaller and muted.

html
<h1>Page Title</h1>
<h2>Supporting subtitle shown smaller and muted</h2>

Links use --primary and transition through --primary-hover and --primary-active.

html
<a href="#">Example Link</a>

Placeholders

Placeholder text uses 0.9rem and the body font, with text-overflow: ellipsis for clipped inputs.

html
<input placeholder="Enter text…">

Global Background and Text

The html and body elements are set to use theme variables automatically.

css
html, body {
  background: var(--bg);
  color: var(--text);
}

Refer to Variables for the full token reference and dark mode behavior.