99.10.0 • Published 4 years ago

@temporg/postcss-themeable-styles v99.10.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

category: packages

postcss-themeable-styles

npm  build-status  MIT License  Code of Conduct

For use with @temporg/babel-plugin-themeable-styles, converts CSS variables into ES template tokens:

Given:

/* style.css */
.root {
  background: var(--background);
  color: var(--color);

  &:hover {
    background: var(--hoverBackground);
    color: var(--hoverColor);
  }
}

Output:

/* style.css */
.root {
  background: ${theme.background};
  color: ${theme.color};

  &:hover {
    background: ${theme.hoverBackground};
    color: ${theme.hoverColor};
  }
}

Installation

yarn add --dev @temporg/postcss-themeable-styles

Usage

postcss([ require('@temporg/postcss-themeable-styles') ])
99.10.0

4 years ago

99.9.0

4 years ago

99.8.0

4 years ago

99.6.0

4 years ago

99.7.0

4 years ago

99.4.0

4 years ago

99.5.0

4 years ago

99.3.0

4 years ago

99.2.0

4 years ago

99.1.0

4 years ago

99.0.1

4 years ago

0.8.12

4 years ago

0.8.11

4 years ago

0.8.9

4 years ago

0.8.0

4 years ago

0.0.1

4 years ago