Skip to content

Commit

Permalink
Dark mode (#278)
Browse files Browse the repository at this point in the history
Fixes #270

This is a first attempt; I am no designer so this is the minimal amount
of CSS I could touch.

![Captura de Pantalla 2024-02-26 a las 22 09
21](https://github.com/arrow-kt/arrow-website/assets/309334/197fca77-0f0a-4383-8ddb-4fda3e690c72)
  • Loading branch information
serras committed Mar 28, 2024
1 parent 1925a1e commit 1f693fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const createConfig = async () => {
image: '/img/social-card.jpg',
colorMode: {
defaultMode: 'light',
disableSwitch: true,
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
Expand Down
6 changes: 6 additions & 0 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
--search-local-icon-stroke-width: 1;
}

[data-theme="dark"]:root {
--arrow-grey-primary: rgb(218, 221, 225);
--arrow-grey-secondary: rgb(218, 221, 225);
--ifm-footer-background-color: var(--ifm-color-black);
}

.plugin-blog {
--ifm-avatar-photo-size: 2rem;
}
Expand Down

0 comments on commit 1f693fa

Please sign in to comment.