Giter VIP home page Giter VIP logo

Comments (8)

donfiguerres avatar donfiguerres commented on May 24, 2024 2

I'm experimenting with using DarkReader to enable dark mode in toha. My branch is here.
So far, the result is pretty decent. Not sure if that's biased because I'm using the DarkReader browser plugin. I think a native CSS for dark mode is faster but still, this gets the job done with minimal effort.

image
image

Website URL: https://donfiguerres.github.io/

from toha.

donfiguerres avatar donfiguerres commented on May 24, 2024 1

Hi everyone! I've made a pull request to support dark theme via darkreader. Hoping that it gets approved.
I'm planning to add it to the toha documentation if the pull request gets approved.

from toha.

alex-bezek avatar alex-bezek commented on May 24, 2024

@hossainemruz FWIW this is what it does to my site
Before
image
image

After
image
image

I think largely it does the job well but there are a few sets of text that need some attention in order for their contrast ratio to be high enough. i assume if we figure those out we could easily turn this on with a feature flag in the config.yml to make this passive?

from toha.

yeganathan18 avatar yeganathan18 commented on May 24, 2024

Hey @hossainemruz can you please tell me for darkmode in which CSS file should be the following code added,

html[theme='dark-mode'] {
    filter: invert(1) hue-rotate(180deg);
}

from toha.

hossainemruz avatar hossainemruz commented on May 24, 2024

I am not sure yet @Yeganathan. Probably, @alex-bezek can help.

from toha.

yeganathan18 avatar yeganathan18 commented on May 24, 2024

Thanks for the reply! @hossainemruz , Let me check with @alex-bezek

from toha.

alex-bezek avatar alex-bezek commented on May 24, 2024

@yeganathan18 if you add a css file to this location, it will get picked up and included in the build
https://github.com/alex-bezek/blog/blob/master/static/assets/css/style.css

from toha.

yeganathan18 avatar yeganathan18 commented on May 24, 2024

@alex-bezek Thanks for the help :)

from toha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.