Skip to content

Commit

Permalink
website: improve dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Dec 12, 2024
1 parent 815b983 commit 06dd7bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ const config: Config = {
title: "React DayPicker",
logo: {
alt: "DayPicker Logo",
src: "img/logo.png"
src: "img/logo.png",
srcDark: "img/logo-dark.png"
},
items: [
{
Expand Down
14 changes: 7 additions & 7 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@

/* For readability concerns, you should choose a lighter palette in dark mode. */
html[data-theme="dark"] {
--ifm-color-primary: #00c7fc;
--ifm-color-primary-dark: #00b3e3;
--ifm-color-primary-darker: #00a9d6;
--ifm-color-primary-darkest: #008bb0;
--ifm-color-primary-light: #16ceff;
--ifm-color-primary-lighter: #23d1ff;
--ifm-color-primary-lightest: #49d9ff;
--ifm-color-primary: #4a8cf8;
--ifm-color-primary-dark: #2681f7;
--ifm-color-primary-darker: #1679f6;
--ifm-color-primary-darkest: #0862d5;
--ifm-color-primary-light: #62a5f9;
--ifm-color-primary-lighter: #72adfa;
--ifm-color-primary-lightest: #9fc8fb;

--ifm-table-background: rgba(0, 0, 0, 0.1);
--ifm-table-border-color: var(--ifm-color-emphasis-100);
Expand Down
Binary file added website/static/img/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06dd7bc

Please sign in to comment.