1. Packages
  2. @twind/cdn

Packages

@twind/cdn

MIT License Latest Release Github

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

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

NameType
Themeextends TailwindTheme = TailwindTheme

Parameters

NameType
config?TwindConfig<Theme> & TailwindPresetOptions
isProduction?boolean

Returns

Twind<Theme & TailwindTheme>

Defined in

packages/cdn/src/index.ts:28

install<Theme, Presets>(config?, isProduction?): Twind<TailwindTheme & ExtractThemes<Theme, Presets>>

Type parameters

NameType
ThemeTailwindTheme
Presetsextends Preset<any>[] = Preset<BaseTheme>[]

Parameters

NameType
config?TwindUserConfig<Theme, Presets> & TailwindPresetOptions
isProduction?boolean

Returns

Twind<TailwindTheme & ExtractThemes<Theme, Presets>>

Defined in

packages/cdn/src/index.ts:33