-
Notifications
You must be signed in to change notification settings - Fork 8
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
implement Figma design tokens #94
Conversation
Wouldn't it then make sense to ignore the folder at least for both |
|
@kkuepper I think Simon is thinking about a Nuxt module, which would be local in the repo in this case 😊 |
# Conflicts: # components/ContentSection.vue # components/DropdownMenu.vue # components/MediaPlayer.vue # components/sidebar/SidebarItem.vue # pnpm-lock.yaml
db5506d
to
51040c8
Compare
I haven't had the time to work on this the last week. @SimonSimCity Did you have any ideas on how to improve things? If you have, feel free to try it |
Removed the Having generated imports from within |
8d1f081
to
ca59c3a
Compare
Figma -> Tailwind
I have set up a transformation pipeline for converting Figma design tokens to a Tailwind config, based on what has been done by Laurens in the BCC Design Tokens repo.
By running the
pnpm tokens:build
command, the tokens in/assets/design-tokens/tokens.json
will be transformed and written to separate files in the/tailwind
directory.I only converted colors for now, as the typography tokens are quite difficult to convert to a Tailwind style config.
Changing classes
I also changed every color class to the new BMM classes.
Eg. everywhere we used the
bg-slate-100
class is now using thebg-background-2
class.The names of the classes are derived from the naming in the Figma file:
light/background/2
bg-background-2