Skip to content

3.3.1

Compare
Choose a tag to compare
@ben-rogerson ben-rogerson released this 14 Apr 00:01
· 15 commits to master since this release

Note: Twin will now autoload a tailwind.config.ts config file if found when a tailwind.config.[.js/.cjs] doesn't exist.

// tailwind.config.ts
// generate with: `npx tailwindcss init --ts`

import type { Config } from 'tailwindcss'

export default {
  content: ['*'],
  theme: {
    extend: {},
  },
  plugins: [],
} satisfies Config
// tailwind.config.js
// generate with: `npx tailwindcss init --esm`

/** @type {import('tailwindcss').Config} */
export default {
  content: ['*'],
  theme: {
    extend: {},
  },
  plugins: [],
}
// Classic tailwind.config.js for comparison
// generate with: `npx tailwindcss init`

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['*'],
  theme: {
    extend: {},
  },
  plugins: [],
}