Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.5 KB

THEME.md

File metadata and controls

43 lines (34 loc) · 1.5 KB

You can edit your own theme colors with Theme Creator

/*
    Edit the JSON below
*/
let SS = 
`
{
     "--theme-bg-color": "#294936",
     "--theme-primary-color": "#212922",
     "--theme-secondary-color": "#294936",
     "--theme-color-muted": "#5B8266",
     "--theme-text-color": "#fff",
     "--theme-extra-color": "#000",
     "--theme-border-color": "rgba(174, 246, 199, 1)",
     "--theme-caret-color": "#cc99cd",
     "--theme-alert-color": "rgba(255, 255, 255, 0.8)",
     "--theme-cristal-color": "rgba(0, 0, 0, 0.3)",
     "--theme-footer-color": "rgba(255, 255, 255, 0.8)",
     "class": "night"
}
`;

/*
    Inner code to import colors
*/

let parse = JSON.parse(SS);
    
for(let i in parse) {
    document.body.style.setProperty(i, parse[i]);
}

document.body.removeAttribute('class');
document.body.classList.add(parse.class);

// Now run "run 0"
// Now run "theme export"