This repository was created as part of a blogpost on the Mirahi Digital Garden.
We will explain how you can transform your tokens stored on Figma Tokens using token-transformer and Style Dictionary to css-variables with references, and use them in your TailwindCSS environment with multiple themes.
Make sure to install the dependencies:
# npm
npm install
npm run build-styles
Start the development server on http://localhost:3000
npm run dev
Click on the toggle button "dark-light", to switch theme.
You can find other examples here by Jan Six
This project uses style-dictionary, token-transformer, TailwindCSS, NuxtJS, @nuxtjs/tailwindcss, nuxt-icons
MIT License © 2022-PRESENT Mathieu Laurent @ Mirahi
We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.