-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathindex.css
174 lines (160 loc) · 5.56 KB
/
index.css
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License.AGPL.txt in the project root for license information.
*/
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/* Setup colors for different themes */
/* Using rgb color channels here to work well w/ tailwind classes */
/* https: //tailwindcss.com/docs/customizing-colors#using-css-variables */
:root {
/* Setup RGB color channel variables */
--black: 22 22 22; /* #161616 */
--white: 255 255 255; /* #FFFFFF */
/* TODO: determine if these are the reds we want - need to have correct constrast */
--red-600: 220 38 38;
--red-400: 248 68 68;
--gray-900: 18 16 12; /* #12100C */
--gray-850: 21 19 16; /* #151310 */
--gray-800: 35 33 30; /* #23211E */
--gray-750: 44 43 40; /* #2C2B28 */
--gray-700: 81 79 77; /* #514F4D */
--gray-600: 86 84 81; /* #565451 */
--gray-500: 102 101 100; /* #666564 */
--gray-450: 153 151 149; /* #999795 */
--gray-400: 116 115 114; /* #747372 */
--gray-300: 218 218 218; /* #DADADA */
--gray-200: 236 231 229; /* #ECE7E5 */
--gray-100: 245 244 244; /* #F5F4F4 */
--gray-50: 249 249 249; /* #F9F9F9 */
/* Content */
--content-primary: var(--gray-900);
--content-secondary: var(--gray-600);
--content-tertiary: var(--gray-400);
--content-disabled: var(--gray-450);
--content-invert-primary: var(--gray-200);
--content-invert-secondary: var(--gray-300);
--content-danger: var(--red-600);
/* Surfaces */
--surface-primary: var(--white);
--surface-secondary: var(--gray-50);
--surface-tertiary: var(--gray-100);
--surface-labels: var(--gray-200);
--surface-invert: var(--gray-850);
/* Borders */
--border-base: var(--gray-200);
}
/* Dark mode color adjustments */
:root[class~="dark"] {
/* Content */
--content-primary: var(--gray-200);
--content-secondary: var(--gray-450);
--content-tertiary: var(--gray-500);
--content-disabled: var(--gray-600);
--content-invert-primary: var(--gray-900);
--content-invert-secondary: var(--gray-600);
--content-danger: var(--red-400);
/* Surfaces */
--surface-primary: var(--gray-850);
--surface-secondary: var(--gray-800);
--surface-tertiary: var(--gray-750);
--surface-labels: var(--gray-700);
--surface-invert: var(--gray-50);
/* Borders */
--border-base: var(--gray-700);
}
html,
body {
@apply h-full;
}
body {
@apply bg-white dark:bg-gitpod-black text-black dark:text-white;
}
body[style] {
/* https://github.com/gitpod-io/gitpod/pull/18979#discussion_r1380773740 */
margin: 0 auto !important;
}
p {
@apply text-sm text-gray-400 dark:text-gray-600;
}
.app-container {
@apply lg:px-28 px-4;
}
.dark .dark\:filter-invert {
@apply filter-invert;
}
.grayed {
filter: grayscale(100%);
}
.grayed:hover {
filter: none;
}
}
@layer components {
.gp-link {
@apply text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-500 cursor-pointer;
}
code {
@apply bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded-md text-sm font-mono font-medium;
}
textarea,
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
select {
@apply block w-56 text-gray-600 dark:text-gray-400 dark:bg-gray-800 bg-white rounded-lg border border-gray-300 dark:border-gray-500 focus:border-gray-400 dark:focus:border-gray-400 focus:ring-0;
}
textarea::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder {
@apply text-gray-400 dark:text-gray-500;
}
input[type="text"].error,
input[type="tel"].error,
input[type="number"].error,
input[type="search"].error,
input[type="password"].error,
input[type="email"].error,
input[type="url"].error,
select.error {
@apply border-gitpod-red dark:border-gitpod-red focus:border-gitpod-red dark:focus:border-gitpod-red;
}
select[disabled],
textarea[disabled],
input[disabled] {
@apply bg-gray-100 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 text-gray-400 dark:text-gray-500;
}
input[type="radio"] {
@apply border border-gray-300 focus:border-gray-400 focus:bg-white focus:ring-0;
}
/* Search */
input[type="search"] {
@apply border-0 dark:bg-gray-800 bg-gray-50 text-gray-600 dark:text-gray-400 rounded-lg focus:border-gray-400 dark:focus:border-gray-400 focus:outline-none focus:ring ring-0 focus:ring-blue-400 dark:focus:ring-blue-500 transition ease-in-out;
}
input[type="checkbox"] {
@apply disabled:opacity-50;
}
progress {
@apply h-2 rounded;
}
progress::-webkit-progress-bar {
@apply rounded-md bg-gray-200 dark:bg-gray-600;
}
progress::-webkit-progress-value {
@apply rounded-md bg-green-500;
}
progress::-moz-progress-bar {
@apply rounded-md bg-green-500;
}
}