Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/tailwind.config.js
2492 views
1
/**
2
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
// tailwind.config.js
8
const colors = require("tailwindcss/colors");
9
10
// TODO: Can replace these w/ rgb(var(...)) references so colors are only defined in our main CSS file
11
const podkitColors = {
12
black: "#161616",
13
white: "#FFFFFF",
14
gray: {
15
900: "#12100C",
16
850: "#151310",
17
800: "#23211E",
18
750: "#2C2B28",
19
700: "#514F4D",
20
600: "#565451",
21
500: "#666564",
22
450: "#999795",
23
400: "#747372",
24
300: "#DADADA",
25
200: "#ECE7E5",
26
100: "#F5F4F4",
27
50: "#F9F9F9",
28
},
29
};
30
31
module.exports = {
32
jit: true,
33
content: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],
34
important: true,
35
darkMode: "class",
36
theme: {
37
extend: {
38
colors: {
39
green: colors.lime,
40
orange: colors.amber,
41
// TODO: figure out if we want to just pull in the specific gitpod-* colors
42
teal: colors.teal,
43
sky: colors.sky,
44
rose: colors.rose,
45
"gitpod-black": podkitColors.black,
46
"gitpod-red": "#CE4A3E",
47
"kumquat-dark": "#FF8A00",
48
"kumquat-base": "#FFAE33",
49
"kumquat-ripe": "#FFB45B",
50
"kumquat-light": "#FFE4BC",
51
gray: podkitColors.gray,
52
// Podkit colors - eventually we'll only use these colors
53
// Once migrated, we can remove the colors above and shift this up under theme directly instead of extend
54
"pk-content": {
55
primary: "rgb(var(--content-primary) / <alpha-value>)",
56
secondary: "rgb(var(--content-secondary) / <alpha-value>)",
57
tertiary: "rgb(var(--content-tertiary) / <alpha-value>)",
58
disabled: "rgb(var(--content-disabled) / <alpha-value>)",
59
"invert-primary": "rgb(var(--content-invert-primary) / <alpha-value>)",
60
"invert-secondary": "rgb(var(--content-invert-secondary) / <alpha-value>)",
61
danger: "rgb(var(--content-danger) / <alpha-value>)",
62
},
63
"pk-surface": {
64
primary: "rgb(var(--surface-primary) / <alpha-value>)",
65
secondary: "rgb(var(--surface-secondary) / <alpha-value>)",
66
tertiary: "rgb(var(--surface-tertiary) / <alpha-value>)",
67
labels: "rgb(var(--surface-labels) / <alpha-value>)",
68
invert: "rgb(var(--surface-invert) / <alpha-value>)",
69
"01": "rgb(var(--surface-01) / <alpha-value>)",
70
},
71
"pk-border": {
72
light: "rgb(var(--border-light) / <alpha-value>)",
73
base: "rgb(var(--border-base) / <alpha-value>)",
74
strong: "rgb(var(--border-strong) / <alpha-value>)",
75
invert: "rgb(var(--border-invert) / <alpha-value>)",
76
},
77
},
78
boxShadow: {
79
engraving: "inset 0px 1px 1px rgba(0, 0, 0, 0.1)",
80
},
81
backgroundImage: {
82
"kumquat-gradient": "linear-gradient(137.41deg, #FFAD33 14.37%, #FF8A00 91.32%)",
83
},
84
container: {
85
center: true,
86
},
87
outline: {
88
blue: "1px solid #000033",
89
},
90
width: {
91
112: "28rem",
92
128: "32rem",
93
},
94
height: {
95
112: "28rem",
96
},
97
lineHeight: {
98
64: "64px",
99
},
100
keyframes: {
101
"toast-in-right": {
102
from: { transform: "translateX(100%)" },
103
to: { transform: "translateX(0)" },
104
},
105
"fade-in": {
106
"0%": { opacity: "0" },
107
"100%": { opacity: "1" },
108
},
109
"accordion-down": {
110
from: { height: "0" },
111
to: { height: "var(--radix-accordion-content-height)" },
112
},
113
"accordion-up": {
114
from: { height: "var(--radix-accordion-content-height)" },
115
to: { height: "0" },
116
},
117
},
118
animation: {
119
"toast-in-right": "toast-in-right 0.3s ease-in-out",
120
"fade-in": "fade-in 3s linear",
121
"fade-in-fast": "fade-in .3s ease-in-out",
122
"spin-slow": "spin 2s linear infinite",
123
"accordion-down": "accordion-down 0.2s ease-out",
124
"accordion-up": "accordion-up 0.2s ease-out",
125
},
126
transitionProperty: {
127
width: "width",
128
},
129
},
130
fontFamily: {
131
sans: [
132
"Inter",
133
"system-ui",
134
"-apple-system",
135
"BlinkMacSystemFont",
136
"Segoe UI",
137
"Roboto",
138
"Helvetica Neue",
139
"Arial",
140
"Noto Sans",
141
"sans-serif",
142
"Apple Color Emoji",
143
"Segoe UI Emoji",
144
"Segoe UI Symbol",
145
"Noto Color Emoji",
146
],
147
mono: [
148
"JetBrains Mono",
149
"SF Mono",
150
"Monaco",
151
"Inconsolata",
152
"Fira Mono",
153
"Droid Sans Mono",
154
"Source Code Pro",
155
"monospace",
156
],
157
},
158
underlineThickness: {
159
thin: "2px",
160
thick: "5px",
161
},
162
underlineOffset: {
163
small: "2px",
164
medium: "5px",
165
},
166
filter: {
167
// defaults to {}
168
// https://github.com/benface/tailwindcss-filters#usage
169
none: "none",
170
grayscale: "grayscale(1)",
171
invert: "invert(1)",
172
"brightness-10": "brightness(10)",
173
},
174
},
175
variants: {
176
extend: {
177
opacity: ["disabled"],
178
display: ["dark"],
179
},
180
},
181
plugins: [
182
require("@tailwindcss/forms"),
183
require("tailwind-underline-utils"),
184
require("tailwindcss-filters"),
185
require("tailwindcss-animate"),
186
// ...
187
],
188
};
189
190