Configuration
/tailwind.config.js
Foundation Core uses a lightly customised Tailwind config file.
Colors#
Colors for use in a project should be defined here.
They can be accessed in css with either using tailwind's theme function:
or scss's map-get function.
CSS Purging#
CSS purging is used to keep filesize down, it checks the twig files for in use classes.
In the following the purger will find .grid .gap-sm but not md:grid-cols-1 md:grid-cols-2 etc.
To avoid purging of specific classes, either explicitly write the full class in the twig file:
or add it to the tailwind.config.js file in the purge section: