wevisdemo / design-systems

WeVis monorepo for design system documentation and cross-framework UI components
https://wevisdemo.github.io/design-systems/
MIT License
16 stars 2 forks source link

CSS splitting per component #11

Closed Th1nkK1D closed 1 year ago

Th1nkK1D commented 1 year ago

Since CookieConsent will be used in the PunchUp project, splitting CSS for each component will allow the developer to import only necessary stylesheets.

Current usage

import '@wevisdemo/ui/styles/index.css';

Expectation

/* Required typography utility classes */
import '@wevisdemo/ui/styles/typography.css';

/* Used components */
import '@wevisdemo/ui/styles/cookie-consent.css';
import '@wevisdemo/ui/styles/button.css';

Note that the index.css should be kept the same.

rootEnginear commented 1 year ago

Fixed in 8d8a33aa39cbe34ee650ec65084651a036899033 and b96be6f1f5e8144a41125ab18c3058d053bc33ef