dtcg_theme 0.7.1
dtcg_theme: ^0.7.1 copied to clipboard
Turns W3C Design Tokens (DTCG) files into a type-safe Flutter theme: a ThemeExtension per mode, and a build that fails on a broken reference or a pair below your WCAG target.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dtcg_themeWith Flutter:
$ flutter pub add dtcg_themeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
dtcg_theme: ^0.7.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dtcg_theme/dtcg_theme.dart';