mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +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
5
.github/workflows/lighthousesrc.json
vendored
5
.github/workflows/lighthousesrc.json
vendored
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"ci": {
|
||||
"assert": {
|
||||
"assertions": {
|
||||
"categories:accessibility": ["error", {"minScore": 1}]
|
||||
}
|
||||
},
|
||||
"collect": {
|
||||
"settings": {
|
||||
"skipAudits": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue