tailwind 0.0.6 copy "tailwind: ^0.0.6" to clipboard
tailwind: ^0.0.6 copied to clipboard

Inspired from TailwindCSS. It is a simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes, making it easier to create beautiful designs.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:tailwind/tailwind.dart';

import 'package:example/card.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Tailwind Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Container(
                width: 100,
                height: 100,
                // Use custom color like this or Color(0xffbada55)
                color: Tw.colors.color(0xffbada55),
              ),
              // Use Tailwind spacing
              Tw.spaces.s4,
              Container(
                width: 100,
                height: 100,
                // Use Tailwind spacing
                padding: Tw.insets.i4,
                // Use Tailwind colors
                color: Tw.colors.purple.shade500,
                child: Container(color: Tw.colors.teal.shade500),
              ),
              Tw.spaces.s4,
              Row(
                mainAxisSize: MainAxisSize.min,
                children: [
                  const ExampleCard(),
                  const ExampleCard(),
                  const ExampleCard(),
                ].space(Tw.spaces.s4),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
140
pub points
13%
popularity

Publisher

verified publishercodingmitra.com

Inspired from TailwindCSS. It is a simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes, making it easier to create beautiful designs.

Repository (GitHub)
View/report issues

Topics

#tailwind #css #flutter

Documentation

API reference

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tailwind