Skip to content

Commit

Permalink
docs: add light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Almouro committed Oct 28, 2024
1 parent 2f31d88 commit 2656d5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const config = {
logo: {
href: "https://flashlight.dev",
alt: "Flashlight",
src: "img/logo.svg",
src: "img/logo-black.svg",
srcDark: "img/logo.svg",
},
items: [
{
Expand Down Expand Up @@ -129,10 +130,6 @@ const config = {
colorMode: {
// "light" | "dark"
defaultMode: "dark",

// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: true,
},
}),
};
Expand Down
8 changes: 6 additions & 2 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@
--ifm-heading-color: rgba(255, 255, 255);
--ifm-heading-font-family: "Merriweather", serif;
--ifm-menu-color: rgba(200, 200, 200);

.menu__link {
color: rgba(255, 255, 255);
}
}

.menu__link {
color: rgba(255, 255, 255);
[data-theme="light"] {
--ifm-color-primary: #ff039b;
}

.menu__list .menu__list .menu__link {
Expand Down

0 comments on commit 2656d5e

Please sign in to comment.