As I am diving into making many UI components for my Svelte apps, it seems like it’s really hard to avoid inline styling in CSS, especially when it comes to dynamic values like width, background-color, or font sizes. It’s no big deal as the guide seems to do so (https://svelte.dev/tutorial/dimensions), but not very pleasant to see all the inline styling in the HTML. I also thought of using css variables(https://svelte.dev/repl/bb42c17d585b4236824e1d5e48fe92b5?version=3.38.0) , but it gets complicated as the component gets larger, and complex.
I looked up on the HTML of documentation on the Sveltekit website. Surprisingly, they don’t have any inline CSS, all is the classes, well-organized, no inline styling whatsoever. Is there something I am missing form the documentation? I want to know how they would even make it possible to zip the dynamic values into the classes, never use the inline styling.