Change CSS variable names + create a themer #109
Merged
a3thakra
merged 5 commits from adi-create-themer
into main
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'adi-create-themer'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Try it out at https://csclub.uwaterloo.ca/~a3thakra/website-demo/themer/
06d6f61ae4
to8a021f32b2
2 years agoLooks good to me!
function getSavedPalette() {
const raw = localStorage.getItem(STORAGE_KEY);
return raw == null ? undefined : (JSON.parse(raw) as Palette);
Nit: might be better to have this function return the default palette when the it's not found in local storage, so callers don't have to worry about checking for undefined.
It's only used in 1 place rn (line 102) and I need to check if a saved version exists, so I can assign the theme name correctly. This might change later on when we actually have a dark theme.
af8c750c0c
into main 2 years agoReviewers
af8c750c0c
.