Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): Allow resetting colorMode to System/OS value #10987

Merged
merged 14 commits into from
Mar 14, 2025

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Mar 13, 2025

Motivation

Introduce a 3rd value in the color mode toggle to reset to System/OS color mode value

Fix #8074

CleanShot 2025-03-13 at 14 03 44

To handle FOUC in the toggle button before React hydration, we introduce a data-theme-choice attribute. Users can also rely on this to implement their own toggle button that doesn't produce FOUC. Relying on useColorMode().colorModeChoice to display the right icon is not ideal due to how React hydration works (see also #7986)

Note about data attributes:

  • data-theme is always set to 'light' | 'dark': it's the "effective" theme being applied to the UI
  • data-theme-choice is always set to 'light' | 'dark' | 'system': it's the explicit theme choice that we consider the user has made

In practice, it's possible to have data-theme-choice: 'auto' and data-theme: 'light' for example (most likely happens when the system theme is 'light')

This also refactors and simplifies a few things and fixes a few bugs:

Test Plan

Preview 😅

Test links

https://deploy-preview-10987--docusaurus-2.netlify.app/

Docs: https://deploy-preview-10987--docusaurus-2.netlify.app/docs/api/themes/configuration/#use-color-mode

Related issues/PRs

Supersede:

Fixes the printing edge case but in a different way (#6490)

Fix #7667 and a11y state announcement issues

Document tradeoffs of useColorMode related to React hydration/FOUC: see #7986

@slorber slorber added the pr: new feature This PR adds a new API or behavior. label Mar 13, 2025
@slorber slorber requested a review from Josh-Cena as a code owner March 13, 2025 13:11
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 13, 2025
Copy link

netlify bot commented Mar 13, 2025

[V2]

Name Link
🔨 Latest commit 3ac7dbe
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/67d420223555630008c9e44d
😎 Deploy Preview https://deploy-preview-10987--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Mar 13, 2025

Size Change: +46.9 kB (+0.42%)

Total Size: 11.2 MB

Filename Size Change
website/build/assets/css/styles.********.css 126 kB +97 B (+0.08%)
website/build/assets/js/main.********.js 791 kB +1.27 kB (+0.16%)
website/build/blog.html 75.5 kB +330 B (+0.44%)
website/build/blog/2017/12/14/introducing-docusaurus.html 64.5 kB +330 B (+0.51%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 44.1 kB +342 B (+0.78%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 48.4 kB +330 B (+0.69%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 28.7 kB +330 B (+1.16%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 39.2 kB +329 B (+0.85%)
website/build/blog/2020/01/07/tribute-to-endi.html 32.2 kB +330 B (+1.04%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 50 kB +330 B (+0.66%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 46.4 kB +329 B (+0.71%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 47.1 kB +330 B (+0.7%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 53.4 kB +342 B (+0.64%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 42.4 kB +330 B (+0.78%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 131 kB +662 B (+0.51%)
website/build/blog/2022/09/01/docusaurus-2.1.html 49.5 kB +329 B (+0.67%)
website/build/blog/archive.html 23.2 kB +330 B (+1.44%)
website/build/blog/authors.html 49.7 kB +330 B (+0.67%)
website/build/blog/authors/j-marcey.html 69.2 kB +330 B (+0.48%)
website/build/blog/authors/josh-cena.html 46.1 kB +330 B (+0.72%)
website/build/blog/authors/lex-111.html 54.8 kB +330 B (+0.61%)
website/build/blog/authors/slorber.html 78.8 kB +330 B (+0.42%)
website/build/blog/authors/slorber/authors/2.html 82.4 kB +330 B (+0.4%)
website/build/blog/authors/slorber/authors/3.html 89.7 kB +330 B (+0.37%)
website/build/blog/authors/slorber/authors/4.html 76.4 kB +330 B (+0.43%)
website/build/blog/authors/yangshun.html 65.1 kB +330 B (+0.51%)
website/build/blog/authors/zpao.html 46.6 kB +330 B (+0.71%)
website/build/blog/page/2.html 79.8 kB +330 B (+0.42%)
website/build/blog/page/3.html 87.4 kB +330 B (+0.38%)
website/build/blog/page/4.html 76.8 kB +330 B (+0.43%)
website/build/blog/page/5.html 46.6 kB +330 B (+0.71%)
website/build/blog/page/6.html 29.4 kB +330 B (+1.14%)
website/build/blog/preparing-your-site-for-docusaurus-v3.html 124 kB +334 B (+0.27%)
website/build/blog/releases/2.2.html 49.4 kB +330 B (+0.67%)
website/build/blog/releases/2.3.html 59.8 kB +330 B (+0.56%)
website/build/blog/releases/2.4.html 63.3 kB +330 B (+0.52%)
website/build/blog/releases/3.0.html 103 kB +342 B (+0.33%)
website/build/blog/releases/3.1.html 52.5 kB +331 B (+0.63%)
website/build/blog/releases/3.2.html 48.1 kB +330 B (+0.69%)
website/build/blog/releases/3.3.html 55.2 kB +330 B (+0.6%)
website/build/blog/releases/3.4.html 54.4 kB +337 B (+0.62%)
website/build/blog/releases/3.5.html 56.8 kB +331 B (+0.59%)
website/build/blog/releases/3.6.html 74.7 kB +331 B (+0.45%)
website/build/blog/releases/3.7.html 49.7 kB +331 B (+0.67%)
website/build/blog/tags.html 26.7 kB +330 B (+1.25%)
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 122 kB +330 B (+0.27%)
website/build/docs.html 46.8 kB +330 B (+0.71%)
website/build/docs/advanced.html 29 kB +330 B (+1.15%)
website/build/docs/advanced/architecture.html 28.5 kB +334 B (+1.18%)
website/build/docs/advanced/client.html 67.5 kB +330 B (+0.49%)
website/build/docs/advanced/plugins.html 52.9 kB +330 B (+0.63%)
website/build/docs/advanced/routing.html 67.7 kB +338 B (+0.5%)
website/build/docs/advanced/ssg.html 72 kB +330 B (+0.46%)
website/build/docs/api/docusaurus-config.html 182 kB +330 B (+0.18%)
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 42.9 kB +334 B (+0.79%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 34.5 kB +330 B (+0.97%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 33.5 kB +330 B (+0.99%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 34.8 kB +334 B (+0.97%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 38.3 kB +330 B (+0.87%)
website/build/docs/api/misc/@docusaurus/logger.html 37 kB +330 B (+0.9%)
website/build/docs/api/misc/create-docusaurus.html 32.2 kB +330 B (+1.04%)
website/build/docs/api/plugin-methods.html 63.2 kB +334 B (+0.53%)
website/build/docs/api/plugin-methods/extend-infrastructure.html 57.2 kB +334 B (+0.59%)
website/build/docs/api/plugin-methods/i18n-lifecycles.html 55.6 kB +334 B (+0.6%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 157 kB +330 B (+0.21%)
website/build/docs/api/plugin-methods/static-methods.html 43 kB +334 B (+0.78%)
website/build/docs/api/plugins.html 30.2 kB +330 B (+1.1%)
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 57 kB +343 B (+0.61%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 180 kB +331 B (+0.18%)
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 186 kB +331 B (+0.18%)
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 70.4 kB +330 B (+0.47%)
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 45.5 kB +342 B (+0.76%)
website/build/docs/api/plugins/@docusaurus/plugin-google-analytics.html 47 kB +333 B (+0.71%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 46.5 kB +326 B (+0.71%)
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 45.3 kB +330 B (+0.73%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 46.4 kB +334 B (+0.72%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 113 kB +334 B (+0.3%)
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 38.2 kB +330 B (+0.87%)
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 62.8 kB +336 B (+0.54%)
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 43.2 kB +330 B (+0.77%)
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 38.5 kB +342 B (+0.9%)
website/build/docs/api/themes.html 28.4 kB +330 B (+1.18%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 41.6 kB +334 B (+0.81%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 34.9 kB +332 B (+0.96%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 33.7 kB +334 B (+1%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 31.6 kB +330 B (+1.06%)
website/build/docs/api/themes/configuration.html 230 kB +328 B (+0.14%)
website/build/docs/blog.html 193 kB +336 B (+0.17%)
website/build/docs/browser-support.html 45.3 kB +330 B (+0.73%)
website/build/docs/category/getting-started.html 26.3 kB +330 B (+1.27%)
website/build/docs/category/guides.html 34.1 kB +330 B (+0.98%)
website/build/docs/cli.html 57.8 kB +330 B (+0.57%)
website/build/docs/configuration.html 89.3 kB +337 B (+0.38%)
website/build/docs/create-doc.html 57 kB +342 B (+0.6%)
website/build/docs/creating-pages.html 54.4 kB +331 B (+0.61%)
website/build/docs/deployment.html 186 kB +332 B (+0.18%)
website/build/docs/docs-introduction.html 47.8 kB +330 B (+0.7%)
website/build/docs/docs-multi-instance.html 70 kB +334 B (+0.48%)
website/build/docs/docusaurus-core.html 218 kB +330 B (+0.15%)
website/build/docs/guides/whats-next.html 30.5 kB +330 B (+1.09%)
website/build/docs/i18n/crowdin.html 133 kB +342 B (+0.26%)
website/build/docs/i18n/git.html 73.8 kB +334 B (+0.45%)
website/build/docs/i18n/introduction.html 46.2 kB +330 B (+0.72%)
website/build/docs/i18n/tutorial.html 152 kB +343 B (+0.23%)
website/build/docs/installation.html 62.1 kB +335 B (+0.54%)
website/build/docs/markdown-features.html 76.2 kB +330 B (+0.43%)
website/build/docs/markdown-features/admonitions.html 106 kB +334 B (+0.31%)
website/build/docs/markdown-features/assets.html 82.7 kB +332 B (+0.4%)
website/build/docs/markdown-features/code-blocks.html 213 kB +340 B (+0.16%)
website/build/docs/markdown-features/diagrams.html 49 kB +344 B (+0.71%)
website/build/docs/markdown-features/head-metadata.html 48 kB +330 B (+0.69%)
website/build/docs/markdown-features/links.html 38.7 kB +330 B (+0.86%)
website/build/docs/markdown-features/math-equations.html 85.9 kB +334 B (+0.39%)
website/build/docs/markdown-features/plugins.html 91.5 kB +338 B (+0.37%)
website/build/docs/markdown-features/react.html 128 kB +330 B (+0.26%)
website/build/docs/markdown-features/tabs.html 135 kB +330 B (+0.25%)
website/build/docs/markdown-features/toc.html 79 kB +334 B (+0.42%)
website/build/docs/migration.html 37.3 kB +334 B (+0.9%)
website/build/docs/migration/v2.html 37.6 kB +330 B (+0.89%)
website/build/docs/migration/v2/automated.html 38.1 kB +330 B (+0.87%)
website/build/docs/migration/v2/manual.html 183 kB +330 B (+0.18%)
website/build/docs/migration/v2/translated-sites.html 48.7 kB +330 B (+0.68%)
website/build/docs/migration/v2/versioned-sites.html 57.8 kB +338 B (+0.59%)
website/build/docs/migration/v3.html 184 kB +332 B (+0.18%)
website/build/docs/playground.html 30.4 kB +330 B (+1.1%)
website/build/docs/search.html 109 kB +331 B (+0.31%)
website/build/docs/seo.html 84.5 kB +343 B (+0.41%)
website/build/docs/sidebar.html 125 kB +337 B (+0.27%)
website/build/docs/sidebar/autogenerated.html 140 kB +343 B (+0.25%)
website/build/docs/sidebar/items.html 165 kB +330 B (+0.2%)
website/build/docs/sidebar/multiple-sidebars.html 58.8 kB +334 B (+0.57%)
website/build/docs/static-assets.html 49.3 kB +334 B (+0.68%)
website/build/docs/styling-layout.html 131 kB +331 B (+0.25%)
website/build/docs/swizzling.html 107 kB +344 B (+0.32%)
website/build/docs/typescript-support.html 58.2 kB +334 B (+0.58%)
website/build/docs/using-plugins.html 102 kB +330 B (+0.32%)
website/build/docs/versioning.html 87.6 kB +328 B (+0.38%)
website/build/index.html 35.4 kB +330 B (+0.94%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/codeTranslations.json 2 B
website/.docusaurus/docusaurus.config.mjs 28.4 kB
website/.docusaurus/globalData.json 31.9 kB
website/.docusaurus/i18n.json 930 B
website/.docusaurus/registry.js 162 kB
website/.docusaurus/routes.js 77.8 kB
website/.docusaurus/routesChunkNames.json 85.4 kB
website/.docusaurus/site-metadata.json 2.3 kB
website/build/assets/js/runtime~main.********.js 37.1 kB
website/build/docs/api/misc/docusaurus-init/index.html 361 B
website/build/docs/introduction/index.html 280 B
website/build/docs/resources/index.html 325 B
website/build/docs/support/index.html 319 B
website/build/docs/team/index.html 310 B

compressed-size-action::DOCUSAURUS_INFRA_FASTER

Copy link

github-actions bot commented Mar 13, 2025

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🔴 42 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🔴 49 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 72 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 62 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 62 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 63 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 72 🟢 100 🟢 100 🟠 86 Report

Copy link

github-actions bot commented Mar 13, 2025

Size Change: +60.9 kB (+0.52%)

Total Size: 11.7 MB

Filename Size Change
website/build/assets/css/styles.********.css 120 kB +81 B (+0.07%)
website/build/assets/js/main.********.js 795 kB +1.11 kB (+0.14%)
website/build/blog.html 78.3 kB +321 B (+0.41%)
website/build/blog/2017/12/14/introducing-docusaurus.html 66.8 kB +321 B (+0.48%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 46.1 kB +333 B (+0.73%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 50.5 kB +321 B (+0.64%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 30.4 kB +321 B (+1.07%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 41.2 kB +320 B (+0.78%)
website/build/blog/2020/01/07/tribute-to-endi.html 33.9 kB +321 B (+0.96%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 52.2 kB +321 B (+0.62%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 48.4 kB +320 B (+0.66%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 49.3 kB +321 B (+0.66%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 55.8 kB +333 B (+0.6%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 44.5 kB +321 B (+0.73%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 135 kB +663 B (+0.49%)
website/build/blog/2022/09/01/docusaurus-2.1.html 51.9 kB +320 B (+0.62%)
website/build/blog/archive.html 24.6 kB +321 B (+1.32%)
website/build/blog/authors.html 52 kB +321 B (+0.62%)
website/build/blog/authors/j-marcey.html 71.9 kB +321 B (+0.45%)
website/build/blog/authors/josh-cena.html 48.3 kB +321 B (+0.67%)
website/build/blog/authors/lex-111.html 57.2 kB +321 B (+0.56%)
website/build/blog/authors/slorber.html 81.8 kB +321 B (+0.39%)
website/build/blog/authors/slorber/authors/2.html 85.4 kB +321 B (+0.38%)
website/build/blog/authors/slorber/authors/3.html 93 kB +321 B (+0.35%)
website/build/blog/authors/slorber/authors/4.html 79.3 kB +321 B (+0.41%)
website/build/blog/authors/yangshun.html 67.9 kB +321 B (+0.48%)
website/build/blog/authors/zpao.html 48.8 kB +321 B (+0.66%)
website/build/blog/page/2.html 82.7 kB +321 B (+0.39%)
website/build/blog/page/3.html 90.5 kB +321 B (+0.36%)
website/build/blog/page/4.html 79.6 kB +321 B (+0.4%)
website/build/blog/page/5.html 48.7 kB +321 B (+0.66%)
website/build/blog/page/6.html 31.1 kB +321 B (+1.04%)
website/build/blog/preparing-your-site-for-docusaurus-v3.html 129 kB +320 B (+0.25%)
website/build/blog/releases/2.2.html 51.8 kB +321 B (+0.62%)
website/build/blog/releases/2.3.html 62.4 kB +321 B (+0.52%)
website/build/blog/releases/2.4.html 66.1 kB +321 B (+0.49%)
website/build/blog/releases/3.0.html 108 kB +333 B (+0.31%)
website/build/blog/releases/3.1.html 54.7 kB +322 B (+0.59%)
website/build/blog/releases/3.2.html 50.4 kB +321 B (+0.64%)
website/build/blog/releases/3.3.html 57.7 kB +321 B (+0.56%)
website/build/blog/releases/3.4.html 56.9 kB +328 B (+0.58%)
website/build/blog/releases/3.5.html 59.3 kB +322 B (+0.55%)
website/build/blog/releases/3.6.html 77.8 kB +322 B (+0.42%)
website/build/blog/releases/3.7.html 52.1 kB +322 B (+0.62%)
website/build/blog/tags.html 28.4 kB +321 B (+1.14%)
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 126 kB +321 B (+0.25%)
website/build/docs.html 48.8 kB +321 B (+0.66%)
website/build/docs/advanced.html 30.6 kB +321 B (+1.06%)
website/build/docs/advanced/architecture.html 30.1 kB +325 B (+1.09%)
website/build/docs/advanced/client.html 70.3 kB +321 B (+0.46%)
website/build/docs/advanced/plugins.html 55.2 kB +321 B (+0.59%)
website/build/docs/advanced/routing.html 70.5 kB +329 B (+0.47%)
website/build/docs/advanced/ssg.html 75.2 kB +321 B (+0.43%)
website/build/docs/api/docusaurus-config.html 190 kB +321 B (+0.17%)
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 45.2 kB +325 B (+0.72%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 36.4 kB +321 B (+0.89%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 35.3 kB +321 B (+0.92%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 36.7 kB +325 B (+0.89%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 40.3 kB +321 B (+0.8%)
website/build/docs/api/misc/@docusaurus/logger.html 38.8 kB +321 B (+0.83%)
website/build/docs/api/misc/create-docusaurus.html 33.8 kB +321 B (+0.96%)
website/build/docs/api/plugin-methods.html 65.8 kB +325 B (+0.5%)
website/build/docs/api/plugin-methods/extend-infrastructure.html 59.7 kB +325 B (+0.55%)
website/build/docs/api/plugin-methods/i18n-lifecycles.html 57.9 kB +325 B (+0.56%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 162 kB +321 B (+0.2%)
website/build/docs/api/plugin-methods/static-methods.html 44.9 kB +325 B (+0.73%)
website/build/docs/api/plugins.html 31.9 kB +321 B (+1.02%)
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 59.8 kB +334 B (+0.56%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 188 kB +322 B (+0.17%)
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 194 kB +322 B (+0.17%)
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 74.1 kB +321 B (+0.44%)
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 47.7 kB +333 B (+0.7%)
website/build/docs/api/plugins/@docusaurus/plugin-google-analytics.html 49.3 kB +324 B (+0.66%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 48.8 kB +317 B (+0.65%)
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 47.6 kB +321 B (+0.68%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 48.9 kB +325 B (+0.67%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 118 kB +325 B (+0.28%)
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 40.2 kB +321 B (+0.8%)
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 65.7 kB +327 B (+0.5%)
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 45.4 kB +321 B (+0.71%)
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 40.6 kB +333 B (+0.83%)
website/build/docs/api/themes.html 29.9 kB +321 B (+1.08%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 43.8 kB +325 B (+0.75%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 36.7 kB +323 B (+0.89%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 35.5 kB +325 B (+0.92%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 33.3 kB +321 B (+0.97%)
website/build/docs/api/themes/configuration.html 257 kB +15.7 kB (+6.52%) 🔍
website/build/docs/blog.html 200 kB +327 B (+0.16%)
website/build/docs/browser-support.html 47.6 kB +321 B (+0.68%)
website/build/docs/category/getting-started.html 27.8 kB +321 B (+1.17%)
website/build/docs/category/guides.html 35.9 kB +321 B (+0.9%)
website/build/docs/cli.html 61.4 kB +321 B (+0.53%)
website/build/docs/configuration.html 93 kB +328 B (+0.35%)
website/build/docs/create-doc.html 59.5 kB +333 B (+0.56%)
website/build/docs/creating-pages.html 56.8 kB +322 B (+0.57%)
website/build/docs/deployment.html 193 kB +323 B (+0.17%)
website/build/docs/docs-introduction.html 50.1 kB +321 B (+0.64%)
website/build/docs/docs-multi-instance.html 73.3 kB +325 B (+0.45%)
website/build/docs/docusaurus-core.html 226 kB +321 B (+0.14%)
website/build/docs/guides/whats-next.html 32.3 kB +321 B (+1%)
website/build/docs/i18n/crowdin.html 139 kB +333 B (+0.24%)
website/build/docs/i18n/git.html 77.2 kB +325 B (+0.42%)
website/build/docs/i18n/introduction.html 48.4 kB +321 B (+0.67%)
website/build/docs/i18n/tutorial.html 158 kB +334 B (+0.21%)
website/build/docs/installation.html 65 kB +326 B (+0.5%)
website/build/docs/markdown-features.html 79.2 kB +321 B (+0.41%)
website/build/docs/markdown-features/admonitions.html 111 kB +325 B (+0.29%)
website/build/docs/markdown-features/assets.html 86.7 kB +323 B (+0.37%)
website/build/docs/markdown-features/code-blocks.html 221 kB +331 B (+0.15%)
website/build/docs/markdown-features/diagrams.html 51.5 kB +335 B (+0.65%)
website/build/docs/markdown-features/head-metadata.html 50.4 kB +321 B (+0.64%)
website/build/docs/markdown-features/links.html 40.7 kB +321 B (+0.79%)
website/build/docs/markdown-features/math-equations.html 89.9 kB +325 B (+0.36%)
website/build/docs/markdown-features/plugins.html 95.3 kB +329 B (+0.35%)
website/build/docs/markdown-features/react.html 134 kB +321 B (+0.24%)
website/build/docs/markdown-features/tabs.html 141 kB +321 B (+0.23%)
website/build/docs/markdown-features/toc.html 82.4 kB +325 B (+0.4%)
website/build/docs/migration.html 39.3 kB +320 B (+0.82%)
website/build/docs/migration/v2.html 39.4 kB +321 B (+0.82%)
website/build/docs/migration/v2/automated.html 40.1 kB +321 B (+0.81%)
website/build/docs/migration/v2/manual.html 191 kB +321 B (+0.17%)
website/build/docs/migration/v2/translated-sites.html 51 kB +321 B (+0.63%)
website/build/docs/migration/v2/versioned-sites.html 60.3 kB +329 B (+0.55%)
website/build/docs/migration/v3.html 192 kB +323 B (+0.17%)
website/build/docs/playground.html 32 kB +321 B (+1.01%)
website/build/docs/search.html 113 kB +322 B (+0.29%)
website/build/docs/seo.html 88.4 kB +334 B (+0.38%)
website/build/docs/sidebar.html 130 kB +328 B (+0.25%)
website/build/docs/sidebar/autogenerated.html 145 kB +334 B (+0.23%)
website/build/docs/sidebar/items.html 172 kB +321 B (+0.19%)
website/build/docs/sidebar/multiple-sidebars.html 61.8 kB +325 B (+0.53%)
website/build/docs/static-assets.html 51.7 kB +325 B (+0.63%)
website/build/docs/styling-layout.html 136 kB +322 B (+0.24%)
website/build/docs/swizzling.html 111 kB +335 B (+0.3%)
website/build/docs/typescript-support.html 60.8 kB +325 B (+0.54%)
website/build/docs/using-plugins.html 106 kB +321 B (+0.3%)
website/build/docs/versioning.html 91.4 kB +319 B (+0.35%)
website/build/index.html 37.2 kB +321 B (+0.87%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/codeTranslations.json 2 B
website/.docusaurus/docusaurus.config.mjs 28.4 kB
website/.docusaurus/globalData.json 31.9 kB
website/.docusaurus/i18n.json 930 B
website/.docusaurus/registry.js 162 kB
website/.docusaurus/routes.js 77.8 kB
website/.docusaurus/routesChunkNames.json 85.4 kB
website/.docusaurus/site-metadata.json 2.3 kB
website/build/assets/js/runtime~main.********.js 36.4 kB
website/build/docs/api/misc/docusaurus-init/index.html 361 B
website/build/docs/introduction/index.html 280 B
website/build/docs/resources/index.html 325 B
website/build/docs/support/index.html 319 B
website/build/docs/team/index.html 310 B

compressed-size-action::DOCUSAURUS_INFRA_SLOWER

@slorber slorber merged commit 7cf94c0 into main Mar 14, 2025
37 of 38 checks passed
@slorber slorber deleted the slorber/theme-color-scheme-os branch March 14, 2025 12:45
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Mar 14, 2025
@Zwyx
Copy link
Contributor

Zwyx commented Mar 17, 2025

Super happy to see that 🥳 thank you! Very well done also (inline scripts to avoid the fouc, etc. 💯)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release. pr: new feature This PR adds a new API or behavior.
Projects
None yet
3 participants