react-ui-org / react-ui

React UI is a themeable and performant UI library for React apps.
https://react-ui.io
MIT License
21 stars 7 forks source link

Correct the documentation of CSS usage #528

Closed adamkudrna closed 8 months ago

adamkudrna commented 8 months ago

As a result of #440, component styles are no longer part of the JS bundle. They reside in the extracted react-ui[.development].css file. Therefore:

  1. The Sass scenario is not supported now. Importing just the theme.scss, foundation.scss and helpers.scss makes no sense. Users still have to load the entire CSS bundle which is the only way to get components styles, and it already contains those global style layers.
  2. To allow tree shaking, more steps need to be taken from our side.

Closes #517.