Skip to content

A Tailwind CSS plugin that automatically pulls colors and widths from a WordPress theme’s theme.json file

License

Notifications You must be signed in to change notification settings

kleinweb/_tw-themejson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

_tw × theme.json

A Tailwind CSS plugin that automatically pulls colors and widths from a WordPress theme’s theme.json file, initiated as follows:

// tailwind.config.js
plugins: [
	require( '@_tw/themejson' )( require( 'path/to/theme.json' ) ),
]

This will extract the base color palette (settings.color.palette) as well as values for contentSize and wideSize.

If one or more of your color palette’s slug values matches a slug in Tailwind’s default color palette, those colors from the default palette—including all shades—will be overridden by the color value from your theme.json file.

About

A Tailwind CSS plugin that automatically pulls colors and widths from a WordPress theme’s theme.json file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%