mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
790a8aa474
Test / test (1.26.x, ubuntu-latest) (push) Has been cancelled
Test / test (1.26.x, windows-latest) (push) Has been cancelled
Closes #15017
25 lines
845 B
Plaintext
25 lines
845 B
Plaintext
# Dark mode, no mode selector: plain ".chroma" selectors.
|
|
hugo gen chromastyles --style github --mode dark
|
|
stdout '\.chroma'
|
|
! stdout '\.dark'
|
|
|
|
# Dark mode for style with no dark mode.
|
|
! hugo gen chromastyles --style friendly --mode dark
|
|
stderr 'style "friendly" does not have a "dark" mode'
|
|
|
|
# Dark mode with mode selector: ".dark .chroma".
|
|
hugo gen chromastyles --style github --mode dark --modeSelector
|
|
stdout '\.dark \.chroma'
|
|
|
|
# Light mode with mode selector: ".light .chroma".
|
|
hugo gen chromastyles --style github --mode light --modeSelector
|
|
stdout '\.light \.chroma'
|
|
|
|
# --modeSelector without --mode on a default light style.
|
|
hugo gen chromastyles --style github --modeSelector
|
|
stdout '\.light \.chroma'
|
|
|
|
# --modeSelector without --mode on a default dark style.
|
|
hugo gen chromastyles --style ashen --modeSelector
|
|
stdout '\.dark \.chroma'
|