FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Vanilla Extract Has a Free API You're Not Using
How-ToWeb Development

Vanilla Extract Has a Free API You're Not Using

via Dev.to ReactAlex Spinov4h ago

Vanilla Extract generates zero-runtime CSS from TypeScript at build time. You get full type safety for your styles without any runtime cost. The Free APIs You're Missing 1. Sprinkles — Atomic CSS with Type Safety // sprinkles.css.ts import { defineProperties , createSprinkles } from " @vanilla-extract/sprinkles " ; const responsiveProperties = defineProperties ({ conditions : { mobile : {}, tablet : { " @media " : " (min-width: 768px) " }, desktop : { " @media " : " (min-width: 1024px) " }, }, defaultCondition : " mobile " , properties : { display : [ " none " , " flex " , " grid " , " block " ], flexDirection : [ " row " , " column " ], gap : { 0 : 0 , 1 : " 4px " , 2 : " 8px " , 3 : " 16px " , 4 : " 24px " }, padding : { 0 : 0 , 1 : " 4px " , 2 : " 8px " , 3 : " 16px " , 4 : " 24px " }, }, }); export const sprinkles = createSprinkles ( responsiveProperties ); // Usage: className={sprinkles({ display: { mobile: "block", desktop: "flex" }, gap: 3 })} Tailwind-like atomic CSS with full

Continue reading on Dev.to React

Opens in a new tab

Read Full Article
6 views

Related Articles

How-To

The Difference between `let`, `var` and `const`

Medium Programming • 4h ago

How-To

Circulation Metrics Framework for Living Systems

Medium Programming • 6h ago

Red Rooms makes online poker as thrilling as its serial killer
How-To

Red Rooms makes online poker as thrilling as its serial killer

The Verge • 8h ago

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better
How-To

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better

Medium Programming • 10h ago

Why Most Developers
Stay Broke
How-To

Why Most Developers Stay Broke

Medium Programming • 12h ago

Discover More Articles