@potato4d が @spring_raining に、最近の CSS-in-JS のライブラリや、その中で注目を集めている vanilla-extract について聞いてみました。
@vanilla-extract/css
の上に、より書きやすくするための周辺ライブラリを組み合わせられる
@vanilla-extract/css
https://vanilla-extract.style/documentation/styling-api/@vanilla-extract/sprinkles
: Tailwind, Styled systemのようなユーティリティクラスを提供する https://vanilla-extract.style/documentation/sprinkles-api/@vanilla-extract/recipes
: Stitchesのようなvariantを持つスタイルを生成する https://vanilla-extract.style/documentation/recipes-api/*.css.ts
という名前のファイルをCSSとしてexportする仕組み