Introduction
Tailwind Config is a lightweight package to make it easier for users of the Tailwind CSS library to get values from their resolved config file. If that means absolute nothing to you, I’d say head back to the previous page.
import tailwind from 'tailwind-config'
const config = tailwind.config('./tailwind.config')
config.theme.colors.black // '#000'
Inspiration
I often like to import values from my Tailwind CSS config file to keep things consistent.
Before tailwindcss@1.0.0, you could easily just import your config file from within your project. After 1.0, your config is merged with the default config in the tailwindcss
package.