-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.js
More file actions
126 lines (123 loc) · 3.37 KB
/
tailwind.config.js
File metadata and controls
126 lines (123 loc) · 3.37 KB
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
123
124
125
126
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
const tailwindDefaultSansFontFamily =
'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{ts,tsx}", "./src/html/**/*.html", "./index.html"],
plugins: [typography, forms],
theme: {
extend: {
screens: {
sm: "486px",
md: "586px",
},
fontFamily: {
sans: `"Josefin Sans", ${tailwindDefaultSansFontFamily}`,
},
zIndex: {
100: "100",
},
backdropGrayscale: {
85: ".85",
},
colors: {
neutral: {
// 50 is 98%
25: "hsl(0 0% 99%)",
// 700 is 25%, 800 is 15%, 900 is 9%
750: "hsl(0 0% 19%)",
850: "hsl(0 0% 12%)",
875: "hsl(0 0% 11%)",
925: "hsl(0 0% 6%)",
},
"logo-background": "#536979",
},
boxShadow: {
"solid-bottomleft": "-1px 1px 0 black",
// Same as 2xl except 100% opacity
"2xl-heavy": "0 25px 50px -12px black",
},
fontWeight: {
// thin: '100',
// extralight: '200',
// light: '300',
light: "335",
// normal: '400',
normal: "375",
// medium: '500',
medium: "463",
// semibold: '600',
semibold: "550",
// bold: '700',
// extrabold: '800',
// black: '900',
},
animation: {
"indeterminate-progress-1":
"indeterminate-progress-1 1.5s linear infinite",
"indeterminate-progress-2":
"indeterminate-progress-2 1.5s linear infinite",
beat: [
"beat-expand 0.5s ease-in infinite",
"beat-expand 0.5s reverse ease-out infinite",
].join(", "),
},
keyframes: {
"indeterminate-progress-1": {
"0%": {
transform: "translateX(0) scaleX(0)",
},
"30%": {
transform: "translateX(0) scaleX(0.6)",
},
"60%": {
transform: "translateX(80%) scaleX(0.3)",
},
"75%": {
transform: "translateX(100%) scaleX(0.3)",
},
"100%": {
transform: "translateX(100%) scaleX(0.3)",
},
},
"indeterminate-progress-2": {
"0%": {
transform: "translateX(0) scaleX(0)",
},
"15%": {
transform: "translateX(0) scaleX(0.1)",
},
"75%": {
transform: "translateX(100%) scaleX(0.8)",
},
"100%": {
transform: "translateX(100%) scaleX(0.8)",
},
},
"beat-expand": {
"75%": { transform: "scale(1)" },
"100%": { transform: "scale(1.075)" },
},
// "beat-expand": {
// "75%": { transform: "scale(1)" },
// "100%": { transform: "scale(1.2)" },
// },
},
transitionProperty: {
backgroundColor: "background-color, border-color",
},
},
},
};
/*
@keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
.animate-ping {
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
*/