Skip to content

Commit f270d9d

Browse files
authored
feat: make the dashboard darker (#10084)
* feat: make the dashboard darker Coder is a the internal software development platform. It is not designed to be opinionated on colors, but it should look great. Focusing on neutrality for our default dashboard theme is great for our ICP. Some organizations may lean towards colors more or less, and that shouldn't influence their decision when exploring Coder. * Make it a lil more dark * Improve button outline * Lower the red brightness * Improve the divider contrast
1 parent 04e7748 commit f270d9d

File tree

3 files changed

+42
-37
lines changed

3 files changed

+42
-37
lines changed

site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<style>
5757
html,
5858
body {
59-
background-color: hsl(220, 50%, 3%);
59+
background-color: hsl(0, 0%, 1%);
6060
}
6161
</style>
6262
</head>

site/src/theme/colors.ts

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,43 @@ export const colors = {
44
white: "hsl(0, 0%, 100%)",
55

66
gray: {
7-
17: "hsl(220, 50%, 3%)",
8-
16: "hsl(223, 44%, 9%)",
9-
15: "hsl(222, 38%, 14%)",
10-
14: "hsl(222, 32%, 19%)",
11-
13: "hsl(222, 31%, 25%)",
12-
12: "hsl(222, 30%, 31%)",
13-
11: "hsl(219, 29%, 38%)",
14-
10: "hsl(219, 28%, 45%)",
15-
9: "hsl(219, 28%, 52%)",
16-
8: "hsl(218, 29%, 58%)",
17-
7: "hsl(219, 30%, 64%)",
18-
6: "hsl(219, 31%, 71%)",
19-
5: "hsl(218, 32%, 77%)",
20-
4: "hsl(223, 38%, 84%)",
21-
3: "hsl(218, 44%, 92%)",
22-
2: "hsl(220, 50%, 95%)",
23-
1: "hsl(220, 55%, 98%)",
7+
17: "hsl(0, 0%, 1%)",
8+
16: "hsl(0, 0%, 4%)",
9+
15: "hsl(0, 0%, 7%)",
10+
14: "hsl(0, 0%, 11%)",
11+
13: "hsl(0, 0%, 15%)",
12+
12: "hsl(0, 0%, 19%)",
13+
11: "hsl(0, 0%, 23%)",
14+
10: "hsl(0, 0%, 27%)",
15+
9: "hsl(0, 0%, 31%)",
16+
8: "hsl(0, 0%, 35%)",
17+
7: "hsl(0, 0%, 62%)",
18+
6: "hsl(0, 0%, 69%)",
19+
5: "hsl(0, 0%, 75%)",
20+
4: "hsl(0, 0%, 82%)",
21+
3: "hsl(0, 0%, 90%)",
22+
2: "hsl(0, 0%, 93%)",
23+
1: "hsl(0, 0%, 96%)",
2424
},
2525

2626
red: {
2727
17: "hsl(355, 95%, 3%)",
28-
16: "hsl(355, 88%, 9%)",
29-
15: "hsl(355, 86%, 14%)",
30-
14: "hsl(355, 84%, 19%)",
31-
13: "hsl(355, 82%, 25%)",
32-
12: "hsl(355, 74%, 31%)",
33-
11: "hsl(355, 70%, 38%)",
34-
10: "hsl(355, 66%, 45%)",
35-
9: "hsl(355, 69%, 52%)",
36-
8: "hsl(355, 73%, 58%)",
37-
7: "hsl(355, 76%, 64%)",
38-
6: "hsl(355, 78%, 71%)",
39-
5: "hsl(355, 79%, 77%)",
40-
4: "hsl(355, 85%, 84%)",
41-
3: "hsl(355, 88%, 92%)",
42-
2: "hsl(355, 95%, 96%)",
43-
1: "hsl(355, 100%, 98%) ",
28+
16: "hsl(355, 88%, 8%)",
29+
15: "hsl(355, 86%, 13%)",
30+
14: "hsl(355, 84%, 18%)",
31+
13: "hsl(355, 82%, 23%)",
32+
12: "hsl(355, 74%, 28%)",
33+
11: "hsl(355, 70%, 33%)",
34+
10: "hsl(355, 66%, 38%)",
35+
9: "hsl(355, 69%, 43%)",
36+
8: "hsl(355, 73%, 48%)",
37+
7: "hsl(355, 76%, 53%)",
38+
6: "hsl(355, 78%, 58%)",
39+
5: "hsl(355, 79%, 63%)",
40+
4: "hsl(355, 85%, 68%)",
41+
3: "hsl(355, 88%, 73%)",
42+
2: "hsl(355, 95%, 78%)",
43+
1: "hsl(355, 100%, 83%) ",
4444
},
4545

4646
orange: {

site/src/theme/theme.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export let dark = createTheme({
4545
},
4646
divider: colors.gray[13],
4747
warning: {
48-
light: colors.orange[7],
49-
main: colors.orange[9],
48+
light: colors.orange[9],
49+
main: colors.orange[11],
5050
dark: colors.orange[15],
5151
},
5252
success: {
@@ -167,6 +167,11 @@ dark = createTheme(dark, {
167167
sizeLarge: {
168168
height: BUTTON_LG_HEIGHT,
169169
},
170+
outlined: {
171+
":hover": {
172+
border: `1px solid ${colors.gray[10]}`,
173+
},
174+
},
170175
outlinedNeutral: {
171176
borderColor: colors.gray[12],
172177

@@ -376,7 +381,7 @@ dark = createTheme(dark, {
376381
// The default outlined input color is white, which seemed jarring.
377382
"&:hover:not(.Mui-error):not(.Mui-focused) .MuiOutlinedInput-notchedOutline":
378383
{
379-
borderColor: colors.gray[7],
384+
borderColor: colors.gray[10],
380385
},
381386
},
382387
},

0 commit comments

Comments
 (0)