tailwind_standards 1.1.1 copy "tailwind_standards: ^1.1.1" to clipboard
tailwind_standards: ^1.1.1 copied to clipboard

Tailwind CSS for Flutter. Colors, Sizes, Weights and a TText widget to style your app.

example/lib/main.dart

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

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Tailwind Standards'),
      ),
      body: Container(
        // Tailwind color
        color: TColor.blue950,
        child: Column(
          children: [
            // TText widget from the package
            const TText(
              'Hi, I\'m a TText widget from the package!',
              props: 'text-xs text-gray-500 text-center font-bold',
            ),

            // Sizedbox with a height of 18.0 by use of TSize
            const SizedBox(height: TSize.lg),

            // Text widget from the Flutter SDK with style properties of the package
            Text(
              'Hi, I\'m a Text widget from the Flutter SDK!',
              style: TextStyle(
                color: TColor.amber200,
                fontSize: TSize.xl3,
                fontWeight: TWeight.bold,
              ),
            )
          ],
        ),
      ),
    );
  }
}
23
likes
150
pub points
53%
popularity

Publisher

verified publishertiespol.nl

Tailwind CSS for Flutter. Colors, Sizes, Weights and a TText widget to style your app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on tailwind_standards