[Resolved] Minimal Starter Template With Automatic Dark Mode

Home Forums Support [Resolved] Minimal Starter Template With Automatic Dark Mode

Home Forums Support Minimal Starter Template With Automatic Dark Mode

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1109394
    m1qnet

    Dark mode for GeneratePress done minimally.

    I made an ultra-minimal starter site template for the dark mode gang. It comes with an automatic dark mode for supported systems and browsers. The template heavily relies on `prefers-color-scheme’ CSS media feature.

    I showed it to Tom the other day, and he said it’s cool to share this with the community.

    Demo: jot.sh

    Key features of Jot:

    – Automatic dark mode. Follows Google’s best practices.
    – Grayscale filter while in dark mode. Applicable to img, code, kbd, pre, samp, and blockquote.

    How to import Jot.

    Step 1: Download the JSON file and import it to your GeneratePress settings. Accessible via Dashboard → Appearance → GeneratePress → Import Settings.

    Step 2: Copy and paste this CSS to the Additional CSS section. Accessible via Dashboard → Appearance → Customize → Additional CSS.

    Improvise the settings and style accordingly.

    #1109669
    Leo
    Staff
    Customer Support

    Thanks for sharing 🙂

    #1218368
    Junior Gong

    Just a follow up: is this still working?

    #1218674
    Leo
    Staff
    Customer Support

    I believe so. We haven’t implemented before so I’m not sure.

    Worth gibing a shot I think.

    #1405337
    m1qnet
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.