Skip to content
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

fix: Fixes Opacity in Figma #18

Closed
wants to merge 5 commits into from
Closed

fix: Fixes Opacity in Figma #18

wants to merge 5 commits into from

Conversation

takashimokobe
Copy link
Collaborator

@takashimokobe takashimokobe commented Mar 8, 2024

Summary

Figma uses the values 0-100 for opacity and CSS uses 0-1. We need to update the config here so our opacity values look correct in Figma. We also need to add transformer logic in our studio sync (see PR 100.

tokens/base.json Outdated Show resolved Hide resolved
color.bg.alt.softer = soap 100 (table headers)
color.text.primary.stronger = blueberry 600 (active links)
color.static.toasted.stronger = toasted-marshmallow 600 (status indicator text)
@@ -12,12 +12,12 @@
"description": "Transparent background"
},
"overlay": {
"value": "rgba({color.static.black},{opacity.400})",
"value": "rgba({color.static.black},.{opacity.400})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this changes should be in different PR

@alanbsmith alanbsmith changed the title Opacity figma fix fix: Fixes Opacity in Figma Apr 1, 2024
@alanbsmith
Copy link
Member

Closing. This was resolved with #21.

@alanbsmith alanbsmith closed this Apr 17, 2024
@alanbsmith alanbsmith deleted the opacity-figma-fix branch April 17, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants