spectre-css icon indicating copy to clipboard operation
spectre-css copied to clipboard

Simplify partial imports

Open davestewart opened this issue 2 years ago • 0 comments

Background

In order to import only the partials you want, currently you have to type or copy/paste multiple imports:

@import "node_modules/@spectre-org/spectre-css/src/buttons";
@import "node_modules/@spectre-org/spectre-css/src/forms";
@import "node_modules/@spectre-org/spectre-css/src/...";

As there are currently around 50 imports, it would be useful to group them by section and import them instead:

@import "node_modules/@spectre-org/spectre-css/src/all/elements";
@import "node_modules/@spectre-org/spectre-css/src/all/components";
@import "node_modules/@spectre-org/spectre-css/src/all/...";

Proposal

Tasks:

  • [ ] build groups
  • [ ] update docs

Notes

See:

  • #49

davestewart avatar Oct 14 '23 08:10 davestewart