WindConfig class

Wind UI configuration helper class.

Provides a convenient way to initialize Wind UI with default settings. This class sets up the complete design system including colors, spacing, border radius, and shadows that can be used throughout your application.

Usage

Call initialize once in your app's main function before runApp():

void main() {
  WindConfig.initialize();
  runApp(MyApp());
}

Default Configuration

The default configuration includes:

  • Colors: Primary, secondary, gray scale, and semantic colors
  • Spacing: Scale from 0 to 64 (0, 1, 2, 4, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64)
  • Border Radius: sm, md, lg, xl, 2xl, 3xl, full
  • Shadows: sm, md, lg, xl, 2xl
  • Breakpoints: sm (640px), md (768px), lg (1024px), xl (1280px), 2xl (1536px)

Color Palette

Primary Colors

  • primary-50 to primary-900: Blue color scale
  • secondary-50 to secondary-900: Coral red color scale
  • gray-50 to gray-900: Neutral gray scale

Semantic Colors

  • success: Green for success states
  • warning: Orange for warning states
  • error: Red for error states
  • info: Blue for informational states

Basic Colors

  • white, black: Pure white and black
  • transparent: Fully transparent

Constructors

WindConfig.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

initialize() → void
Initialize Wind UI with default configuration.