In this workshop, we're going to define semantic color tokens in Tailwind CSS, to adhere to a convention set in a Figma design File.
We'll cover both Tailwind CSS v3 and v4 approaches 🔥
This workshop is intended for developers who are already familiar with Tailwind CSS.
If you’re not, great free resources to quickly up-skill are the official Tailwind docs and YouTube channel.
Basic familiarity with JavaScript and React is also beneficial, since we’ll be using a React + Vite app to build our UI.
Again, not critical as the workshops stays firmly focused on CSS.
Here are some resources you can read before taking the workshop to get you up to speed on some of the tools and concepts we'll be covering:
- The From Zero to Production video series in particular is a great introduction to Tailwind, even if designed for Tailwind v2.
All of these must be available in your PATH
. To verify things are set up
properly, you can run this:
git --version
node --version
npm --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.
This is a pretty large project (it's actually many apps in one) so it can take several minutes to get everything set up the first time. Please have a strong network connection before running the setup and grab a snack.
Warning: This repo is very large. Make sure you have a good internet connection before you start the setup process. The instructions below use
--depth
to limit the amount you download, but if you have a slow connection, or you pay for bandwidth, you may want to find a place with a better connection.
Follow these steps to get this set up:
git clone --depth 1 https://github.com/epicweb-dev/tailwindcss-color-tokens.git
cd tailwindcss-color-tokens
npm run setup
If you experience errors here, please open an issue with as many details as you can offer.
Learn all about the workshop app on the Epic Web Getting Started Guide.