Packages
Twind CDN is a drop-in replacement for Tailwind CSS Play CDN that is 6 times smaller (104kb vs 17kB) without any build step right in the browser
- 📖 Study the documentation
- 🧭 Explore the examples
- 📜 Read the changelog
Variables
presetTailwind_defaultTheme
• Const presetTailwind_defaultTheme: DefaultTheme
Defined in
packages/preset-tailwind/src/defaultTheme.ts:13
Functions
install
▸ install<Theme>(config?, isProduction?): Twind<Theme & TailwindTheme>
Type parameters
| Name | Type |
|---|---|
Theme | extends TailwindTheme = TailwindTheme |
Parameters
| Name | Type |
|---|---|
config? | TwindConfig<Theme> & TailwindPresetOptions |
isProduction? | boolean |
Returns
Twind<Theme & TailwindTheme>
Defined in
▸ install<Theme, Presets>(config?, isProduction?): Twind<TailwindTheme & ExtractThemes<Theme, Presets>>
Type parameters
| Name | Type |
|---|---|
Theme | TailwindTheme |
Presets | extends Preset<any>[] = Preset<BaseTheme>[] |
Parameters
| Name | Type |
|---|---|
config? | TwindUserConfig<Theme, Presets> & TailwindPresetOptions |
isProduction? | boolean |
Returns
Twind<TailwindTheme & ExtractThemes<Theme, Presets>>