Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
3.3.1.tar.gz | 2023-04-13 | 546.8 kB | |
3.3.1.zip | 2023-04-13 | 690.9 kB | |
README.md | 2023-04-13 | 825 Bytes | |
Totals: 3 Items | 1.2 MB | 0 |
- Add support for an esm/.ts tailwind.configs [#794]
thanks to @albohlabs
Note: Twin will autoload your tailwind.config.ts
config file if found AND if tailwind.config.[.js/.cjs]
doesn't exist.
:::ts
// tailwind.config.ts
// generate with: `npx tailwindcss init --ts`
import type { Config } from 'tailwindcss'
export default {
content: [],
theme: {
extend: {},
},
plugins: [],
} satisfies Config
:::js
// tailwind.config.js
// generate with: `npx tailwindcss init --esm`
/** @type {import('tailwindcss').Config} */
export default {
content: [],
theme: {
extend: {},
},
plugins: [],
}