-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
tailwind.config.js
109 lines (108 loc) · 3.14 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
103
104
105
106
107
108
109
/* eslint-disable no-undef */
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
mode: "jit",
content: ["./app/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["Roboto Mono", ...defaultTheme.fontFamily.sans],
},
colors: {
transparent: "transparent",
current: "currentColor",
indigo: colors.indigo,
blue: colors.blue,
red: colors.red,
orange: colors.orange,
yellow: colors.yellow,
green: colors.green,
teal: colors.teal,
purple: colors.purple,
pink: colors.pink,
slate: colors.slate,
gray: colors.gray,
neutral: colors.neutral,
stone: colors.stone,
amber: colors.amber,
lime: colors.lime,
emerald: colors.emerald,
cyan: colors.cyan,
sky: colors.sky,
violet: colors.violet,
fuchsia: colors.fuchsia,
rose: colors.rose,
theme: {
50: colors.emerald[50],
100: colors.emerald[100],
200: colors.emerald[200],
300: colors.emerald[300],
400: colors.emerald[400],
500: colors.emerald[500],
600: colors.emerald[600],
700: colors.emerald[700],
800: colors.emerald[800],
900: colors.emerald[900],
},
accent: {
50: colors.gray[50],
100: colors.gray[100],
200: colors.gray[200],
300: colors.gray[300],
400: colors.gray[400],
500: colors.gray[500],
600: colors.gray[600],
700: colors.gray[700],
800: colors.gray[800],
900: colors.gray[900],
},
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: "100%",
},
},
dark: {
css: {
color: theme("colors.gray.400"),
"h2, h3, h4, thead th": {
color: theme("colors.gray.200"),
},
"h2 small, h3 small, h4 small": {
color: theme("colors.gray.400"),
},
code: {
color: theme("colors.gray.200"),
},
hr: {
borderColor: theme("colors.gray.200"),
opacity: "0.05",
},
pre: {
boxShadow: "inset 0 0 0 1px rgb(255 255 255 / 0.1)",
},
a: {
color: theme("colors.white"),
borderBottomColor: theme("colors.sky.400"),
},
strong: {
color: theme("colors.gray.200"),
},
thead: {
color: theme("colors.gray.300"),
borderBottomColor: "rgb(148 163 184 / 0.2)",
},
"tbody tr": {
borderBottomColor: "rgb(148 163 184 / 0.1)",
},
},
},
}),
},
},
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@tailwindcss/aspect-ratio"), require("tailwindcss-animate")],
};