Mixins / foldkit-mixins/defaults

Defaults

namespace · packages/mixins/src/defaults.ts:95

const Defaults = { reset, body, headings, links, code, controls, all }

In the guides

Members

Defaults.reset

const · packages/mixins/src/defaults.ts:15

reset: StyleValue

Box model, margins, media, form-control fonts: what every page assumes.

Defaults.body

const · packages/mixins/src/defaults.ts:33

body: StyleValue

The page's font, color, background, and color scheme.

Defaults.headings

const · packages/mixins/src/defaults.ts:47

headings: StyleValue

A type hierarchy for h1 to h6 from the size scale, in text-overt. A container drawn in a color of its own, such as a band on the accent, sets --fk-heading: currentColor (Style.vars) and its headings take its color.

const · packages/mixins/src/defaults.ts:60

links: StyleValue

Link color, hover, and a visible focus ring.

Defaults.code

const · packages/mixins/src/defaults.ts:69

code: StyleValue

Inline code and code blocks on the subtle surface.

Defaults.controls

const · packages/mixins/src/defaults.ts:80

controls: StyleValue

Text inputs, selects, textareas, and buttons: one radius, one border, one focus.

Defaults.all

const · packages/mixins/src/defaults.ts:93

all: StyleValue

Every default except reset, which belongs in its own layer.