0.11.0 • Published 10 months ago

@chriswrightdesign/themer v0.11.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Themer

A project to help extract CSS property values into custom properties. Also comes with reporting tools to help understand the occurrences of property values.

Themer usage

npx @chriswrightdesign/themer -i inputfile.css

This will output a file named inputfile.processed.css that will have the custom properties.

Reporter usage

npx -p @chriswrightdesign/themer reporter -i inputfile.css -o /data

This will then output multiple csv files to /data

These include:

  • Color
  • Border colors
  • Text colors
  • Shadow colors
  • Spacing values (margin, padding, gap);
  • Border radii
  • Font sizes

Limitations

  • In order to create valid custom property names - this attempts to grab any word character and piece them together with hyphens.
  • The * in CSS is treated differently here and is replaced with _all_.
  • A sizeable CSS file will give you a LOT of custom properties.
0.10.0

10 months ago

0.11.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.1

10 months ago

0.7.0

10 months ago

0.6.3

10 months ago

0.5.3

10 months ago

0.6.4

10 months ago

0.5.2

10 months ago

0.5.1

10 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago