Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 527 Bytes

css-in-js.md

File metadata and controls

35 lines (24 loc) · 527 Bytes

CSS-in-JS

Context

Design

yarn add --dev @vanilla-extract/css @vanilla-extract/jest-transform @vanilla-extract/webpack-plugin

webpack/config/common.ts

import { VanillaExtractPlugin } from "@vanilla-extract/webpack-plugin";

export default {
  plugins: [new VanillaExtractPlugin()],
};

.jestrc.json

{
  "transform": {
    "^.+\\.css\\.[jt]sx?$": "@vanilla-extract/jest-transform"
  }
}

Rationale

References