#css #web #system #styling #generate #css-transofrmer

bin+lib gcsst

A tool for seamlessly transforming CSS into Grimoire CSS spells

2 unstable releases

0.6.0 Nov 23, 2024
0.5.0 Oct 22, 2024

#1790 in Web programming

Download history 195/week @ 2024-10-18 16/week @ 2024-10-25 4/week @ 2024-11-01 2/week @ 2024-11-08 1/week @ 2024-11-15 165/week @ 2024-11-22 5/week @ 2024-11-29 13/week @ 2024-12-06

184 downloads per month

MIT license

28KB
628 lines

Easy Migration with Grimoire CSS Transmute (gcsst) Utility

Migrating to Grimoire CSS is simple, thanks to the Grimoire CSS Transmute utility, also known as gcsst. This CLI tool takes the paths of your built CSS files (or the content of built CSS if you’re working in a web environment) and returns a transmuted.json file in the following format:

{
  "classes": [
    {
      "name": "old-class-name",
      "spells": ["spell-1", "spell-2"],
      "oneliner": "spell-1 spell-2"
    }
  ]
}

gcsst parses the existing CSS using cssparser and automatically generates corresponding spells for each class. One of the standout features of gcsst is the structure of the transmuted.json file, particularly the classes property. It’s designed to look like the structure of a scroll, except for the oneliner property. This makes it incredibly easy to create a scroll or copy-paste the single-line class into your component with minimal effort.

By simplifying the migration process, gcsst helps you move to Grimoire CSS without hassle, and you can instantly start leveraging the power of spells.

Detailed guides are on the way. Stay tuned for updates!

Dependencies

~19–29MB
~383K SLoC