inviqa-tailwindcss-example/README.md

24 lines
808 B
Markdown
Raw Permalink Normal View History

2022-09-09 17:00:00 +00:00
# Inviqa Tailwind CSS example
2022-09-09 17:00:00 +00:00
This is a component from the [Inviqa](https://inviqa.com) website that I recreated as an example for a front-end community of practice session on utility-first CSS.
2022-09-09 17:00:00 +00:00
[The original version](https://play.tailwindcss.com/Yfmw8O5UNN) used a number of `@apply` rules to change the appearance based on a `data-theme` attribute.
2022-09-09 17:00:00 +00:00
After attending the [Pro Tailwind theming workshop](), I moved it into a Next.js application and refactored it to use CSS custom properties, and moved the button and corner styles into a custom plugin.
2022-09-09 17:00:00 +00:00
The `flex-basis` styles have also been moved into a separate plugin, and I've added dark mode support which wasn't in the original version.
2022-09-09 17:00:00 +00:00
## Themes
2022-09-09 17:00:00 +00:00
### Blue
2022-09-09 17:00:00 +00:00
![](./docs/blue.png)
2022-09-09 17:00:00 +00:00
### Purple
2022-09-09 17:00:00 +00:00
![](./docs/purple.png)
2022-09-09 17:00:00 +00:00
### Teal
2022-09-09 17:00:00 +00:00
![](./docs/teal.png)