chore: reformat code
This commit is contained in:
parent
3d930aa73b
commit
aedabcbdee
509 changed files with 6030 additions and 4266 deletions
|
|
@ -7,7 +7,7 @@ function H1({ children, noMargin, className, ...props }) {
|
|||
const classNames = {
|
||||
[styles.h1]: true,
|
||||
[styles.noMargin]: noMargin,
|
||||
[className]: !!className
|
||||
[className]: !!className,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -21,7 +21,7 @@ function H2({ children, noMargin, className, ...props }) {
|
|||
const classNames = {
|
||||
[styles.h2]: true,
|
||||
[styles.noMargin]: noMargin,
|
||||
[className]: !!className
|
||||
[className]: !!className,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -35,7 +35,7 @@ function H3({ children, noMargin, className, ...props }) {
|
|||
const classNames = {
|
||||
[styles.h3]: true,
|
||||
[styles.noMargin]: noMargin,
|
||||
[className]: !!className
|
||||
[className]: !!className,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -49,7 +49,7 @@ function H4({ children, noMargin, className, ...props }) {
|
|||
const classNames = {
|
||||
[styles.h4]: true,
|
||||
[styles.noMargin]: noMargin,
|
||||
[className]: !!className
|
||||
[className]: !!className,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -63,7 +63,7 @@ function H5({ children, noMargin, className, ...props }) {
|
|||
const classNames = {
|
||||
[styles.h5]: true,
|
||||
[styles.noMargin]: noMargin,
|
||||
[className]: !!className
|
||||
[className]: !!className,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -90,7 +90,7 @@ function pBuilder(elementClass) {
|
|||
[className]: !!className,
|
||||
[styles[elementClass]]: elementClass,
|
||||
[styles.inline]: inline,
|
||||
[styles.noMargin]: noMargin
|
||||
[styles.noMargin]: noMargin,
|
||||
}
|
||||
return (
|
||||
<p className={classnames(classNames)} {...props}>
|
||||
|
|
@ -115,5 +115,5 @@ export {
|
|||
Mono,
|
||||
Label1,
|
||||
Label2,
|
||||
Label3
|
||||
Label3,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,132 +7,132 @@ import {
|
|||
fontSize5,
|
||||
fontPrimary,
|
||||
fontSecondary,
|
||||
fontMonospaced
|
||||
fontMonospaced,
|
||||
} from 'src/styling/variables'
|
||||
|
||||
const base = {
|
||||
lineHeight: '120%',
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
}
|
||||
|
||||
export default {
|
||||
base: {
|
||||
lineHeight: '120%',
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
},
|
||||
h1: {
|
||||
extend: base,
|
||||
fontSize: fontSize1,
|
||||
fontFamily: fontPrimary,
|
||||
fontWeight: 900
|
||||
fontWeight: 900,
|
||||
},
|
||||
h2: {
|
||||
extend: base,
|
||||
fontSize: fontSize2,
|
||||
fontFamily: fontPrimary,
|
||||
fontWeight: 900
|
||||
fontWeight: 900,
|
||||
},
|
||||
h3: {
|
||||
extend: base,
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontPrimary,
|
||||
fontWeight: 900
|
||||
fontWeight: 900,
|
||||
},
|
||||
h4: {
|
||||
extend: base,
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontPrimary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
h5: {
|
||||
extend: base,
|
||||
fontSize: fontSize3,
|
||||
fontFamily: fontPrimary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
p: {
|
||||
...base,
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500
|
||||
fontWeight: 500,
|
||||
},
|
||||
tl1: {
|
||||
extend: base,
|
||||
fontSize: fontSize2,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
tl2: {
|
||||
extend: base,
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
info1: {
|
||||
extend: base,
|
||||
fontSize: fontSize1,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
info2: {
|
||||
extend: base,
|
||||
fontSize: fontSize3,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
info3: {
|
||||
extend: base,
|
||||
fontSize: fontSize3,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500
|
||||
fontWeight: 500,
|
||||
},
|
||||
mono: {
|
||||
extend: base,
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontMonospaced,
|
||||
fontWeight: 500
|
||||
fontWeight: 500,
|
||||
},
|
||||
monoBold: {
|
||||
fontWeight: 700
|
||||
fontWeight: 700,
|
||||
},
|
||||
monoSmall: {
|
||||
fontSize: fontSize5
|
||||
fontSize: fontSize5,
|
||||
},
|
||||
inputFont: {
|
||||
fontSize: fontSize2,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500,
|
||||
lineHeight: '110%',
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
},
|
||||
regularLabel: {
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500,
|
||||
lineHeight: '110%'
|
||||
lineHeight: '110%',
|
||||
},
|
||||
label1: {
|
||||
fontSize: fontSize5,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500,
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
},
|
||||
label2: {
|
||||
fontSize: fontSize5,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 700,
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
},
|
||||
label3: {
|
||||
fontSize: fontSize4,
|
||||
fontFamily: fontSecondary,
|
||||
fontWeight: 500,
|
||||
color: fontColor
|
||||
color: fontColor,
|
||||
},
|
||||
inline: {
|
||||
display: 'inline'
|
||||
display: 'inline',
|
||||
},
|
||||
noMargin: {
|
||||
margin: 0
|
||||
}
|
||||
margin: 0,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue