
Dark mode
Design
Anvil2 Figma assets utilize variables to apply light and dark mode styling. Refer to Figma’s guidance on how to switch between modes.Code
AnvilProvider usually lives at the root of the application, and includes a ThemeProvider under the hood.
To change the theme of certain components within a page, and not the entire app, use the ThemeProvider instead: