Skip to content

v4 @theme vs. @theme inline #18560

Discussion options

You must be logged in to vote

TL;DR: With @theme inline, you are responsible for providing the variable override, since the variable does not exist globally.
In contrast, with @theme, the value is embedded into a global variable, which means its value can be overridden later.

Related:

So, @theme and @theme inline can be used together - and in fact, you can declare them in multiple places.

Additionally, I would declare styles for different variants using @variant, either inside *, :root, or :host. You can read more about which one to use in this question:

I…

Replies: 1 comment 1 reply

Comment options

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

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