dtcg_theme 0.7.1 copy "dtcg_theme: ^0.7.1" to clipboard
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_theme

With Flutter:

 $ flutter pub add dtcg_theme

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dtcg_theme: ^0.7.1

Alternatively, 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';
0
likes
160
points
109
downloads

Documentation

API reference

Publisher

verified publisherbomsamdi.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#design-tokens #theme #codegen #figma #accessibility

License

MIT (license)

Dependencies

args, yaml

More

Packages that depend on dtcg_theme