flutter_tweakcn_generator 0.2.3 copy "flutter_tweakcn_generator: ^0.2.3" to clipboard
flutter_tweakcn_generator: ^0.2.3 copied to clipboard

Converts tweakcn CSS themes into Flutter ThemeData with ColorScheme, ThemeExtension, Google Fonts, and light/dark mode support.

0.2.3 #

  • Add font_dir option to customize local font download directory (default: fonts)

0.2.2 #

  • Fix font_exclusive not cleaning up fonts when switching to system font stack
  • Add missing font_exclusive and build.yaml options to README

0.2.1 #

  • Add font_exclusive: true option for font_mode: local: automatically removes font files and pubspec.yaml font declarations not defined in --font-sans
  • Auto-clean fonts/ directory: deletes .ttf files that don't belong to any defined font family
  • Auto-clean pubspec.yaml: removes unused flutter > fonts family blocks

0.2.0 #

  • Add font_mode: local option: downloads .ttf files from Google Fonts and generates fontFamily / fontFamilyFallback code without google_fonts runtime dependency
  • Auto-download font files into fonts/ directory
  • Auto-add flutter > fonts declarations to pubspec.yaml
  • Support both google_fonts (default) and local font modes via pubspec.yaml configuration

0.1.4 #

  • Add fontFamilyFallback support: multiple Google Fonts in --font-sans are now used as primary + fallback fonts (e.g. Architects Daughter, Noto Sans KR, sans-serif)

0.1.3 #

  • Widen build dependency to >=2.0.0 <5.0.0 for broader compatibility
  • Widen build_test dependency to >=2.0.0 <4.0.0
  • Widen build_runner dependency to >=2.0.0 <3.0.0

0.1.2 #

  • Widen build dependency to >=3.0.0 <5.0.0 for broader compatibility
  • Widen build_test dependency to >=2.0.0 <4.0.0

0.1.1 #

  • Update build dependency to ^4.0.0
  • Remove unused source_gen dependency
  • Require Dart SDK >=3.7.0

0.1.0 #

  • Initial release
  • CSS parser: :root (light) / .dark (dark) block parsing
  • Color formats: hex, rgb, hsl, oklch
  • Shadow parsing: CSS box-shadow to List<BoxShadow>
  • Google Fonts support: --font-sans CSS variable to GoogleFonts.xxxTextTheme() generation
  • Code generation: ColorScheme, ThemeExtension (Colors, Radius, Shadows), ThemeData
  • CLI: dart run flutter_tweakcn_generator
  • build_runner: *.tweakcn.css*.tweakcn.dart
1
likes
160
points
336
downloads

Publisher

unverified uploader

Weekly Downloads

Converts tweakcn CSS themes into Flutter ThemeData with ColorScheme, ThemeExtension, Google Fonts, and light/dark mode support.

Repository (GitHub)
View/report issues

Topics

#theme #code-generation #css #design-system #shadcn

Documentation

API reference

License

MIT (license)

Dependencies

build, path, yaml

More

Packages that depend on flutter_tweakcn_generator