Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 836 Bytes

File metadata and controls

28 lines (23 loc) · 836 Bytes

Code to get all color name in css formate name from https://flatuicolors.com/ of specific country

-----by Row First-----

c = document.getElementsByClassName("color");
ar=[]
for(let i=0;i<c.length;i++){
    ar.push("--"+c[i].innerText.toLowerCase().replaceAll(" ","-").replaceAll("'",""));
}
console.log(ar.toLocaleString().replaceAll(",","\n"))

-----by Column First-----

c = document.getElementsByClassName("color");
ar=[]
for(let i=0;i<5;i++){
    for (j=0;j<4;j++){
        ar.push("--"+c[i+5*j].innerText.toLowerCase().replaceAll(" ","-").replaceAll("'",""));
    }
}
console.log(ar.toLocaleString().replaceAll(",","\n"))

bootstrap 4 https://getbootstrap.com/docs/4.0/getting-started/download/

bootstrap 5 https://getbootstrap.com/docs/5.0/getting-started/download/