Skip to content
Discussion options

You must be logged in to vote

Hi! Welcome to the community.

Difference Between Document and Root

Root is CSS file. But if you have non-CSS file, where it could be multiple CSS blocks (like many <style> in HTML, or many styled blocks in React’s CSS-in-JS) we can use Document to wrap multiple Root together.

I also don't understand what happens with inputs when I push a Root to a Document and how that differs from pushing it directly to nodes.

It is better to set input manually to all new nodes

Optional: Multifile sources

You can create a single Document with Root for every inline style and separate file stylesheets. Of course, those Root‘s will have a different input, since filename of separate file stylesheets wi…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@blyedev
Comment options

@ai
Comment options

ai Nov 17, 2024
Maintainer

@blyedev
Comment options

@ai
Comment options

ai Nov 17, 2024
Maintainer

@blyedev
Comment options

Answer selected by blyedev
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