You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would result in more code, but would remove the need for the cx utility, since all classes would be added in a nicely formatted manner, and invalid values would be filtered out.
The text was updated successfully, but these errors were encountered:
Since
cx()
is executed both during compile time and runtime, it adds a slight performance overhead.One way to compile the CSS and define styles beforehand would be to use a combination of solutions:
Svelte style blocks with pre-defined classes and Post CSS
@apply
Instead of writing
we could replace the
cx()
helper by defining the classes at compile time.This would result in more code, but would remove the need for the cx utility, since all classes would be added in a nicely formatted manner, and invalid values would be filtered out.
The text was updated successfully, but these errors were encountered: