mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 20:32:42 +02:00
feat: update website & init template palette to pass WCAG test; include contrast check in ColorGenerator (#5822)
* docs: update website palette to pass WCAG test * Darker palette in light mode * Fix CodeBlock * Fix front page * Fix announcement color * Unify primary color * Add contrast check in website * Fix color input not updating * Use website for preview; allow changing background * Persist in localStorage * Fixes * Fix SSR * Edit dark mode separately * Fix light mode palette * Fix storage reset * Fix CSS * Fix * fix toggling when not on styling-layout * require 100% lighthouse accessibility score * use sessionStorage * refactor * tweak light color * update comments Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
19fb337618
commit
abdcad7316
11 changed files with 378 additions and 109 deletions
|
@ -94,10 +94,6 @@ import CodeBlock from '@theme/CodeBlock';
|
|||
When you scaffold your Docusaurus project with `create-docusaurus`, the website will be generated with basic Infima stylesheets and default styling. You can override Infima CSS variables globally.
|
||||
|
||||
```css title="/src/css/custom.css"
|
||||
/**
|
||||
* You can override the default Infima variables here.
|
||||
* Note: this is not a complete list of --ifm- variables.
|
||||
*/
|
||||
:root {
|
||||
--ifm-color-primary: #25c2a0;
|
||||
--ifm-code-font-size: 95%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue