-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
102 lines (96 loc) · 2.25 KB
/
tailwind.config.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import {slate, blue, blueDark, slateDark, pink } from '@radix-ui/colors'
import typography from '@tailwindcss/typography'
const accent = {
base: blue.blue1,
bgSubtle: blue.blue2,
bg: blue.blue3,
bgHover: blue.blue4,
bgActive: blue.blue5,
line: blue.blue6,
border: blue.blue7,
borderHover: blue.blue8,
solid: blue.blue9,
solidHover: blue.blue10,
text: blue.blue11,
textContrast: blue.blue12,
}
const secondary = {
base: pink.pink1,
bgSubtle: pink.pink2,
bg: pink.pink3,
bgHover: pink.pink4,
bgActive: pink.pink5,
line: pink.pink6,
border: pink.pink7,
borderHover: pink.pink8,
solid: pink.pink9,
solidHover: pink.pink10,
text: pink.pink11,
textContrast: pink.pink12,
}
const neutral = {
base: slate.slate1,
bgSubtle: slate.slate2,
bg: slate.slate3,
bgHover: slate.slate4,
bgActive: slate.slate5,
line: slate.slate6,
border: slate.slate7,
borderHover: slate.slate8,
solid: slate.slate9,
solidHover: slate.slate10,
text: slate.slate11,
textContrast: slate.slate12,
}
const darkAccent = {
base: blueDark.blue1,
bgSubtle: blueDark.blue2,
bg: blueDark.blue3,
bgHover: blueDark.blue4,
bgActive: blueDark.blue5,
line: blueDark.blue6,
border: blueDark.blue7,
borderHover: blueDark.blue8,
solid: blueDark.blue9,
solidHover: blueDark.blue10,
text: blueDark.blue11,
textContrast: blueDark.blue12,
}
const darkNeutral = {
base: slateDark.slate1,
bgSubtle: slateDark.slate2,
bg: slateDark.slate3,
bgHover: slateDark.slate4,
bgActive: slateDark.slate5,
line: slateDark.slate6,
border: slateDark.slate7,
borderHover: slateDark.slate8,
solid: slateDark.slate9,
solidHover: slateDark.slate10,
text: slateDark.slate11,
textContrast: slateDark.slate12,
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
accent,
neutral,
secondary,
'dark-accent': darkAccent,
'dark-neutral': darkNeutral,
},
fontFamily: {
sans: ['var(--font-source-sans-3)'],
mono: ['var(--font-ibm-plex-mono)'],
}
}
},
plugins: [ typography ],
}