minor refactor

This commit is contained in:
lindsaym-fa
2025-11-10 16:14:24 -05:00
parent b57225d5b0
commit c3ddc303cc

View File

@@ -243,10 +243,12 @@
// Update theme and palette names in CDN instructions
themeNames.forEach(instance => {
instance.textContent = `${theme.charAt(0).toUpperCase() + theme.slice(1)}`;
instance.textContent = theme;
instance.style.textTransform = 'capitalize';
});
paletteNames.forEach(instance => {
instance.textContent = `${palette.charAt(0).toUpperCase() + palette.slice(1)}`;
instance.textContent = palette;
instance.style.textTransform = 'capitalize';
});
// Match color picker icons to selected palette and color