This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
159 lines (157 loc) · 6.43 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// SPDX-License-Identifier: AGPL-3.0-or-later
/*
* Copyright (C) 2023 JWP Consulting GK
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import type { Config } from "tailwindcss";
// Conflicting color name resolutions
const conflictColors = {
"foreground": "#FFFFFF",
"base-TODO": "#FFFFFF",
};
// These are the new colors added 2022-08-04
// Some of them I have marked them as "renamed" in the colors object
const missingColors = {
// "base": "#FFFFFF", // This conflicts with the font size declaration text-base
"utility": "#64748B",
"task-default": "#FFFFFF",
"task-hover": "#F8FAFC",
"task-pressed": "#F1F5F9",
"tertiary-content": "#2563EB",
"tertiary-content-hover": "#1E3A8A",
"tertiary-hover": "#DBEAFE",
"tertiary-pressed": "#93C5FD",
"disabled-primary-content": "#475569",
"disabled": "#E2E8F0",
"disabled-content": "#CBD5E1",
"destructive-secondary-hover": "#FEE2E2",
"destructive-secondary-pressed": "#FCA5A5",
"border-secondary": "#2563EB",
"border-focus": "#1E293B",
};
const colors = {
"accent": "#FEE2E2", // unused, renamed to destructive (already in colors)
"accent-content": "#B91C1C", // unused, renamed to destructive-content (already in colors)
"accent-content-hover": "#FFFFFF", // unused, but not found in Colors spreadsheet
"accent-focus": "#FECACA", // unused, renamed to destructive-hover (already in colors)
"background": "#EFF6FF", // new
"base-100": "#FFFFFF", // unused, renamed to base (in missingColors)
"base-200": "#EFF6FF", // unused, renamed to background (already in colors)
"base-300": "#CBD5E1", // unused, but not found in Colors spreadsheet
"base-content": "#1E293B", // kept in new Colors spreadsheet
"border": "#CBD5E1", // new
"destructive": "#DC2626", // new
"destructive-content": "#FFFFFF", // new
"destructive-content-secondary": "#DC2626", // new, but not found in Colors spreadsheet
"destructive-hover": "#991B1B", // new
"destructive-pressed": "#7F1D1D", // new
"destructive-pressed-secondary": "#FCA5A5", // renamed to destructive-secondary-pressed (in missingColors)
"destructive-secondary": "#FEE2E2", // renamed to destructive-secondary-hover (in missingColors)
"disabled-background": "#E2E8F0", // renamed to disabled (in missingColors)
"disabled-text": "#475569", // new, but not found in Colors spreadsheet
"display": "#FFFFFF", // new, but not found in Colors spreadsheet
"error": "#EF4444", // keep
"info": "#0EA5E9", // keep
"label-blue": "#C8E1FF", // keep
"label-green": "#CFF0D7", // keep
"label-hover-blue": "#A0C2EC", // keep
"label-hover-green": "#ADD7B7", // keep
"label-hover-orange": "#FED7AA", // keep
"label-hover-pink": "#EEB0D5", // keep
"label-hover-purple": "#C3B2EC", // keep
"label-hover-red": "#F0B0B7", // keep
"label-hover-yellow": "#E7DC8E", // keep
"label-orange": "#FFEBDA", // keep
"label-pink": "#FEDBF0", // keep
"label-purple": "#DDD6FE", // keep
"label-red": "#FFDCE0", // keep
"label-text-blue": "#1E40AF", // renamed
"label-text-green": "#166534", // renamed
"label-text-orange": "#9A3412", // renamed
"label-text-pink": "#9D174D", // renamed
"label-text-purple": "#5B21B6", // renamed
"label-text-red": "#991B1B", // renamed
"label-text-yellow": "#854D0E", // renamed
"label-yellow": "#FFF5B1", // keep
"primary": "#2563EB", // keep
"primary-content": "#ffffff", // keep
"primary-focus": "#0077FF", // unused, renamed to primary-hover (already in colors)
"primary-hover": "#1E40AF", // new
"primary-pressed": "#1E3A8A", // new
"secondary": "#2563EB", // unused, renamed to secondary-hover (already in colors)
"secondary-content": "#2563EB", // keep
"secondary-content-hover": "#1E40AF", // new
"secondary-focus": "#93C5FD", // unused, rename to secondary-pressed (already in colors)
"secondary-hover": "#DBEAFE", // new
"secondary-pressed": "#93C5FD", // new
"secondary-text": "#8390A2", // unused, but not found in Colors spreadsheet
"secondary-text-hover": "#64748B", // unused, but not found in Colors spreadsheet
"success": "#0D9488", // keep
"task-bg-default": "#FFFFFF", // unused, but not found in Colors spreadsheet
"task-bg-hover": "#F8FAFC", // unused, but not found in Colors spreadsheet
"task-bg-pressed": "#F1F5F9", // unused, but not found in Colors spreadsheet
"warning": "#F59E0B", // keep
...missingColors,
...conflictColors,
};
const config: Config = {
darkmode: "class",
mode: "jit",
content: ["./src/**/*.{json,html,js,svelte,ts}"],
theme: {
extend: {
borderRadius: {
"llg": "10px",
"1.5xl": "14px",
"2.5xl": "20px",
},
boxShadow: {
"card": "0px 0px 4px 0px #1E202940",
"sm": "0 1px 2px rgba(0, 0, 0, 0.15)",
"lg": "0 2px 8px rgba(0, 0, 0, 0.25)",
"xl": "0 4px 16px rgba(0, 0, 0, 0.15)",
"context-menu": "1px 4px 8px rgba(0, 0, 0, 0.25)",
},
colors: colors,
},
},
variants: {
display: [
"children",
"default",
"children-first",
"children-last",
"children-odd",
"children-even",
"children-not-first",
"children-not-last",
"children-hover",
"hover",
"children-focus",
"focus",
"children-focus-within",
"focus-within",
"children-active",
"active",
"children-visited",
"visited",
"children-disabled",
"disabled",
"responsive",
],
},
plugins: [require("@tailwindcss/typography")],
};
export default config;