configurable font family (google fonts)

This commit is contained in:
spencerwooo
2021-08-31 17:56:20 +01:00
parent 12c551468f
commit e76c38db9d
5 changed files with 18 additions and 7 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const siteConfig = require('./config/site.json')
module.exports = {
mode: 'jit',
@@ -22,7 +23,7 @@ module.exports = {
},
extend: {
fontFamily: {
sans: ['Inter', '"Noto Sans SC"', ...defaultTheme.fontFamily.sans]
sans: [`"${siteConfig.googleFont}"`, '"Noto Sans SC"', ...defaultTheme.fontFamily.sans]
},
colors: {
gray: {