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

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

  <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">

.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.