figma_tokens_builder 0.0.3+2
figma_tokens_builder: ^0.0.3+2 copied to clipboard
A build_runner code generator that converts Figma design token JSON files (W3C format) into type-safe Dart ThemeExtension classes with multi-mode presets, BuildContext extensions, and responsive themi [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add figma_tokens_builderThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
figma_tokens_builder: ^0.0.3+2Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:figma_tokens_builder/figma_tokens_builder.dart';