design_tokens_generator 1.0.3 copy "design_tokens_generator: ^1.0.3" to clipboard
design_tokens_generator: ^1.0.3 copied to clipboard

Convert JSON design tokens to Material 3 compatible Flutter themes and strongly-typed Dart classes.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate design_tokens_generator

Use it

The package has the following executables:

$ generate_tokens

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add design_tokens_generator

With Flutter:

 $ flutter pub add design_tokens_generator

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

dependencies:
  design_tokens_generator: ^1.0.3

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:design_tokens_generator/design_tokens_generator.dart';
1
likes
0
points
90
downloads

Publisher

unverified uploader

Weekly Downloads

Convert JSON design tokens to Material 3 compatible Flutter themes and strongly-typed Dart classes.

Homepage
Repository (GitHub)
View/report issues

Topics

#design-tokens #material-design #flutter #theming #code-generation

License

unknown (license)

Dependencies

flutter, json_annotation

More

Packages that depend on design_tokens_generator