Git Product home page Git Product logo

Comments (3)

jerryc127 avatar jerryc127 commented on May 20, 2024 1

是啊 要麽向disqus 那樣自動去檢查背景色 然後選擇加載css
要麽像 utterances 那樣,提供一個function 讓主題去調用黑暗模式

@media 這種判斷 挺一刀切

from waline.

lizheming avatar lizheming commented on May 20, 2024

很多主题自带了手动切换暗黑模式的按钮,这种情况的确不太适合用媒体查询去判断。但是这种情况下主题增加的 class 是什么 waline 也不清楚,所以也不太好预设进来。目前的情况估计只能先这样了,如果你比较介意的话可以把 CSS 复写一下。

from waline.

jerryc127 avatar jerryc127 commented on May 20, 2024

我覺得可以學twikoo那樣
不用啥元素都給它顔色
就直接使用主題的就行,向 p 標簽那些

而waline只需要在一些‘需要的元素’上面,像 評論框border顔色
選用一個在暗色下和亮色下都能顯示清楚的顔色就行
這樣就不用特意去匹配夜間模式,也不用使用 media 這種一刀切的適配

from waline.

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.