-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is borderSide.width.ref ? #544
Comments
I forked a branch And modify color: _$this.color?.resolve(mix) ?? defaultValue.color,
strokeAlign: _$this.strokeAlign ?? defaultValue.strokeAlign,
style: _$this.style ?? defaultValue.style,
- width: _$this.width ?? defaultValue.width,
+ width: mix.tokens.spaceTokenRef(_$this.width ?? defaultValue.width),
);
} And also extend extension DoubleUtilsEx<T extends Attribute> on DoubleUtility<T> {
T ref(SpaceToken ref) => builder(ref());
} It is work. There are a lot of attributes can use "NumberToken", like |
The space token was created to serve as a specific token for spacement, not as a generic double token. The main point is that it could be used for any |
For now, you could resolve the token using context, $box.border.width(token.container.border.thickness.$4.resolve(context)) |
Use case
I want to borderSide.with can use Token
Proposal
Like this
The text was updated successfully, but these errors were encountered: