The _tw generator creates a WordPress starter theme optimized for modern development with Tailwind CSS, Tailwind Typography and the WordPress editor.
The _tw generator creates a WordPress starter theme optimized for modern development with Tailwind CSS, Tailwind Typography and the WordPress editor.
This repository tracks the output of the _tw WordPress starter theme generator with all options left blank.
If you're starting a new project, the web-based generator or WP-CLI package are the best ways to do that. You can also read the documentation for more details.
Note
The default contents ofREADME.mdin a generated theme are as follows:
A custom theme based on _tw
wp-content/themes in your local development environmentnpm install && npm run dev in this folderUsing WordPress Multisite? Don’t forget that your theme must first be enabled via the Network Admin in order to be available for activation on a network site.
npm run watchnpm run bundleOr deploy with the tool of your choice!
Note
The default contents ofREADME.mdend here.
All notable changes to this project will be documented here.
The format is based on Keep a Changelog.
archiverpostcss-header, to support the build process for tailwind-intellisense.css, which improves Tailwind CSS language server supportpostcss-url, now that the transformAssetUrls option has landed in @tailwindcss/postcss.npmrc file to force the installation of devDependenciescssnanotype is now set to module in package.json.mjs files renamed to .jspostcss-url, PostCSS Advanced Variables, postcss-import-ext-glob@tailwindcss/cli to @tailwindcss/postcss)tailwind.cssprettier.config.mjsh2–h4theme.json integration using Tailwind 4’s CSS configurationpostcss-import-ext-globtheme.json parsing via @_tw/themejsontheme.json triggering Tailwind rebuilds via chokidar-cli and toucheslint-plugin-tailwindcss, @angular-eslint/template-parser and eslint-plugin-php-markup@tailwindcss/aspect-ratio, @tailwindcss/container-queries and @tailwindcss/forms)./javascript/tailwind-typography-classes.js from @_tw/typography to ./javascript/block-editor.jswp-block and wp-element./javascript/tailwind-typography-classes.js./tailwind/tailwind-editor-extra.css@_tw/typography to improve Tailwind Typography support in the block editor via a custom fork./tailwind/tailwind-typography.config.js.lead style./javascript/tailwind-typography-classes.js, adding new helper classes./tailwind/tailwind-typography.config.js@tailwindcss/typography (replacing it with the above-mentioned fork)theme.json update tailwind.config.js during watch process (#79)npm run bundleREADME.md@tailwindcss/line-clamp and postcss-simple-vars@wordpress/prettier-config and eslint-config-prettiereslint:recommended configurationecmaVersion to latest throughout@wordpress/eslint-plugin@tailwindcss/container-queriespackage.json scriptscomposer.lock and package-lock.json filescontent_widthstyle.css file containing only the WordPress file headerREADME.mdcomponents folder, automatically including CSS files withinphpcs.xml.dist upon WordPress Coding Standards sample filetheme.json filepostcss-simple-vars to change CSS selectors based on build targettailwind.config.js for Tailwind 3tailwind/custom/components.css.prose as our Typography selectortheme.json in Tailwindtheme.json fileentry-title and entry-contentnpm-run-allNo open issues yet, or sync has not completed.