Design System Tokens - Sizing
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
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 adaptivedensity
values.baseHorizontalSpacingMultiplier
: this value, multiplied bydesignUnit
, sets the internal horizontal padding of most controls. Works with adaptivedensity
values.controlCornerRadius
: sets the corner radius used by controls with backgrounds.density
: an adjustment to sizing tokensbaseHeightMultiplier
andbaseHorizontalSpacingMultiplier
.designUnit
: the unit size of the design grid. Used to calculate height and spacing sizes for controls.
Usage
<Tabs
defaultValue="css"
values={[
{ label: 'CSS', value: 'css', },
{ label: 'JavaScript', value: 'token', }
]
}>
border-radius: var(--control-corner-radius);
import {controlCornerRadius} from '@genesislcap/alpha-design-system';
const styles = css`
:host {
border-radius: ${controlCornerRadius};
}`;