mirror of
https://github.com/He4eT/oddsquat.git
synced 2026-05-04 20:37:22 +00:00
typography: move to tools
This commit is contained in:
parent
dbb1f3179a
commit
64bbb667e4
1 changed files with 0 additions and 0 deletions
29
tools/typography.js
Executable file
29
tools/typography.js
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
const Typography = require('typography')
|
||||
const fs = require('fs')
|
||||
|
||||
const TYPOGRAPHY_CSS_FILEPATH =
|
||||
'./src/assets/css/typography.css'
|
||||
|
||||
const typography = new Typography({
|
||||
baseFontSize: '18px',
|
||||
baseLineHeight: 1.5,
|
||||
scaleRatio: 3,
|
||||
googleFonts: [{
|
||||
name: 'Open Sans Condensed',
|
||||
styles: ['700']
|
||||
}, {
|
||||
name: 'Open Sans',
|
||||
styles: ['400', '400i', '700', '700i'],
|
||||
}],
|
||||
headerFontFamily: ['Open Sans Condensed', 'sans-serif'],
|
||||
bodyFontFamily: ['Open Sans', 'sans-serif'],
|
||||
headerColor: 'hsl(0, 0%, 0%, 0.7)',
|
||||
bodyColor: 'hsl(0, 0%, 0%, 0.8)'
|
||||
})
|
||||
|
||||
void fs.writeFile(
|
||||
TYPOGRAPHY_CSS_FILEPATH,
|
||||
typography.toString(),
|
||||
err => err
|
||||
? console.error(err)
|
||||
: console.log(`Updated: ${TYPOGRAPHY_CSS_FILEPATH}`))
|
||||
Loading…
Add table
Add a link
Reference in a new issue