<div class="container">
  <h2>Buttons</h2>
  <button class="foo">
    Button with blue background and white text
  </button>
  <button class="bar">
    Button with yellow background and black text
  </button>

  <button class="unset foo bar">
    Button with all unset property and multiple classes
  </button>

  <h2>Inputs</h2>
  <input type="text" value="input with foo class" class="foo">
  <input type="text" value="input with bar class" class="bar">
  <input type="text" value="input with foo, bar, bla class" class="unset foo bar">

</div>
.foo {
  background-color: blue;
}

.bar {
  background-color: yellow;
  color: black;
}

.unset {

/*   the property below will reset property previously defined */
  all: unset;
  /*   just for demo */
  outline: 1px solid lightgray;
  color: gray;
}


.container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 14px;
  align-items: flex-start;
}
button {
  display: block;
  padding: 1em;

  color: white;
  background-color: green;
  border: none;
  border-radius: 0.5em;
}
input {
  display: block;
  color: white;
  padding: 0.5em 1em;
  border: none;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.