forked from open-sauced/ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
62 lines (61 loc) · 1.62 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
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
colors: {
orange: "hsla(19, 100%, 50%, 1)",
lightOrange: "hsla(19, 100%, 50%, 0.5)"
},
boxShadow: {
button: "0 0 0.2rem 0.2rem rgb(245, 131, 106, 0.2)",
},
backgroundColor: {
"gh-gray": "#21262d",
"gh-white": "#f6f8fa"
}
},
},
plugins: [
// plugin for centering dividers
// usage: <div class=" divide-white divide-y divider-y-center-2"></div>
plugin(function({ matchUtilities, theme }) {
matchUtilities(
{
'divider-x-center': (value) => {
return {
"& > :not([hidden]):first-child": {
paddingLeft: 0,
},
"& > :not([hidden])": {
paddingLeft: value,
paddingRight: value,
},
"& > :not([hidden]):last-child": {
paddingRight: 0,
},
};
},
'divider-y-center': (value) => {
return {
"& > :not([hidden]):first-child": {
paddingTop: 0,
},
"& > :not([hidden])": {
paddingTop: value,
paddingBottom: value,
},
"& > :not([hidden]):last-child": {
paddingBottom: 0,
},
};
}
},
{ values: theme('padding') }
)
})
],
important: true,
darkMode: "class"
};