This script is a simple tool to stylize the HTML button tags based on their classes.
<button class="btn btn-green btn-block">Submit</button>
<button class="btn btn-green btn-lg btn-rounded">Submit</button>
<button class="btn btn-outline-green">Submit</button>
<button class="btn btn-outline-green btn-lg btn-rounded">Submit</button>
<button class="btn btn-outline-link btn-block">Submit</button>
const STYLE = {
// ...default style...
'btn-pink': {
'background-color': 'pink'
}
}
Note: the "btn" class is mandatory if you want to use the script styles.
.btn-green
.btn-red
.btn-orange
.btn-blue
.btn-link // This does not show the background
.btn-outline-green
.btn-outline-red
.btn-outline-orange
.btn-outline-blue
.btn-outline-link
.btn-sm
.btn-lg
.btn-block
.btn-rounded
.btn {
font-family: FontName;
}
or
const STYLE = {
'btn': {
'font-family': 'FontName'
}
}
https://flatuicolors.com/palette/de
https://coolors.co/ef476f-ffbc1f-05c793-139fcd-052b38
And, obviously, I got inspired by Bootstrap (: