2.1.2 • Published 9 months ago

@rickzhou/react-css v2.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

install

yarn add @rickzhou/react-css

config tailwindcss

echo "module.exports = require('@rickzhou/react-css').postcss" > postcss.config.cjs

echo "module.exports = require('@rickzhou/react-css').tailwindcss" > tailwind.config.cjs

config @emotion/react css prop

tsconfig.json

{
  "complierOptions": {
    "jsxImportSource": "@emotion/react"
  }
}

vite.config.ts

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    react({
      // Add the following two lines to your vite.config.ts file
      jsxImportSource: '@emotion/react',
      babel: {
        plugins: ['@emotion/babel-plugin'],
      },
    }),
  ],
});
2.1.2

9 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.0.0

1 year ago