Coder Social home page Coder Social logo

Dark mode about attila HOT 7 CLOSED

tonilampela avatar tonilampela commented on May 23, 2024 2
Dark mode

from attila.

Comments (7)

zutrinken avatar zutrinken commented on May 23, 2024 1

The latest version has a Dark Mode feature.

from attila.

zutrinken avatar zutrinken commented on May 23, 2024 1

@joejlam You have to edit the src/sass/style.scss and remove all @media (prefers-color-scheme: dark) {...} ... afterwards you recompile the SASS with Grunt, as described in the readme.

from attila.

zutrinken avatar zutrinken commented on May 23, 2024

Ghost just has a dark mode for their backend but no theme setting option. You can detect the OS setting with media queries. Works in FF & Safari so far.

@media (prefers-color-scheme: light) {

}

@media (prefers-color-scheme: dark) {

}

It needs a lot of rewrite, but actually sounds like nice feature. Let's see what or when I can have deeper look into that.

from attila.

fesoliveira014 avatar fesoliveira014 commented on May 23, 2024

Yeah, I just upgraded to Ghost 3.0 and I was really confused by the fact that Casper did not have a toggle for dark/light mode. I had to rebuild the theme enabling dark mode as the standard mode. It would be cool if Attila had this feature :)

from attila.

iMagdy avatar iMagdy commented on May 23, 2024

Yeah, I just upgraded to Ghost 3.0 and I was really confused by the fact that Casper did not have a toggle for dark/light mode. I had to rebuild the theme enabling dark mode as the standard mode. It would be cool if Attila had this feature :)

Casper 3 detects dark mode using prefers-color-scheme, try enabling dark mode in your OS

from attila.

fesoliveira014 avatar fesoliveira014 commented on May 23, 2024

I did, but on Linux and Android it was not working, so I had to recompile the theme and force it to be in dark mode all the time.

from attila.

joejlam avatar joejlam commented on May 23, 2024

@zutrinken I absolutely love the Attila theme. How can I disable this Dark Mode feature globally?

from attila.

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.