-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.cjs
44 lines (42 loc) · 957 Bytes
/
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
39
40
41
42
43
44
const colors = require('tailwindcss/colors')
const withOpacityValue =
(varName) =>
({opacityValue}) =>
opacityValue === undefined
? `hsl(var(--${varName}))`
: `hsla(var(--${varName}) / ${opacityValue})`
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{html,css,svelte}'],
theme: {
colors: {
primary: colors.rose,
secondary: colors.emerald,
prime: withOpacityValue('prime-color'),
copy: {
base: withOpacityValue('copy-base-color'),
muted: withOpacityValue('copy-muted-color'),
},
surface: {
1: withOpacityValue('surface-1-color'),
},
gray: colors.stone,
white: colors.white,
transparent: 'transparent',
current: 'currentColor',
},
fontFamily: {
sans: ['Overpass', 'sans-serif'],
code: ['Fira Code', 'monospace'],
},
fontWeight: {
thin: 100,
normal: 400,
},
container: {
center: true,
},
extend: {},
},
plugins: [require('@tailwindcss/typography')],
}