generated from timelessco/react-components-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
preset.js
122 lines (121 loc) · 3.51 KB
/
preset.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
110
111
112
113
114
115
116
117
118
119
120
121
122
const colors = require("./tailwind-utils/colors");
const defaultTheme = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
experimental: { matchVariant: true },
theme: {
animationDelay: {
75: "75ms",
100: "100ms",
150: "150ms",
200: "200ms",
300: "300ms",
333: "333ms",
500: "500ms",
667: "667ms",
700: "700ms",
1000: "1000ms",
},
animationDuration: {
75: "75ms",
100: "100ms",
150: "150ms",
200: "200ms",
300: "300ms",
500: "500ms",
700: "700ms",
1000: "1000ms",
},
extend: {
colors: {
...colors,
},
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
fontSize: {
xs: ["12px", "115%"],
cxs: ["13px", "115%"],
sm: ["14px", "115%"],
base: ["16px", "115%"],
lg: ["18px", "115%"],
xl: ["20px", "115%"],
cxl: ["22px", "115%"],
"2xl": ["24px", "115%"],
"3xl": ["30px", "115%"],
"4xl": ["36px", "115%"],
"5xl": ["48px", "115%"],
"6xl": ["60px", "115%"],
"7xl": ["72px", "115%"],
"8xl": ["96px", "115%"],
"9xl": ["128px", "115%"],
"paragraph-xs": ["12px", "150%"],
"paragraph-cxs": ["13px", "150%"],
"paragraph-sm": ["14px", "150%"],
"paragraph-base": ["16px", "150%"],
"paragraph-lg": ["18px", "150%"],
"paragraph-xl": ["20px", "150%"],
},
ringWidth: {
1.5: "1.5px",
2: "2px",
3: "3px",
},
inset: {
unset: "unset",
},
minWidth: {
...defaultTheme.spacing,
},
minHeight: {
...defaultTheme.spacing,
},
boxShadow: {
DEFAULT:
"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)",
sm: "0px 1px 2px rgba(0, 0, 0, 0.05)",
csm: "0px 0px 1px rgba(0, 0, 0, 0.4), 0px 1px 2px rgba(0, 0, 0, 0.15)",
lg: "0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)",
knobHover:
"0px 0px 1px rgba(0, 0, 0, 0.2), 0px 2px 3px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.15)",
knobActive:
"0px 0px 1px rgba(0, 0, 0, 0.2), 0px 2px 3px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.15)",
knobFocusBase:
"0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 7px rgba(0, 0, 0, 0.1), 0px 0px 0px 2px #27272A",
knobFocusPrimary:
"0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 7px rgba(0, 0, 0, 0.1), 0px 0px 0px 2px #0091FF",
},
animation: {
progress: "progress 1s ease infinite normal none running",
circularProgress:
"circularProgress 2s ease infinite normal none running",
},
keyframes: {
progress: {
"0%": { transform: "translateX(-100%)" },
"100%": { transform: "translateX(200%)" },
},
circularProgress: {
"0%": {
strokeDasharray: "0, 276",
strokeDashoffset: "0",
},
"50%": {
strokeDasharray: "276, 276",
strokeDashoffset: "-138",
},
"100%": {
strokeDasharray: "276, 276",
strokeDashoffset: "-276",
},
},
},
},
},
plugins: [
require("./tailwind-utils/utilities"),
require("./tailwind-utils/variants"),
require("./tailwind-utils/animationDelay"),
require("./tailwind-utils/animationDuration"),
],
};