The all CSS property resets all properties except unicode-bidi and direction to their original or inherited value.

.my-class {
    all: unset;

Now all CSS properties for .my-class are set to unset.

Possible values are:

  • initial: resets all of the selected element’s properties to their initial values as defined in the CSS spec.
  • inherit: the selected element inherits all of its parent element’s styling, including styles that are not normally inheritable.
  • unset: the selected element inherits any inheritable values passed down from the parent element. If no inheritable value is available, the initial value from the CSS spec is used for each property.