GRID_GAP_SIZE_VAR

const
Layout & Sizing

Maps every gap-size token to its corresponding CSS custom property, declared in the hand-maintained token sheet packages/ds/src/assets/css/tokens/light.css. Provides a single source of truth so a token rename propagates automatically.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

xs: 'var(--origam-grid---gap-xs)'
CSS variable for the xs gap token.
sm: 'var(--origam-grid---gap-sm)'
CSS variable for the sm gap token.
md: 'var(--origam-grid---gap-md)'
CSS variable for the md gap token.
lg: 'var(--origam-grid---gap-lg)'
CSS variable for the lg gap token.
xl: 'var(--origam-grid---gap-xl)'
CSS variable for the xl gap token.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamGrid

Usage

Examples

Ready-to-paste code snippets using this constant.

Resolving a gap token to its CSS variable

typescript