Repository navigation
Expand file tree
/
Copy pathchatgpt.com.user.css
More file actions
279 lines (251 loc) · 13.8 KB
/
Copy pathchatgpt.com.user.css
File metadata and controls
279 lines (251 loc) · 13.8 KB
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
/* ==UserStyle==
@name ChatGPT Customizable Colors
@namespace ayebrian
@version 2.0.0
@description Customize the ChatGPT interface by selecting your preferred color palette for a personalized experience.
@author ayebrian
@homepageURL https://github.com/ayebrian/themes
@var color primary-color "Accent color (dark)" "#4d5b6f"
@var color primary-color-light "Accent color (light)" "#799bbf"
@var range tint "Background tint strength (0 = neutral gray, 1 = default)" [1, 0, 1.5, 0.1]
@var checkbox tinted-text "Tint text with the accent color" 1
@var select sidebar-depth "Sidebar" {"same:Same as chat": "0", "darker:Darker*": "1", "darkest:Much darker": "2"}
@var checkbox oled "OLED black background (dark mode)" 0
@var checkbox dynamic-user-message "Dynamic user message color" 1
@var select user-message-source "User message color" {"accent:Accent*": "0", "custom:Custom color below": "1"}
@var color user-message-color "Custom user message color" "#5f4d6f"
@var select send-button "Send and voice buttons" {"neutral:Neutral*": "0", "accent:Accent color": "1"}
@var select chat-width "Chat width" {"default:Default*": "0px", "wide:Wide": "56rem", "wider:Wider": "72rem", "full:Full width": "100%"}
@var range corner-radius "Corner roundness (0 = square, 1 = default)" [1, 0, 1, 0.1]
@var text ui-font "Font family (native = ChatGPT default)" "native"
@var text code-font "Code font family (native = ChatGPT default)" "native"
@var select hide-disclaimer "Disclaimer under the composer" {"show:Show*": "initial", "hide:Hide": "hidden"}
@var select hide-mode-toggle "Chat / Work switch" {"show:Show*": "initial", "hide:Hide": "hidden"}
@var select hide-suggestions "Suggestions under the composer" {"show:Show*": "initial", "hide:Hide": "hidden"}
==/UserStyle== */
@-moz-document domain("chatgpt.com") {
/* October 2026 (2.0.0): ChatGPT was rebuilt on a new design system.
Every color now comes from the --app-color-* palette that ChatGPT injects
for html.chatgpt-theme[data-theme="dark" | "light"] (and nested [data-theme] scopes).
Overriding that palette themes the whole app, so the old utility-class
selectors (bg-token-*, .dark/.light, __menu-item, ...) are gone. */
/* ---------- Base colors ----------
--ay-base tints the surfaces (its chroma follows the tint strength),
--ay-ink tints the text, --ay-accent stays the picked color for links, bubble, buttons. */
html.chatgpt-theme[data-theme],
.chatgpt-theme [data-theme] {
--ay-base: var(--ay-accent);
--ay-ink: var(--ay-accent);
}
@supports (color: oklch(from red l c h)) {
html.chatgpt-theme[data-theme],
.chatgpt-theme [data-theme] {
--ay-base: oklch(from var(--ay-accent) l calc(c * var(--tint)) h);
--ay-neutral: oklch(from var(--ay-accent) l 0 h);
--ay-ink: color-mix(in oklab, var(--ay-base) calc(var(--tinted-text) * 100%), var(--ay-neutral));
}
}
/* ---------- Dark palette ---------- */
html.chatgpt-theme[data-theme="dark"],
.chatgpt-theme [data-theme="dark"] {
--ay-accent: var(--primary-color);
--ay-surface: color-mix(in srgb, #000 calc(var(--oled) * 100%),
color-mix(in srgb, var(--ay-base) 27.27%, #000));
--ay-surface-under: color-mix(in srgb, #000 calc(var(--oled) * 100%),
color-mix(in srgb, var(--ay-base) calc(27.27% - 7.27% * var(--sidebar-depth)), #000));
--ay-elevated: color-mix(in srgb, var(--ay-base) 45%, #000);
--ay-control: color-mix(in srgb, var(--ay-base) 65%, #000);
--ay-callout: color-mix(in srgb, var(--ay-base) 80%, #000);
--ay-editor: color-mix(in srgb, var(--ay-base) 35%, #000);
--ay-text: color-mix(in srgb, var(--ay-ink) 20%, #fff);
--ay-text-secondary: color-mix(in srgb, var(--ay-ink) 40%, #fff);
--ay-text-tertiary: color-mix(in srgb, var(--ay-ink) 60%, #fff);
--ay-link: color-mix(in srgb, var(--ay-accent) 50%, #fff);
--ay-accent-surface: color-mix(in srgb, var(--ay-accent) 55%, #000);
--ay-hover: color-mix(in srgb, var(--ay-base) 40%, transparent);
--ay-active: color-mix(in srgb, var(--ay-base) 55%, transparent);
--ay-user-message: var(--ay-accent);
--ay-native-user-message: rgb(50 50 50 / 85%);
}
/* ---------- Light palette ---------- */
html.chatgpt-theme[data-theme="light"],
.chatgpt-theme [data-theme="light"] {
--ay-accent: var(--primary-color-light);
--ay-surface: color-mix(in srgb, var(--ay-base) 7%, #fff);
--ay-surface-under: color-mix(in srgb, var(--ay-base) calc(7% + 8% * var(--sidebar-depth)), #fff);
--ay-elevated: #fff;
--ay-control: color-mix(in srgb, var(--ay-base) 13%, #fff);
--ay-callout: color-mix(in srgb, var(--ay-base) 18%, #fff);
--ay-editor: color-mix(in srgb, var(--ay-base) 4%, #fff);
--ay-text: color-mix(in srgb, var(--ay-ink) 18%, #0d0d0d);
--ay-text-secondary: color-mix(in srgb, var(--ay-ink) 40%, #1a1a1a);
--ay-text-tertiary: color-mix(in srgb, var(--ay-ink) 55%, #4a4a4a);
--ay-link: color-mix(in srgb, var(--ay-accent) 55%, #000);
--ay-accent-surface: color-mix(in srgb, var(--ay-accent) 18%, #fff);
--ay-hover: color-mix(in srgb, var(--ay-base) 14%, transparent);
--ay-active: color-mix(in srgb, var(--ay-base) 22%, transparent);
--ay-user-message: color-mix(in srgb, var(--ay-accent) 40%, #fff);
--ay-native-user-message: rgb(233 233 233 / 50%);
}
/* ---------- Palette mapping (shared by both modes) ---------- */
html.chatgpt-theme[data-theme],
.chatgpt-theme [data-theme] {
--codex-base-accent: var(--ay-accent);
--codex-base-ink: var(--ay-text);
--codex-base-surface: var(--ay-surface);
/* Surfaces */
--app-color-background-surface: var(--ay-surface);
--app-color-background-surface-under: var(--ay-surface-under);
--color-background-panel: var(--ay-surface);
--app-color-background-elevated-primary: var(--ay-elevated);
--app-color-background-elevated-primary-opaque: var(--ay-elevated);
--app-color-background-application-menu: var(--ay-elevated);
--app-color-background-card: var(--ay-elevated);
--app-color-background-elevated-secondary: var(--ay-control);
--app-color-background-elevated-secondary-opaque: var(--ay-control);
--app-color-background-control: var(--ay-control);
--color-background-control-opaque: var(--ay-control);
--color-background-composer-action-bar: var(--ay-control);
--color-background-callout-surface: var(--ay-callout);
--app-color-background-editor-opaque: var(--ay-editor);
--app-color-ads-background-secondary: var(--ay-control);
/* Buttons */
--app-color-background-button-primary: var(--ay-text);
--app-color-background-button-primary-inactive: var(--ay-text);
--app-color-background-button-primary-hover: color-mix(in srgb, var(--ay-text) 80%, transparent);
--app-color-background-button-primary-active: color-mix(in srgb, var(--ay-text) 90%, transparent);
--app-color-text-button-primary: var(--ay-surface);
--app-color-text-primary-solid: var(--ay-surface);
--app-color-background-button-secondary: var(--ay-control);
--app-color-background-button-secondary-hover: var(--ay-hover);
--app-color-background-button-secondary-active: var(--ay-active);
--app-color-background-button-tertiary-hover: var(--ay-hover);
--app-color-background-button-tertiary-active: var(--ay-active);
--app-color-ads-background-secondary-press: var(--ay-active);
--color-background-button-outline-hover: var(--ay-hover);
/* Send / voice buttons: neutral (text color) or the accent */
--ay-send: color-mix(in srgb, var(--ay-accent) calc(var(--send-button) * 100%), var(--ay-text));
--color-background-composer-primary: var(--ay-send);
--color-text-composer-primary: var(--ay-surface);
/* Chat / Work switch */
--color-background-mode-toggle-track: var(--ay-surface-under);
--color-background-mode-toggle-selected: var(--ay-control);
/* Accent */
--app-color-background-accent: var(--ay-accent-surface);
--app-color-background-accent-hover: var(--ay-accent-surface);
--app-color-background-accent-active: var(--ay-accent-surface);
--app-color-border-focus: var(--ay-link);
--app-color-text-accent: var(--ay-link);
--app-color-icon-accent: var(--ay-link);
--app-color-accent-blue: var(--ay-link);
--color-image-generation-accent: var(--ay-link);
--color-text-mode-toggle-accent: var(--ay-link);
--color-text-composer-reference: var(--ay-link);
--color-background-text-selection: color-mix(in srgb, var(--ay-accent) 55%, transparent);
/* Text & icons */
--app-color-text-foreground: var(--ay-text);
--app-color-text-foreground-secondary: var(--ay-text-secondary);
--app-color-text-foreground-tertiary: var(--ay-text-tertiary);
--app-color-text-secondary: var(--ay-text-secondary);
--app-color-text-button-secondary: var(--ay-text);
--app-color-text-button-tertiary: var(--ay-text-tertiary);
--app-color-foreground-application-menu: var(--ay-text);
--app-color-icon-primary: var(--ay-text);
--app-color-icon-secondary: var(--ay-text-secondary);
--app-color-icon-tertiary: var(--ay-text-tertiary);
--app-color-ads-text-primary: var(--ay-text);
--color-text-button-outline: var(--ay-text);
--color-text-mode-toggle-primary: var(--ay-text);
--color-text-mode-toggle-inactive: var(--ay-text-secondary);
/* Borders */
--app-color-border: color-mix(in srgb, var(--ay-text-tertiary) 20%, transparent);
--app-color-border-heavy: color-mix(in srgb, var(--ay-text-tertiary) 28%, transparent);
--app-color-border-light: color-mix(in srgb, var(--ay-text-tertiary) 10%, transparent);
--app-color-border-application-menu-separator: color-mix(in srgb, var(--ay-text-tertiary) 20%, transparent);
--app-color-ads-border-medium: color-mix(in srgb, var(--ay-text-tertiary) 20%, transparent);
--color-border-button-outline: color-mix(in srgb, var(--ay-text-tertiary) 20%, transparent);
/* User message bubble.
Checkbox: dynamic color when enabled, native ChatGPT gray when disabled.
Dynamic color is the accent or the custom color, depending on the select */
--ay-bubble: color-mix(in srgb,
var(--user-message-color) calc(var(--user-message-source) * 100%),
var(--ay-user-message));
--color-background-user-message: color-mix(in srgb,
var(--ay-native-user-message) calc((1 - var(--dynamic-user-message)) * 100%),
var(--ay-bubble) calc(var(--dynamic-user-message) * 100%));
--color-text-user-message: var(--ay-text);
}
@supports (color: oklch(from red l c h)) {
html.chatgpt-theme[data-theme],
.chatgpt-theme [data-theme] {
/* Light text on dark fills, dark text on light ones, so any picked color stays readable */
--color-text-user-message: oklch(from var(--color-background-user-message) clamp(0.15, (0.58 - l) * 1000, 0.97) calc(c * 0.2) h / 1);
--color-text-composer-primary: oklch(from var(--ay-send) clamp(0.15, (0.58 - l) * 1000, 0.97) calc(c * 0.2) h / 1);
}
}
/* ---------- Corner roundness ----------
Every --radius-* token is base * scale, so scaling the bases (web shell values)
also covers the things that read a base directly: code blocks, main panel corner.
Fully round pills, buttons and avatars (--radius-full) stay round. */
html.chatgpt-theme[data-theme] {
--radius-2xs-base: calc(.125rem * var(--corner-radius));
--radius-xs-base: calc(.125rem * var(--corner-radius));
--radius-sm-base: calc(.25rem * var(--corner-radius));
--radius-md-base: calc(.375rem * var(--corner-radius));
--radius-lg-base: calc(.5rem * var(--corner-radius));
--radius-xl-base: calc(.75rem * var(--corner-radius));
--radius-2xl-base: calc(1rem * var(--corner-radius));
--radius-3xl-base: calc(1.5rem * var(--corner-radius));
--radius-4xl-base: calc(2rem * var(--corner-radius));
--composer-radius: calc(var(--spacing) * 7 * var(--corner-radius));
--radius-token-composer-single-line: calc(var(--spacing) * 5.5 * var(--corner-radius));
}
html.chatgpt-theme [data-user-message-bubble] {
--radius-2xl: calc(var(--spacing) * 5.5 * var(--corner-radius));
}
html.chatgpt-theme [data-composer-layout][style*="border-radius"] {
border-radius: min(var(--composer-surface-border-radius, 9999px), calc(var(--spacing) * 7 * var(--corner-radius))) !important;
/* The single-line composer pill writes its radius inline */
}
/* ---------- Layout ---------- */
html.chatgpt-theme body {
--thread-content-expanded-max-width: max(var(--thread-content-max-width, 48rem), var(--chat-width));
--thread-content-compact-max-width: max(40rem, var(--chat-width));
/* Chat width: "0px" keeps ChatGPT's own widths */
}
html.chatgpt-theme {
--font-ui-family: var(--ui-font), var(--font-sans-default);
--font-sans: var(--ui-font), var(--font-sans-default);
--font-code-family: var(--code-font), ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
/* "native" is not an installed font, so the default falls through to ChatGPT's own stack */
}
/* ---------- Hide elements ----------
"Show" sets the variable to initial: the declaration becomes invalid and
visibility falls back to inheriting, exactly as without the theme. */
html.chatgpt-theme .text-codex-description[data-markdown-copy="exclude"] {
visibility: var(--hide-disclaimer);
}
html.chatgpt-theme [class*="@container/home-mode-toggle"] {
visibility: var(--hide-mode-toggle);
}
html.chatgpt-theme [class*="group/home-suggestion-list-item"] {
visibility: var(--hide-suggestions);
}
/* ---------- Misc ---------- */
html.chatgpt-theme .app-shell-left-panel {
--color-surface: var(--ay-surface-under);
background-color: var(--ay-surface-under);
/* Sidebar: in the browser shell it reuses the main surface, keep it a shade darker like 1.x */
}
html.chatgpt-theme input[type="range"][style*="linear-gradient"] {
background: linear-gradient(90deg,
color-mix(in srgb, var(--ay-link) 35%, var(--ay-surface)) 0%,
var(--ay-link) 32%,
var(--ay-link) 100%) !important;
/* Settings > Appearance > Contrast: the gradient is written inline from the built-in accent */
}
html.chatgpt-theme,
html.chatgpt-theme * {
scrollbar-color: color-mix(in srgb, var(--ay-text-tertiary) 45%, transparent) transparent;
}
}