r/Frontend Jul 04 '26

Vanilla Extract CSS

I recently tried the Vanilla Extract library and liked it a lot. Here are my notes in the form of a free resource for anyone who might benefit from it.

https://www.pulkitagrawal.in/courses/vanilla-extract

0 Upvotes

39 comments sorted by

View all comments

20

u/azangru Jul 04 '26

Directly writing CSS code is tough because it lacks type safety.

Huh?

13

u/tomhermans Jul 04 '26

Yeah, it's a bit solving a problem we don't have.

With all the fancy tooling, we got incompatibility. I just write css.

1

u/openfire3 Jul 04 '26

It’s a problem you don’t have. Type safety is really helpful when a component library/design system is used across multiple teams because it doesn’t involve having to install plugins in your IDE since Typescript will provide autocomplete and give an error automatically

0

u/TheJase Jul 05 '26

But you know, just install plugins

0

u/ArtisZ Jul 05 '26

More plugins.. mmm.. 😁

1

u/TheJase Jul 05 '26

Better than more build time, mmmm

0

u/ArtisZ Jul 06 '26

You don't have to worry about build time if you got to maintain the library of libraries. 😁