This presentation is only available as code, but for those that can't run it locally this README will go through the slides as if it was a PowerPoint.
Run presentation locally or skip to presentation section:
git clone https://github.com/avo-SS/tailwindcss-demo.git
yarn install
yarn dev
- Use
left-arrow
◀️ to navigate to previous slide. - Use
right-arrow
▶️ to navigate to previous slide. - Use
down-arrow
🔽 to navigate to next section. - Use
right-arrow key
🔼 to navigate to previous section. - Hover at the bottom of the screen to make navigation buttons visible
Section 3 NextJS - CSS
Section 4 State of CSS
- In the file
tailwind.config.js
uncomment this linerequire('./tailwind-presets/cosmetics-preset.js')
- In the browser click on the content-swap button in the header navigation
- Disclaimer: The page is not built responsive as it is only for demonstration purposes.
Tech theme light | Tech theme dark |
---|---|
![]() |
![]() |
Cosmetics theme light | Cosmetics theme dark |
---|---|
![]() |
![]() |
8. Figma to Tailwind
with Skaidi Design System as an example
Run these commands from root:
- Watch output file when making changes to styles
npx tailwindcss -i ./styles/globals.css -o output.css -w
- Build minified output css file
npx tailwindcss -i ./styles/globals.css -o output.css -m
- Normal tailwind classes
- Twin.macro styled component
- Button with props for color
isRed
- Styles extracted into an object and referenced inline with
css
attribute - CSS Modules with
@apply
directive