Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:4.2
-
Epic Link:
-
Team:SQuaRE
-
Urgent?:No
Description
Add light/dark theming to the squareone next.js application. Work has been done to implementing themed design tokens in the style dictionary (DM-28537), so this ticket can focus on theme implementation in the next.js app (including switching themes automatically or via user preference).
https://github.com/pacocoursey/next-themes Next themes can toggle either a data attribute or a class name on "HTML" that toggles the theming. Should be styled-components compatible.
There's also https://github.com/donavon/use-dark-mode
The thing I like about next-themes is that it considers "system" to be a state, rather than an initial default.