Replies: 1 comment 10 replies
-
The styles on each page are split up intentionally, since some styles might not be needed for all use cases (i.e. if your listbox doesn't include drag and drop, no need to include those styles). We originally included all the styles at the top of each page, but got feedback that this was overwhelming and usually included excess styles for most use cases. We now introduce styles as they are needed by section. The Vanilla CSS and Tailwind CSS starter kits are a good way to get going more quickly. The Vanilla CSS starter uses the exact styles included in the docs. I think copying these into your project as needed is a good strategy, and having them in separate files is better for separation of concerns. We may consider a CLI tool that quickly copies starters/components in the future (this was explored in #4397). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently I'm experimenting with react-aria and not sure how to deal with CSS. I look at the react-aria components page and copy the CSS from there into my react/next based app. This feels silly.
I've seen that react-aria also has a vanilla CSS starter kit. This starter kit contains all the CSS for each component separately in a .css file. I can copy all those CSS files into my app and import those. However I think there must be a better way.
How would I correctly include the bare-bone vanilla CSS as shown on the components pages of react-aria?
Beta Was this translation helpful? Give feedback.
All reactions