mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 16:47:22 +00:00
170 lines
3.8 KiB
TypeScript
170 lines
3.8 KiB
TypeScript
export const textStyles = {
|
|
h1: {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
fontSize: '2.75rem',
|
|
lineHeight: '3.375rem',
|
|
letterSpacing: '0.04em',
|
|
color: 'body'
|
|
},
|
|
h2: {
|
|
fontFamily: 'heading',
|
|
fontWeight: 400,
|
|
fontSize: { base: '1.5rem', md: '1.75rem' },
|
|
lineHeight: 'normal',
|
|
letterSpacing: '0.04em',
|
|
color: 'body'
|
|
},
|
|
header1: {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
fontSize: { base: '1.875rem', md: '2.125rem' },
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
header2: {
|
|
fontFamily: 'heading',
|
|
fontSize: { base: '1.5rem', md: '1.75rem' },
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
header3: {
|
|
fontFamily: 'heading',
|
|
fontSize: { base: '1.25rem', md: '1.375rem' },
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
header4: {
|
|
fontFamily: 'heading',
|
|
fontSize: '1.125rem',
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
header5: {
|
|
fontFamily: 'heading',
|
|
fontSize: '1rem',
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
header6: {
|
|
fontFamily: 'heading',
|
|
fontSize: '0.875rem',
|
|
letterSpacing: '0.04em',
|
|
lineHeight: 'normal',
|
|
color: 'body'
|
|
},
|
|
'header-font': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
letterSpacing: '0.04em',
|
|
fontSize: { base: '0.86rem', sm: '1rem' },
|
|
color: 'body'
|
|
},
|
|
'homepage-description': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
lineHeight: '21px',
|
|
letterSpacing: '0.05em',
|
|
textAlign: { base: 'center', md: 'left' },
|
|
color: 'body'
|
|
},
|
|
'homepage-primary-label': {
|
|
fontFamily: 'heading',
|
|
color: 'bg',
|
|
fontWeight: 700,
|
|
textTransform: 'uppercase'
|
|
},
|
|
'home-section-link-label': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
textTransform: 'uppercase',
|
|
textAlign: 'center',
|
|
p: 4
|
|
},
|
|
'quick-link-text': {
|
|
fontFamily: 'body',
|
|
lineHeight: '26px',
|
|
color: 'body'
|
|
},
|
|
'quick-link-label': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
textTransform: 'uppercase',
|
|
textAlign: 'center',
|
|
color: 'primary',
|
|
_groupHover: { color: 'bg' },
|
|
_groupActive: { color: 'bg' },
|
|
_groupFocus: { color: 'bg' }
|
|
},
|
|
'hero-text-small': {
|
|
fontSize: '13px',
|
|
fontFamily: 'body',
|
|
color: 'body'
|
|
},
|
|
'footer-link-label': {
|
|
fontFamily: '"JetBrains Mono", monospace',
|
|
fontWeight: 700,
|
|
textTransform: 'uppercase',
|
|
lineHeight: '21.12px',
|
|
letterSpacing: '0.02em'
|
|
},
|
|
'footer-text': {
|
|
fontFamily: 'body',
|
|
lineHeight: '22px',
|
|
fontWeight: 400,
|
|
fontSize: '12px',
|
|
color: 'body'
|
|
},
|
|
'downloads-button-label': {
|
|
fontFamily: 'heading',
|
|
color: 'bg',
|
|
fontSize: { base: 'md', lg: 'xl' },
|
|
textTransform: 'uppercase'
|
|
},
|
|
'downloads-button-sublabel': {
|
|
fontFamily: 'heading',
|
|
color: 'bg',
|
|
fontSize: { base: 'xs', lg: 'sm' },
|
|
textTransform: 'uppercase'
|
|
},
|
|
'download-tab-label': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 700,
|
|
textTransform: 'uppercase',
|
|
textAlign: 'center',
|
|
fontSize: 'sm'
|
|
},
|
|
'header-button': {
|
|
fontFamily: '"JetBrains Mono", monospace',
|
|
fontWeight: 700,
|
|
fontSize: { base: '0.86rem', sm: '1rem' }
|
|
},
|
|
'header-mobile-button': {
|
|
fontFamily: '"JetBrains Mono", monospace',
|
|
textTransform: 'uppercase',
|
|
fontSize: '2xl'
|
|
},
|
|
'inline-code-snippet': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 400,
|
|
fontSize: 'md',
|
|
lineHeight: 4,
|
|
letterSpacing: '0.01em'
|
|
},
|
|
'code-block': {
|
|
fontFamily: 'heading',
|
|
fontWeight: 400,
|
|
fontSize: 'md',
|
|
lineHeight: '21.12px',
|
|
letterSpacing: '0.01em'
|
|
},
|
|
// TODO: refactor w/ semantic tokens for light/dark mode
|
|
'link-light': {},
|
|
// TODO: refactor w/ semantic tokens for light/dark mode
|
|
'text-light': {}
|
|
};
|