Skip to content

Where is located the style for Vanilla CSS used in Starter kits? #6162

Answered by snowystinger
artola asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is what you're looking for

let theme = fs.readFileSync('packages/@react-aria/example-theme/src/index.css', 'utf8');

which shows us the theme is defined here https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/example-theme/src/index.css

and then the actual CSS if we open the starter shows and import from that theme, plus some styles and selectors
Downloads/react-aria-starter.48e54b651/src/Button.css
This CSS matches the expanded CSS under the examples on the docs page you linked to. https://react-spectrum.adobe.com/react-aria/Button.html

We pull the CSS out of our docs and plac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@artola
Comment options

Answer selected by artola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants