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

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Entrées

Valeurs

Toutes les entrées de cette constante. Cliquez sur une valeur pour la copier dans le presse-papiers.

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.

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

  • OrigamGrid

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Resolving a gap token to its CSS variable

typescript