tailwind-antd-preset
v0.0.4
Published
Use antd css variables in tailwindcss
Downloads
52
Maintainers
Readme
Use antd css variables in tailwindcss
Install
npm install tailwind-antd-preset -D
Usage
tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [require('tailwind-antd-preset')],
}
In React
<div className='text-ant-color-primary'></div>
// ===> color: var(--ant-color-primary);