-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
66 lines (65 loc) · 2.35 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
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.tsx",
"./src/components/**/*.tsx",
"./src/utils/**/*.{ts,tsx}",
"./src/assets/state/articles/*.jsx",
"./src/assets/**/*.{ts,tsx}"
],
theme: {
extend: {
colors: {
/** Commit Rocket colors */
cr: {
primary: {
DEFAULT: "#f45a07",
light: "#f9794a",
dark: "#92400e",
contrast: "#FFF"
},
fill: {
DEFAULT: "#18181b",
light: "#52525b",
dark: "#18181b",
contrast: {
light: "#fff",
DEFAULT: "#f2f2f2",
dark: "#e5e5e5"
}
}
}
}
},
},
plugins: [
require('@headlessui/tailwindcss'),
plugin(({ addComponents, addUtilities }) => {
addComponents({
".image-dots": {
"background-image": "radial-gradient(var(--tw-gradient-from), transparent 1.5px, transparent 1.5px)",
"background-size": "1.1rem 1.1rem",
"background-position": "50% 50%"
},
".image-star": {
"background-image": "url('/images/textures/star.svg')",
"background-size": "2rem 2rem",
"background-position": "50% 50%"
},
".backdrop-glass": {
"--tw-backdrop-blur": "blur(1.25px);",
"--tw-backdrop-saturate": "saturate(180%)",
"-webkit-backdrop-filter": "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);",
"backdrop-filter": "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);"
}
});
addUtilities({
".rotate-30": {
"--tw-rotate": "30deg",
"transform": "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
}
});
})
],
};