bitcrowd / bitstyles

A complete design system, with base styles and components, built in Sass using CSS variables
https://bitcrowd.github.io/bitstyles
ISC License
16 stars 0 forks source link

Simplify imports #761

Closed planktonic closed 1 year ago

planktonic commented 1 year ago

Right now we there are only two options when importing bitstyles in a project (ignoring the legacy @import):

A middle ground would be great — perhaps adding an index file (index.scss) to each layer to allow importing of all atoms, all molecules, all utilities each in one go? Something like:

@use "~bitstyles/atoms";
@use "~bitstyles/molecules";
@use "~bitstyles/utilities";

How would that work with overrides, can we @foward the configuration for each module?