Flavors
Nightwire ships three dark flavors and one light flavor. The theme control in the header changes this site; the samples below keep their own flavor.
- Abyss
#080720 - Nocturne
#14093e - Twilight
#271a4b - Lumen
#eae6ff
Scope flavor and accent independently
Section titled “Scope flavor and accent independently”data-flavor on <html> sets the page palette. The same attribute on a child element creates a local palette, including semantic roles. Without an explicit flavor the CSS defaults to Nocturne.
data-accent accepts any palette accent. It substitutes the primary intent and focus ring without changing the flavor or the other intent roles.
<html lang="en" data-flavor="nocturne"> <body> <section data-flavor="lumen" data-accent="ice"> <button class="nw-btn nw-btn-primary" type="button">Connect</button> </section> </body></html>Plain CSS does not remember a choice. The Astro integration and Starlight plugin apply the visitor’s preference before first paint.