Skip to content

Commit 25400fe

Browse files
authored
fix: update colors and theme in error.html (#20941)
### Description This pull-request ensures that we're using the right colors (and themeing things within the actual coder brand) on the `error.html` page. Furthermore, I went ahead and cleaned up the CSS Variables and converted all `px` units to a standard `rem` unit (16px base). ### Preview <img width="3516" height="2388" alt="CleanShot 2025-12-02 at 11 09 55@2x" src="/api/flow.js?q=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fcommit%2F%253Ca%2520href%3D"https://github.com/user-attachments/assets/781623ea-a487-4a2e-a08e-bec86d6de6f5">https://github.com/user-attachments/assets/781623ea-a487-4a2e-a08e-bec86d6de6f5" />
1 parent 82bb833 commit 25400fe

File tree

1 file changed

+55
-34
lines changed

1 file changed

+55
-34
lines changed

site/static/error.html

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,84 +24,104 @@
2424
box-sizing: border-box;
2525
}
2626

27+
:root {
28+
--color-white: #FFFFFF;
29+
--color-warning: #F3722C;
30+
--color-surface-primary: #090B0B;
31+
--color-zinc-900: #18181B;
32+
--color-zinc-400: #A1A1AA;
33+
--color-zinc-800: #27272A;
34+
}
35+
2736
html,
2837
body {
29-
background-color: #05060b;
30-
color: #a1a1aa;
3138
display: flex;
3239
align-items: center;
3340
justify-content: center;
34-
font-family: sans-serif;
35-
font-size: 16px;
3641
height: 100%;
42+
43+
background: var(--color-surface-primary);
44+
color: var(--color-zinc-400);
45+
46+
font-family: system-ui, sans-serif;
47+
font-size: 16px;
3748
}
3849

3950
header {
4051
text-align: center;
4152
}
4253

4354
.container {
44-
--side-padding: 24px;
55+
--side-padding: 1.5rem;
4556
width: 100%;
46-
max-width: calc(500px + var(--side-padding) * 2);
57+
max-width: calc(31.25rem + var(--side-padding) * 2);
4758
padding: 0 var(--side-padding);
4859
}
4960

5061
.coder-svg {
51-
width: 80px;
52-
margin-bottom: 24px;
62+
width: 5rem;
63+
margin-bottom: 1.5rem;
5364
}
5465

5566
h1 {
56-
font-size: 24px;
57-
margin-bottom: 8px;
67+
font-size: 1.5rem;
5868
font-weight: 400;
59-
color: white;
69+
color: var(--color-white);
70+
71+
margin-bottom: 0.5rem;
6072
}
6173

6274
p,
6375
li {
6476
line-height: 140%;
65-
font-size: 14px;
77+
font-size: 1rem;
6678
}
6779

68-
6980
.button-group {
7081
display: flex;
7182
align-items: center;
7283
justify-content: center;
73-
gap: 12px;
74-
margin-top: 24px;
84+
gap: 0.75rem;
85+
86+
margin-top: 1.5rem;
7587
}
7688

7789
.button-group a,
7890
.button-group button {
7991
display: inline-flex;
8092
align-items: center;
8193
justify-content: center;
82-
padding: 6px 16px;
83-
border-radius: 4px;
84-
border: 1px solid #2c3854;
85-
text-decoration: none;
94+
95+
padding: 0.5rem 1rem;
96+
97+
border-radius: 0.375rem;
98+
border: 1px solid var(--color-zinc-800);
8699
background: none;
87-
font-size: inherit;
88-
color: inherit;
89-
width: 200px;
90-
height: 42px;
100+
101+
color: var(--color-white);
102+
text-decoration: none;
103+
font-size: 0.875rem;
104+
font-weight: 400;
105+
106+
width: 12.5rem;
107+
height: 2.5rem;
108+
91109
cursor: pointer;
92110
}
93111

94112
.button-group a:hover,
95113
.button-group button:hover {
96-
border-color: hsl(222, 31%, 40%);
114+
background-color: var(--color-zinc-900);
115+
border-color: var(--color-zinc-800);
97116
}
98117

99118
.warning {
100-
margin-top: 24px;
101-
border: 1px solid rgb(243, 140, 89);
102-
background: rgb(13, 19, 33);
119+
border: 1px solid var(--color-warning);
120+
background: var(--color-zinc-900);
103121
width: 100%;
104-
padding: 24px;
122+
123+
margin: 1.5rem 0 0;
124+
padding: 1.5rem;
105125
}
106126

107127
.warning-title {
@@ -111,15 +131,16 @@
111131
}
112132

113133
.warning-title h3 {
114-
margin-left: 12px;
115-
font-size: 16px;
116-
font-weight: 500;
117-
color: white;
134+
font-size: 1rem;
135+
font-weight: 400;
136+
color: var(--color-white);
137+
138+
margin-left: 0.75rem;
118139
}
119140

120141
.warning li {
121-
padding-top: 10px;
122-
margin-left: 30px;
142+
padding-top: 0.625rem;
143+
margin-left: 1.875rem;
123144
}
124145
</style>
125146
</head>

0 commit comments

Comments
 (0)