-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
38 lines (37 loc) · 1.24 KB
/
tailwind.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: ['./public/**/*.html', './src/**/*.svelte'],
theme: {
extend: {
colors: {
dark: 'rgb(39, 37, 46)',
'dark-level1': 'rgb(52, 50, 59)',
'dark-level2': 'rgb(58, 56, 66)',
yellow: 'rgb(230, 178, 9)',
'yellow-dark': 'rgb(99, 71, 0)',
blue: 'rgb(32, 165, 214)',
green: 'rgb(137, 176, 39)',
'green-light': 'rgb(209, 240, 219)',
purple: 'rgb(123, 97, 255)',
red: 'rgb(244, 116, 87)'
},
fontFamily: {
inter: ['InterVariable', ...defaultTheme.fontFamily.sans],
'open-sans': ['"Open SansVariable"', ...defaultTheme.fontFamily.sans],
'proxima-nova': ['"Proxima Nova"', ...defaultTheme.fontFamily.sans],
'roboto-slab': ['"Roboto SlabVariable"', ...defaultTheme.fontFamily.sans]
}
}
},
plugins: [
// add font weights for variable fonts
plugin(({ theme, addUtilities }) => {
const utils = {}
Object.entries(theme('fontWeight')).forEach(([key, value]) => {
utils[`.font-${key}`] = { 'font-variation-settings': `'wght' ${value}` }
})
addUtilities(utils)
})
]
}