add font foundations
This commit is contained in:
parent
e1e2043a50
commit
bc3b95b0aa
|
@ -0,0 +1,7 @@
|
||||||
|
export const fonts = {
|
||||||
|
// set base fonts as fallback
|
||||||
|
heading: '"JetBrains Mono", monospace',
|
||||||
|
button: '"JetBrains Mono", monospace',
|
||||||
|
code: '"JetBrains Mono", monospace',
|
||||||
|
body: '"Inter", sans-serif'
|
||||||
|
};
|
|
@ -1,5 +1,6 @@
|
||||||
export * from './colors';
|
export * from './colors';
|
||||||
export * from './config';
|
export * from './config';
|
||||||
|
export * from './fonts';
|
||||||
export * from './shadows';
|
export * from './shadows';
|
||||||
export * from './sizes';
|
export * from './sizes';
|
||||||
export * from './textStyles';
|
export * from './textStyles';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export const textStyles = {
|
export const textStyles = {
|
||||||
h1: {
|
h1: {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
fontSize: '2.75rem',
|
fontSize: '2.75rem',
|
||||||
lineHeight: '3.375rem',
|
lineHeight: '3.375rem',
|
||||||
|
@ -8,7 +8,7 @@ export const textStyles = {
|
||||||
color: 'body'
|
color: 'body'
|
||||||
},
|
},
|
||||||
h2: {
|
h2: {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
fontSize: '1.5rem',
|
fontSize: '1.5rem',
|
||||||
lineHeight: 'auto',
|
lineHeight: 'auto',
|
||||||
|
@ -16,36 +16,36 @@ export const textStyles = {
|
||||||
color: 'body'
|
color: 'body'
|
||||||
},
|
},
|
||||||
'header-font': {
|
'header-font': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
fontSize: { base: '0.86rem', sm: '1rem' }
|
fontSize: { base: '0.86rem', sm: '1rem' }
|
||||||
},
|
},
|
||||||
'homepage-description': {
|
'homepage-description': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
lineHeight: '21px',
|
lineHeight: '21px',
|
||||||
letterSpacing: '0.05em',
|
letterSpacing: '0.05em',
|
||||||
textAlign: { base: 'center', md: 'left' }
|
textAlign: { base: 'center', md: 'left' }
|
||||||
},
|
},
|
||||||
'homepage-primary-label': {
|
'homepage-primary-label': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase'
|
||||||
},
|
},
|
||||||
'home-section-link-label': {
|
'home-section-link-label': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
p: 4
|
p: 4
|
||||||
},
|
},
|
||||||
'quick-link-text': {
|
'quick-link-text': {
|
||||||
fontFamily: '"Inter", sans-serif',
|
fontFamily: 'body',
|
||||||
lineHeight: '26px'
|
lineHeight: '26px'
|
||||||
},
|
},
|
||||||
'quick-link-label': {
|
'quick-link-label': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
@ -56,28 +56,28 @@ export const textStyles = {
|
||||||
},
|
},
|
||||||
'hero-text-small': {
|
'hero-text-small': {
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
fontFamily: '"Inter", sans-serif'
|
fontFamily: 'body'
|
||||||
},
|
},
|
||||||
'footer-text': {
|
'footer-text': {
|
||||||
fontFamily: '"Inter", sans-serif',
|
fontFamily: 'body',
|
||||||
lineHeight: '22px',
|
lineHeight: '22px',
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
fontSize: '12px'
|
fontSize: '12px'
|
||||||
},
|
},
|
||||||
'downloads-button-label': {
|
'downloads-button-label': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontSize: { base: 'md', lg: 'xl' },
|
fontSize: { base: 'md', lg: 'xl' },
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase'
|
||||||
},
|
},
|
||||||
'downloads-button-sublabel': {
|
'downloads-button-sublabel': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontSize: { base: 'xs', lg: 'sm' },
|
fontSize: { base: 'xs', lg: 'sm' },
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase'
|
||||||
},
|
},
|
||||||
'download-tab-label': {
|
'download-tab-label': {
|
||||||
fontFamily: '"JetBrains Mono", monospace',
|
fontFamily: 'heading',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { extendTheme } from '@chakra-ui/react';
|
import { extendTheme } from '@chakra-ui/react';
|
||||||
|
|
||||||
import { config, colors, shadows, sizes, textStyles } from './foundations';
|
import { config, colors, fonts, shadows, sizes, textStyles } from './foundations';
|
||||||
import { Button, Link } from './components';
|
import { Button, Link } from './components';
|
||||||
|
|
||||||
const overrides = {
|
const overrides = {
|
||||||
|
@ -10,6 +10,7 @@ const overrides = {
|
||||||
Button,
|
Button,
|
||||||
Link
|
Link
|
||||||
},
|
},
|
||||||
|
fonts,
|
||||||
shadows,
|
shadows,
|
||||||
sizes,
|
sizes,
|
||||||
styles: {
|
styles: {
|
||||||
|
|
Loading…
Reference in New Issue