@tempera/css-types

A utility for matching CSS properties by type.

Usage no npm install needed!

<script type="module">
  import temperaCssTypes from 'https://cdn.skypack.dev/@tempera/css-types';
</script>

README

css-types

Utilities to categorize your CSS.

Installation

yarn add @tempera/css-types

Usage

const {
  // Example: matchers.SPACING
  // Contains a list of regex matchers to help match common types in CSS
  matchers,
  // example: getMatcher(postcssProperty)
  // Returns a regex matcher fitting for the provided property
  getMatcher,
  // Example: types.SPACING
  // Contains a list of common types in CSS
  types,
  // Example: getType(postcssProperty)
  // Returns a common type fitting for the provided property
  getType,
} = require("@tempera/css-types");

View the source