✨ added portfolio and began blog
This commit is contained in:
@@ -307,15 +307,15 @@ export async function init() {
|
||||
// TODO: ... | add theme cookie
|
||||
set("Catppuccin", "Mocha");
|
||||
update();
|
||||
};
|
||||
}
|
||||
|
||||
export async function set(theme, variant) {
|
||||
current = constants.palettes[theme][variant];
|
||||
};
|
||||
}
|
||||
|
||||
export async function update() {
|
||||
document.documentElement.style.setProperty('--background-color', current.base);
|
||||
for (let key in current) {
|
||||
document.documentElement.style.setProperty(`--${key}`, hexToRgb(current[key]).rgb);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user