mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 08:56:46 -04:00
97a8df0a23
This PR fixes a bug where a user might choose `classic-dark` as a theme in `studio` but then `docs` and `marketing` apps will look weird. To test: - Change the localStorage value of `theme` to `classic-dark` - Open `www` and `docs` apps, they should look ok <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new "classic-dark" theme option for enhanced visual customization. * **Improvements** * Unified and simplified theme handling across apps for more consistent behavior. * Improved system-theme detection and smoother transitions when switching themes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
69 lines
2.6 KiB
CSS
69 lines
2.6 KiB
CSS
/*
|
|
* This theme has the same values as the dark theme meant to be used in www and docs. www and docs can only support
|
|
* light and dark themes because they only have images for light and dark themes.
|
|
*/
|
|
[data-theme='classic-dark'],
|
|
.classic-dark {
|
|
--helpers-os-appearance: Dark;
|
|
--code-block-5: 13.8deg 89.7% 69.6%;
|
|
--code-block-4: 276.1deg 67.7% 74.5%;
|
|
--code-block-3: 83.8deg 61.7% 63.1%;
|
|
--code-block-2: 33.2deg 90.3% 75.7%;
|
|
--code-block-1: 170.8deg 43.1% 61.4%;
|
|
--secondary-default: 247.8deg 100% 70%;
|
|
--secondary-400: 248.3deg 54.5% 25.9%;
|
|
--secondary-200: 248deg 53.6% 11%;
|
|
--brand-link: 155deg 100% 38.6%;
|
|
--brand-default: 153.1deg 60.2% 52.7%;
|
|
--brand-600: 154.9deg 59.5% 70%;
|
|
--brand-500: 154.9deg 100% 19.2%;
|
|
--brand-400: 155.5deg 100% 9.6%;
|
|
--brand-300: 155.1deg 100% 8%;
|
|
--brand-200: 162deg 100% 2%;
|
|
--warning-default: 38.9deg 100% 42.9%; /* warning-600 */
|
|
--warning-600: 38.9deg 100% 42.9%;
|
|
--warning-500: 34.8deg 90.9% 21.6%;
|
|
--warning-400: 33.2deg 100% 14.5%;
|
|
--warning-300: 32.3deg 100% 10.2%;
|
|
--warning-200: 36.6deg 100% 8%;
|
|
--destructive-default: 10.2deg 77.9% 53.9%;
|
|
--destructive-600: 9.7deg 85.2% 62.9%;
|
|
--destructive-500: 7.9deg 71.6% 29%;
|
|
--destructive-400: 6.7deg 60% 20.6%;
|
|
--destructive-300: 7.5deg 51.3% 15.3%;
|
|
--destructive-200: 10.9deg 23.4% 9.2%;
|
|
--border-stronger: 0deg 0% 27.1%;
|
|
--border-strong: 0deg 0% 21.2%;
|
|
--border-alternative: 0deg 0% 26.7%;
|
|
--border-control: 0deg 0% 22.4%;
|
|
--border-overlay: 0deg 0% 20%;
|
|
--border-secondary: 0deg 0% 14.1%;
|
|
--border-muted: 0deg 0% 14.1%;
|
|
--border-default: 0deg 0% 18%;
|
|
--background-dash-canvas: 0deg 0% 7.1%;
|
|
--background-dash-sidebar: 0deg 0% 9%;
|
|
--background-dialog-default: 0deg 0% 7.1%;
|
|
--background-muted: 0deg 0% 14.1%;
|
|
--background-overlay-hover: 0deg 0% 18%;
|
|
--background-overlay-default: 0deg 0% 14.1%;
|
|
--background-surface-400: 0deg 0% 16.1%;
|
|
--background-surface-300: 0deg 0% 16.1%;
|
|
--background-surface-200: 0deg 0% 12.9%;
|
|
--background-surface-100: 0deg 0% 12.2%;
|
|
--background-surface-75: 0deg 0% 9%;
|
|
--background-control: 0deg 0% 14.1%;
|
|
--background-selection: 0deg 0% 19.2%;
|
|
--background-alternative-default: 0deg 0% 5.9%;
|
|
--background-default: 0deg 0% 7.1%;
|
|
--background-200: 0deg 0% 9%;
|
|
--foreground-contrast: 0deg 0% 8.6%;
|
|
--foreground-muted: 0deg 0% 30.2%;
|
|
--foreground-lighter: 0deg 0% 53.7%;
|
|
--foreground-light: 0deg 0% 70.6%;
|
|
--foreground-default: 0deg 0% 98%;
|
|
--border-button-hover: var(--colors-gray-dark-800);
|
|
--border-button-default: var(--colors-gray-dark-700);
|
|
--background-button-default: var(--colors-gray-dark-500);
|
|
--background-alternative-200: var(--colors-gray-dark-200);
|
|
}
|