Preflight
vel-src: reset.css
VeloraCSS includes an opinionated CSS reset (preflight) that normalizes browser defaults and establishes dark-surface-first defaults.
| Class | Properties |
|---|---|
| box-sizing: border-box | Applied to all elements via *, *::before, *::after |
| margin: 0 | All elements start with no margin |
| body background | var(--vel-surface-bg) — dark surface default |
| body color | var(--vel-color-text) — light text default |
| img, video | display: block; max-width: 100% |
| font-family | var(--vel-font-sans) |
| line-height | 1.5 on body |
| -webkit-font-smoothing | antialiased on body |
| button, input, select, textarea | font: inherit; margin: 0 |
| h1–h6 | font-size: inherit; font-weight: inherit |
| a | color: inherit; text-decoration: inherit |
| ol, ul | list-style: none; padding: 0 |
Examples
Preflight is automatic — no class needed
Clean baseline
No browser quirks to fight.
Dark surface defaults from preflight
This matches the preflight body defaults
Overriding preflight for light mode