-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
119 lines (116 loc) · 3.55 KB
/
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
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
110
111
112
113
114
115
116
117
118
119
/** @type {import('tailwindcss').Config} */
import { withTV } from "tailwind-variants/transformer"
import { extraColors } from "./lib/tailwind/colors"
import { extraCSSClasses } from "./lib/tailwind/css-classes"
import { extraAnimations, extraKeyframes, screenSizes } from "./lib/tailwind/variables"
module.exports = withTV({
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{js,ts,jsx,tsx}",
"./layouts/**/*.{js,ts,jsx,tsx}",
"./views/**/*.{js,ts,jsx,tsx}",
"./hooks/**/*.{js,ts,jsx,tsx}",
"./lib/**/*.{js,ts,jsx,tsx}",
"./node_modules/react-tailwindcss-datepicker/dist/index.esm.js",
],
theme: {
container: {
center: true,
padding: {
DEFAULT: "1rem",
sm: "1rem",
md: "1rem",
lg: "1rem",
xl: "2rem",
"2xl": "2rem",
},
},
fontFamily: {
content: ["var(--font-bergen)"]
},
screens: screenSizes,
fontSize: {
xxs: ["0.625rem", "0.875rem"], // @fs=10px => xxs
xs: ["0.75rem", "1rem"], // @fs=12px => xs
sm: ["0.875rem", "1.25rem"], // @fs=14px => sm
base: ["1rem", "1.5rem"], // @fs=16px => base
lg: ["1.125rem", "1.75rem"], // @fs=18px => lg
xl: ["1.25rem", "1.75rem"], // @fs=20px => xl
"0xs": ["0.625rem", "0.875rem"], // @fs=10px => 0xs
"2xl": ["1.5rem", "2rem"], // @fs=24px => 2xl
"3xl": ["2rem", "2.08rem"], // @fs=32px => 3xl
"4xl": ["2.25rem", "2.5rem"], // @fs=36px => 4xl
"4xl+": ["2.5rem", "2.75rem"], // @fs=40px => 4xl+
"5xl": ["3rem", 1], // @fs=48px => 5xl
"6xl": ["4rem", 1], // @fs=64px => 6xl
"7xl": ["4.5rem", 1], // @fs=72px => 7xl
"8xl": ["6rem", 1], // @fs=96px => 8xl
},
data: {
// radix-state
"state-checked": 'state="checked"',
"state-uncheck": 'state="unchecked"',
"state-open": 'state="open"',
"state-on": 'state="on"',
"state-off": 'state="off"',
"state-active": 'state="active"',
"state-inactive": 'state="inactive"',
"state-disabled": 'state="disabled',
},
radix: {
"state-open": 'state="open"',
},
extend: {
containers: screenSizes,
containerQuery: screenSizes,
containerType: {
size: "size",
},
fontSize: {
4: ["1rem", "1.1875rem"],
},
boxShadow: {
card: "0px 2px 6px 0px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",
popover: "2px 2px 8px 3px rgba(26, 26, 29, 0.06)",
},
dropShadow: {
e200: "0px 3px 5px hsla(0, 0%, 0%, 0.3)",
e300: "0px 6px 12px hsla(0, 0%, 0%, 0.3)",
},
colors: extraColors,
transitionDuration: {
2000: "2000ms",
},
keyframes: extraKeyframes,
animation: extraAnimations,
zIndex: {
zBase: "var(--zBase)",
zMatchesSlider: "var(--zMatchesSlider)",
zBackToTopButton: "var(--zBackToTopButton)",
zPageLoadProgress: "var(--zPageLoadProgress)",
zHeader: "var(--zHeader)",
zSlideBottom: "var(--zSlideBottom)",
zContent: "var(--zContent)",
zDropdown: "var(--zDropdown)",
zDialog: "var(--zDialog)",
zDialogOverlay: "var(--zDialogOverlay)",
zMatchSlider: "var(--zMatchSlider)",
},
spacing: {
"widget-pl": "1rem",
},
},
},
variants: {},
plugins: [
require("tailwindcss-animate"),
require("@tailwindcss/container-queries"),
function ({ addComponents }) {
addComponents({
...extraCSSClasses,
})
},
],
})