Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 966 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 966 Bytes

darkmode

Darkmode support.

Setup

Add Git submodule

$ git submodule add https://github.com/webpagine/darkmode templates/darkmode

Add to env.yaml

Example:

templates:
  darkmode: "templates/darkmode"

Usage

Exported templates

Template Key Args Description
head None Include required assets.
use None Place a dark mode toggle button.

CSS selectors

CSS Selector Description
theme-light Light theme.
theme-dark Dark theme.
button-dark-mode-toggle Be used on Dark Mode Toggle Button HTML element.