Skip to content

Commit

Permalink
docs(a11y): move light-specific theme changes to 'light-theme' css
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Feb 9, 2022
1 parent f7301ef commit 52e85ab
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions website/src/css/custom.css
Expand Up @@ -10,31 +10,45 @@
--unleash-color-purple: #635dc5;
--unleash-color-gray: #ecebeb;

--unleash-color-admonition-background: var(--unleash-color-gray);
--unleash-color-admonition-border: #999;
--unleash-color-admonition-text: #2b2b2b;
--ifm-code-font-size: 90%;
--ifm-font-size-base: 15px;
--navbar-link-color: #122d33;
}

footer {
--ifm-footer-link-hover-color: var(--ifm-footer-link-color);
}

html[data-theme='light'] {
--ifm-color-primary: #39535b;
--ifm-color-primary-dark: #334b52;
--ifm-color-primary-darker: #30474d;
--ifm-color-primary-darkest: #283a40;
--ifm-color-primary-light: #3f5b64;
--ifm-color-primary-lighter: #425f69;
--ifm-color-primary-lightest: #4a6c76;
--ifm-code-font-size: 90%;
--ifm-font-size-base: 15px;

--ifm-link-color: var(--unleash-color-purple);
--ifm-menu-color-background-active: var(--unleash-color-gray);
--ifm-menu-color-background-hover: var(--unleash-color-gray);
--navbar-link-color: #122d33;
}

footer {
--ifm-footer-link-hover-color: var(--ifm-footer-link-color);
--unleash-color-admonition-background: var(--unleash-color-gray);
--unleash-color-admonition-border: #999;
--unleash-color-admonition-text: #2b2b2b;
}

html[data-theme='dark'] {
--ifm-color-primary: #39535b;
--ifm-color-primary-dark: #334b52;
--ifm-color-primary-darker: #30474d;
--ifm-color-primary-darkest: #283a40;
--ifm-color-primary-light: #3f5b64;
--ifm-color-primary-lighter: #425f69;
--ifm-color-primary-lightest: #4a6c76;

--ifm-link-color: #aaa5ff;

--unleash-color-admonition-background: var(--ifm-color-secondary-contrast-background);
}

[class^='docTitle'] {
Expand Down

0 comments on commit 52e85ab

Please sign in to comment.