Skip to content

Commit

Permalink
add a new phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli authored Dec 3, 2024
1 parent 5264d39 commit cd8ea71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/pages/docs/guides/design-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ final docTheme = MixThemeData(

Mix allows you to define dynamic themes, which means that the values of the design tokens can be resolved dynamically using a [BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html). To do this, you need to use the `ColorResolver`, `TextStyleResolver`, `RadiusResolver`, `SpaceResolver` and `BreakpointResolver` classes. These classes are used to resolve the values of the design tokens based on the current `BuildContext`.

For example:
As an example, let's say you want to define a `surface` color token that changes based on the platform brightness. You can do this by using the `ColorResolver` class:

```dart
final surface = ColorToken('surface');
Expand Down

0 comments on commit cd8ea71

Please sign in to comment.