タグ

ブックマーク / cva.style (1)

  • cva

    Class Variance Authority CSS-in-TS libraries such as Stitches (opens in a new tab) and Vanilla Extract (opens in a new tab) are fantastic options for building type-safe UI components; taking away all the worries of class names and StyleSheet composition. …but CSS-in-TS (or CSS-in-JS) isn't for everyone. You may need full control over your StyleSheet output. Your job might require you to use a fram

    cva
    jay-es
    jay-es 2023/09/22
    CSS クラス名の組み合わせを登録しておき、関数で出力する。variant の登録や、呼び出し時に class を追加できる。Tailwind でコンポーネントを作るなどの用途
  • 1