Twind.style

Something lacking or missing? File an issue! Something lacking or missing? File an issue!
Twind Documentation Twind Playground Discussions on GitHub Twind on GitHub Twind on Discord Twind on Mastodon
Switch theme
  • Twind Documentation
    Documentation
  • Twind Packages
    Packages
  • Twind Playground
    Playground
  • Discussions on GitHub
    Discussions
  • Getting Started
    1. Installation
    2. Presets
    3. Integrations
    4. Examples
    5. Features
    6. Migration
    7. Comparison
  • Configuration
    1. Rules
    2. Variants
  • Presets
    1. Autoprefix
    2. Container Queries
    3. Extensions
    4. Line Clamp
    5. Radix UI
    6. Tailwind CSS
    7. Tailwind CSS Forms
    8. Typography
  • Use With
    1. Gatbsy
    2. Lit
    3. Next.js
    4. React
    5. Remix
    6. SvelteKit
    7. Web Components
  • Core Concepts
    1. Reference
    2. Component Styles
  • Advanced
    1. Grouping Syntax
    2. Aliases
    3. Library Mode
    4. IntelliSense
  • Packages
    1. @twind/cdn
    2. @twind/core
    3. @twind/intellisense
    4. @twind/preset-autoprefix
    5. @twind/preset-container-queries
    6. @twind/preset-ext
    7. @twind/preset-line-clamp
    8. @twind/preset-radix-ui
    9. @twind/preset-tailwind
    10. @twind/preset-tailwind-forms
    11. @twind/preset-typography
    12. @twind/with-next
    13. @twind/with-react
    14. @twind/with-remix
    15. @twind/with-sveltekit
    16. @twind/with-web-components
    17. gatsby-plugin-twind

Packages

@twind/core › TwindPresetConfig

  1. Type parameters
  2. Properties
    1. darkColor
    2. darkMode
    3. finalize
    4. hash
    5. ignorelist
    6. preflight
    7. rules
    8. stringify
    9. theme
    10. variants

Type parameters

NameType
ThemeBaseTheme

Properties

darkColor

• Optional darkColor: DarkColor<Theme & BaseTheme>

Defined in

packages/core/src/types.ts:395


darkMode

• Optional darkMode: DarkModeConfig

Allows to change how the dark variant is used (default: "media")

Defined in

packages/core/src/types.ts:394


finalize

• Optional finalize: MaybeArray<Finalize<Theme & BaseTheme>>

Defined in

packages/core/src/types.ts:407


hash

• Optional hash: boolean | HashFunction

Defined in

packages/core/src/types.ts:403


ignorelist

• Optional ignorelist: MaybeArray<string | RegExp>

Defined in

packages/core/src/types.ts:405


preflight

• Optional preflight: false | MaybeArray<Preflight | PreflightThunk<Theme & BaseTheme>>

Defined in

packages/core/src/types.ts:399


rules

• Optional rules: Rule<Theme & BaseTheme>[]

Defined in

packages/core/src/types.ts:401


stringify

• Optional stringify: StringifyDeclaration<Theme & BaseTheme>

Defined in

packages/core/src/types.ts:404


theme

• Optional theme: ThemeConfig<Theme & BaseTheme>

Defined in

packages/core/src/types.ts:397


variants

• Optional variants: Variant<Theme & BaseTheme>[]

Defined in

packages/core/src/types.ts:400

MIT Licensed © 2023 Twind