What do I mean by "locally-scoped CSS reset"? Basically, the reset uses hashed class names that are applied in our primitive Box component based on its 'component' prop. For example, <Box component="h1"> gets the base reset class and the "h1" reset class.
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Is this that useBoxStyles({component:'input'}) thing? The component passed to boxStyles?
-
Yep, that's now we know which reset to apply without leaking out into the entire document.
- Još 3 druga odgovora
Novi razgovor -
-
-
I've used Emotion's custom cache provider to prefix ALL generated styles via Theme UI.. Solved the problem of embedding our new React app in a legacy angular page without having to deal with all the CSS styling overrides caused by the page!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
You could avoid specificity issues because you don't have anything like
#foo h1 {} or do you !important?Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
CSS Modules co-creator,
OSS / UI / design / tooling at 

