-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dark mode #5
Comments
I can help with this, I have done a lot of darkmode styling before |
I have worked on it, here below is the result It is rn just a User Stylesheet for Stylus extension. Note: you need to add the 'data-theme' attribute to 'dark' at the html element (can be done using User Stylesheet for Stylus Extension: /* ==UserStyle==
@name Minetest Blog Dark Mode
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Dark Mode
@author Miniontoby
==/UserStyle== */
@-moz-document domain("blog.minetest.net") {
:root {
--a-font: var(--navbar-background);
--a-hover: #004c70;
--background-color: #fff;
--button-background: #fff;
--button-hover: #53ac56;
--button-primary: var(--navbar-background);
--button-primary-hover: #4fa452;
--code-background: #f5f5f5;
--code-font: #292929;
--font: #4a4a4a;
--footer-background: #292929;
--grey-font: #7a7a7a;
--grey-a-font: var(--a-font);
--navbar-background: #53ac56;
--navbar-font: #fff;
}
[data-theme="dark"] {
--a-font: #433302;
--a-hover: #004c70;
--background-color: #9e9e9e;
--button-background: #a9a9a9;
--button-hover: #004c70;
--button-primary: var(--navbar-background);
--button-primary-hover: #607d8b;
--code-background: #868686;
--code-font: #0f0f0f;
--font: #111111;
--footer-background: #292929;
--grey-font: #b5b5b5;
--grey-a-font: #e3ad07;
--navbar-background: #696969;
--navbar-font: #fff;
}
html, body {
background-color: var(--background-color);
color: var(--font);
}
.navbar.is-primary {
background-color: var(--navbar-background);
color: var(--navbar-font);
}
.post .readmore {
background-image: linear-gradient(to bottom, rgba(255,255,255,0), var(--background-color));
}
a {
color: var(--a-font);
}
a:hover {
color: var(--a-hover);
}
.has-text-grey {
color: var(--grey-font);
}
.has-text-grey a {
color: var(--grey-a-font);
}
footer {
background-color: var(--footer-background);
}
code {
background-color: var(--code-background);
color: var(--code-font);
}
.button {
background-color: var(--button-background);
}
.button:hover, .button.is-hovered {
color: var(--button-hover);
}
.button.is-primary {
background-color: var(--button-primary);
}
.button.is-primary:hover, .button.is-primary.is-hovered {
background-color: var(--button-primary-hover);
}
} |
The latest version of Bulma has built in support for light/dark mode: https://bulma.io/documentation/features/themes/ |
No description provided.
The text was updated successfully, but these errors were encountered: