https://github.com/hemengke1997/tailwind-antd-preset
Use antd css variables in tailwindcss
https://github.com/hemengke1997/tailwind-antd-preset
Last synced: 3 months ago
JSON representation
Use antd css variables in tailwindcss
- Host: GitHub
- URL: https://github.com/hemengke1997/tailwind-antd-preset
- Owner: hemengke1997
- License: mit
- Created: 2024-01-16T05:59:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-21T04:08:21.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:45:43.211Z (3 months ago)
- Language: TypeScript
- Size: 198 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
tailwind-antd-preset
> Use antd css variables in tailwindcss
## Install
```bash
npm install tailwind-antd-preset -D
```## Usage
### tailwind.config.js
```js
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [require('tailwind-antd-preset')],
}
```### In React
```tsx
// ===> color: var(--ant-color-primary);
```