size-definition

v1.0.3arrow_drop_down
v1.0.3
v1.0.2
v1.0.1
v1.0.1
v1.0.0
v1.0.0
STATUS
Passing
DOWNLOADS
4,530
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
3 KB
Css-variables definitions for font sizes.
1 contributor
Install size-definition as a package?
Copied
npm i @bit/bit.base-ui.theme.size-definition
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
theme/sizeDefinition ()

Css-variables definitions for font sizes. For headers:

  • --h-xxs: 18px
  • --h-xs: 26px
  • --h-sm: 36px
  • --h-md: 40px
  • --h-lg: 50px
  • --h-xl: 60px
  • --h-xxl: 80px

For paragraphs:

  • --p-xxs: 12px
  • --p-xs: 14px
  • --p-sm: 15px
  • --p-md: 16px
  • --p-lg: 18px
  • --p-xl: 20px
  • --p-xxl: 24px

To use, add classes heading and text to your root component.

Help and resources