Comments (6)
+1 from me too, was hoping it was just a config in sass but looks like nope.
Will see if I can figure it out, will do pull if so.
from shadocs.
Hi @Dariusz1989 , indeed for now there is nothing to easily put it in dark mode, I'll have a look as soon as I can to do something about that
from shadocs.
Hey
I got it in dark mode pretty quickly...
assets/sass/theme/pre/variables.sass
$theme-writing-color: hsl(0, 0%, 90%)
$theme-white-color: hsl(0, 0%, 100%)
and I edited
@function findColorInvert($color)
@if (colorLuminance($color) > 0.55)
@return rgba(#000, 0.805)
@else
@return #fff
went from 0.7 to 0.805
I need to check my changes again. But once I did that I could set +/- inverse colors. Not full control as much as I'd like but enough to make it work for me.
from shadocs.
Perfect 😃
Well, my aim is still to implement something more complete (button to toggle the dark mode, activate it by default depending on configuration,...). So I'll keep this issue to track it
from shadocs.
Related Issues (20)
- Updated zip file for non-submodule implementation HOT 1
- [feature_request]: use prettier to format code HOT 1
- [bug]: mobile version (tablet/mobile) menu not functioning as expected HOT 2
- [feature_request]: hugo module management HOT 1
- tabbed pane: better nomenclature, more prominent documentation HOT 1
- [bug]: site with three languages: language switcher shows weird behaviour HOT 5
- [feature_request]: Mouse scrolling in left sidebar HOT 7
- [bug]: hugo server error HOT 2
- [bug]: toc is not scrolling page if openapi is contained HOT 2
- [bug]: Wrong link for "taxonomies" HOT 1
- [bug]: exampleSite fails with latest hugo version 0.112.5 HOT 1
- [bug]: Home page urls using relative paths are not working properly HOT 3
- [feature_request]: Automatically expand the sidebar after opening the article HOT 2
- [bug]: mermaid cannot be rendered HOT 7
- Trouble rendering plotly plot HOT 1
- Table styling issue HOT 4
- [feature_request]: Charts management HOT 1
- [feature_request]: Improve responsive layout HOT 3
- [feature_request]: Revise link resolution HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadocs.