Add light/dark mode toggle #2

Merged
tamagorails merged 5 commits from light-dark-mode into main 2026-09-01 17:28:41 +02:00
Owner

Implementation approach adapted from Kevin Powell's YT video

Also made decision on how to do icons from now on, namely to use icons from Iconify (specifically the Tabler icon pack), and serve them from React components by copying the JSX (in my case TSX).

Implementation approach adapted from [Kevin Powell's YT video](https://www.youtube.com/watch?v=zFFuV_vXNhY) Also made decision on how to do icons from now on, namely to use icons from Iconify (specifically the Tabler icon pack), and serve them from React components by copying the JSX (in my case TSX).
Too fussy with TypeScript; I don't think it's worth it.
- Switch to providing icons locally using JSX components, made possible by JSX generator on Iconify (selecting size: none)
- Revise convention of Props interfaces to have a separate definition to be cleaner
- Switch approach to using `&&` short-circuiting instead of `switch` statement
- Implement theme changing using data attributes and CSS
tamagorails deleted branch light-dark-mode 2026-09-01 17:28:46 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tamago-rails/tamagorails.com!2
No description provided.