Skip to content

Installation

Pub.dev

Add Tsai UI to your application:

dependencies:
  flutter:
    sdk: flutter
  tsai_ui: ^0.6.3

Then resolve dependencies:

flutter pub get

Alternatively, let Flutter update pubspec.yaml:

flutter pub add tsai_ui

Local development

When the package and consuming app are in the same workspace:

dependencies:
  tsai_ui:
    path: ../tsai-ui-flutter

Imports

The main library exports themes, tokens, and widgets:

import 'package:tsai_ui/tsai_ui.dart';

The optional icon entrypoint also exports the Lucide catalog:

import 'package:tsai_ui/tsai_icons.dart';

Install TsaiTheme.light() and TsaiTheme.dark() before rendering a Tsai widget. See Theming for a complete setup.