Updated ChatGPT gray background color fix (Ublock Origin)
By Holidays in Europe / June 30, 2026 / No Comments / Uncategorized
Enhancing the ChatGPT User Interface: Implementing the Official Gray Background Fix with uBlock Origin
The visual experience when using ChatGPT has become a common concern among users, particularly regarding its default dark or black background, which may not suit everyone’s preferences. Addressing this issue, OpenAI itself has introduced a tailored filter for the uBlock Origin content blocker to restore a more neutral, gray/charcoal background, ensuring a pleasant and consistent user interface.
Understanding the Fix
The provided filter overrides the default background colors on the ChatGPT website by injecting custom CSS styles that replace dark themes with shades of gray. This method leverages uBlock Origin’s ability to apply custom styles to specific elements of a webpage, providing an elegant solution without the need for invasive modifications.
Implementing the Official ChatGPT Background Color Fix
To activate this fix, follow these simple steps:
-
Remove Previous Filters
If you have previously applied custom filters or styles to modify ChatGPT’s appearance, disable or delete them to prevent conflicts. -
Add the New Filter in uBlock Origin
Open your uBlock Origin dashboard and navigate to the “My filters” tab. Paste the following filter code to customize the background colors:
plaintext
! ChatGPT - stronger gray/charcoal override
chatgpt.com##html.dark:style(
--bg-primary: #303030 !important;
--main-surface-primary: #2f2f2f !important;
--main-surface-secondary: #333333 !important;
--main-surface-tertiary: #3a3a3a !important;
--bg-secondary-surface: #2f2f2f !important;
--bg-elevated-secondary: #2a2a2a !important;
--sidebar-surface-primary: #262626 !important;
--sidebar-surface-secondary: #2c2c2c !important;
--sidebar-surface-tertiary: #333333 !important;
--message-surface: #343434 !important;
--composer-surface: #333333 !important;
--border-light: #444444 !important;
--border-medium: #555555 !important;
)
plaintext
chatgpt.com##.dark.dark:style(
--bg-primary: #303030 !important;
--main-surface-primary: #2f2f2f !important;
--main-surface-secondary: #333333 !important;
--main-surface-tertiary: #3a3a3a !important;
--bg-secondary-surface: #2f2f2f !important;
--bg-elevated-secondary: #2a2a2a !important;
--sidebar-surface-primary: #262626 !important;
--sidebar-surface-secondary: #2c2c2c !important;
--sidebar-surface-tertiary: #333333 !important;
--message-surface: #343434 !important;
--composer-surface: #333333 !important;
--border-light: #444444 !important;
--border-medium: #555555 !important;
)
plaintext
[chatgpt.com##html.dark](http://chatgpt.com##html.dark) :not(:where(.light,.light *)):style(
--bg-primary: #303030 !important;
--main-surface-primary: #2f2f2f !important;
--main-surface-secondary: #333333 !important;
--main-surface-tertiary: #3a3a3a !important;
--bg-secondary-surface: #2f2f2f !important;
--bg-elevated-secondary: #2a2a2a !important;
--sidebar-surface-primary: #262626 !important;
--sidebar-surface-secondary: #2c2c2c !important;
--sidebar-surface-tertiary: #333333 !important;
--message-surface: #343434 !important;
--composer-surface: #333333 !important;
--border-light: #444444 !important;
--border-medium: #555555 !important;
)
- Apply and Refresh
Save your filters, refresh the ChatGPT webpage, and enjoy a subtle yet effective shift to a more neutral gray background, reducing visual strain and improving readability.
Benefits of the Official Fix
This approach aligns with the updates directly provided by ChatGPT’s developers, ensuring compatibility and stability. It offers a cleaner visual environment, especially for users who prefer a less intense dark mode, and enhances overall accessibility.
Final Notes
Customizing your browsing experience with simple tools like uBlock Origin empowers users to tailor widely-used platforms to suit individual preferences. By applying these official CSS overrides, ChatGPT users can enjoy a more comfortable and visually appealing interface.
For best results, always ensure you’re using the latest filters and keep your browser extensions updated. If you encounter any issues or wish to revert to the original design, simply remove the custom filters from your uBlock Origin dashboard.
Enhance your ChatGPT experience today by implementing this straightforward, officially supported background color fix.