Design System Tokens - Sizing
You can adjust any of the defaults in the src/_config/values file of your design system.
baseHeightMultiplier: this value, multiplied bydesignUnit, sets the base height of most controls. Works with adaptivedensityvalues.baseHorizontalSpacingMultiplier: this value, multiplied bydesignUnit, sets the internal horizontal padding of most controls. Works with adaptivedensityvalues.controlCornerRadius: sets the corner radius used by controls with backgrounds.density: an adjustment to sizing tokensbaseHeightMultiplierandbaseHorizontalSpacingMultiplier.designUnit: the unit size of the design grid. Used to calculate height and spacing sizes for controls.
Usage
- CSS
- JavaScript
border-radius: var(--control-corner-radius);
import {controlCornerRadius} from '@genesislcap/alpha-design-system';
const styles = css`
:host {
border-radius: ${controlCornerRadius};
}`;