-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
54 lines (51 loc) · 1.53 KB
/
tailwind.config.ts
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
import type {Config} from "tailwindcss";
const APP_COLORS = {
"memo-active": "rgb(from var(--tc-memo-active) r g b / <alpha-value>)",
"popup-bg": "rgb(from var(--tc-popup-bg) r g b / <alpha-value>)",
"hover": "rgb(from var(--tc-hover) r g b / <alpha-value>)",
"select": "rgb(from var(--tc-select) r g b / <alpha-value>)",
"disabled": "rgb(from var(--tc-disabled) r g b / <alpha-value>)",
"input-border": "rgb(from var(--tc-input-border) r g b / <alpha-value>)",
"grey-text": "rgb(from var(--tc-grey-text) r g b / <alpha-value>)",
};
const Z_INDEX = {
modal: "1000",
// Higher than modal, because a dropdown on the main page will normally close when opening a modal,
// and dropdowns on modals need to be on top of it.
// TODO: Consider doing this better.
dropdown: "1100",
fullScreenLoader: "2000",
};
export default {
content: ["./resources/js/**/*.{js,ts,jsx,tsx}", "./resources/views/**/*.blade.php"],
plugins: [],
theme: {
extend: {
aria: {
invalid: 'invalid="true"',
},
colors: APP_COLORS,
zIndex: Z_INDEX,
minHeight: {
"big-input": "2.5rem",
"small-input": "1.8rem",
},
fontWeight: {
"weight-medium": "500",
},
listStyleType: {
// Reduce spacing between the disc and the text when using list-disc.
disc: "'⦁ '",
},
borderRadius: {
sm: "0.25rem",
xs: "0.125rem",
},
},
fontFamily: {
main: "Mulish",
mono: "PT Mono",
},
},
darkMode: "class",
} satisfies Config;