tomhodgins / css-package-manager

A Package Manager for CSS Extensions
26 stars 1 forks source link

What makes a 'CSS Package'? #3

Open tomhodgins opened 4 years ago

tomhodgins commented 4 years ago

What does it mean to make a 'CSS package' and what information is needed to handle it and all of its information and dependencies?

I wonder if a 'package' is defined by a CSS stylesheet in 100% valid CSS syntax, maybe using a custom at-rule like @--package to wrap a list of declarations similar to the properties defined in a package.json file for an npm module.

When a 'css package' is referenced or consumed, this stylesheet acts as the entrypoint. Inside it, the tooling that works with CSS packages should be able to learn:

Should it indicate something about the output formats or types (CSS, JavaScript, other assets generated during the process).

I've put an example for this idea at /examples/package.css

What do you think is needed for this to work?

tomhodgins commented 4 years ago

Other questions about this might be: