Skip to content

Commit

Permalink
[website] Revise some colors in darkmode
Browse files Browse the repository at this point in the history
Summary:
- Set constant colors for the "hero" and "whoUses" sections.
- Use brighter purple color for links.

Reviewed By: dulmarod

Differential Revision: D58873780

fbshipit-source-id: f9544cffe58164f5e9380bc95b83be76ad5700b2
  • Loading branch information
skcho authored and facebook-github-bot committed Jun 21, 2024
1 parent 7fe2ed6 commit 6054258
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

:root {
--ifm-color-primary: #6223b0;
--infer-purple: #6223b0;
--ifm-color-primary: var(--infer-purple);
--ifm-color-primary-dark: #58209e;
--ifm-color-primary-darker: #4e1c8d;
--ifm-color-primary-darkest: #45197b;
Expand All @@ -17,10 +18,19 @@
--ifm-code-font-size: 95%;
}

[data-theme='dark'] {
--ifm-color-primary: var(--ifm-color-primary-lightest);
}

.large-math {
vertical-align: text-bottom;
}

.hero {
--ifm-hero-text-color: var(--ifm-color-gray-0);
--ifm-hero-background-color: var(--infer-purple);
}

/* Announcement banner */

:root {
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
}

.whoUses {
color: var(--ifm-font-color-base-inverse);
background-color: var(--ifm-color-primary);
color: var(--ifm-color-gray-0);
background-color: var(--infer-purple);
padding: 4rem 0;
text-align: left;
}

.whoUses a {
color: var(--ifm-font-color-base-inverse);
color: var(--ifm-color-gray-0);
}

.whoUsesItems {
Expand Down

0 comments on commit 6054258

Please sign in to comment.