anomaly / lab-web-client

A template for building accessible, localised, high performance React front ends with a standard set of libraries. Also provides a template for development servers.
Apache License 2.0
2 stars 0 forks source link

Outline tips on predefining Tailwind based styles #9

Open devraj opened 2 years ago

devraj commented 2 years ago

As you develop the design language of an application you layout how certain components look e.g Headers, Inputs. While it's tempting to copy the tailwind directive across the elements, the better thing to do is define these styles in tailwind.config.js and then use those styles.

This will also allow us to change the styles in one central location.

This particular idea will be useful for web site based projects using Tailwind + Gatsby | Next