Replacing Svelte class names with emojis for fun and profit

Svelte tags every component with class names that look like svelte-abc123. But doesn't that seem wasteful? It makes your HTML and CSS larger just to scope styles.

You can customize this behavior by setting cssHash. I played around with a few options:

But then I tried emojis. The profit: they were instantly recognizable, letting you both use them to identify which elements belonged to which components or tune them out, plus were smaller than the default svelte-abc123. The fun:

Button demo HTML Slider demo HTML Theme demo HTML

They also happened to be poetically accurate. 💅 for the theme settings, 🛗 for the arrow icon, 📺 for the demo section...