feat(system): improve typography components

This commit is contained in:
Pavel Prichodko 2022-03-18 19:14:30 +01:00
parent 3370171ddf
commit ba359a5cc7
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 30 additions and 4 deletions

View File

@ -4,11 +4,21 @@ import type React from 'react'
const Heading = styled('div', {
fontFamily: theme.fonts.sans,
fontSize: '17px',
variants: {
size: {},
color: {},
size: {
15: {
fontSize: '15px',
},
17: {
fontSize: '17px',
},
},
color: {
accent: {
color: '$accent-1',
},
},
weight: {
'400': {
fontWeight: theme.fontWeights[400],
@ -55,6 +65,9 @@ const Heading = styled('div', {
defaultVariants: {
align: 'left',
color: 'accent',
weight: '500',
size: '17',
},
// compoundVariants: {},

View File

@ -13,13 +13,25 @@ const Text = styled('div', {
'12': {
fontSize: '12px',
},
'13': {
fontSize: '13px',
},
'14': {
fontSize: '14px',
},
'15': {
fontSize: '15px',
},
},
color: {
accent: {
color: '$accent-1',
},
primary: {
color: '$primary-1',
},
gray: {
color: '#939BA1',
color: '$gray-1',
},
},
weight: {
@ -70,6 +82,7 @@ const Text = styled('div', {
defaultVariants: {
align: 'left',
weight: '400',
color: 'accent',
},
// compoundVariants: {},