Broken Post? → Let me know
2020-06-12 Updates
- Replaced
autoprefixerwith postcss-preset-env, which supportsautopprefixerand more. Set up instruction can be found in the official documentation too. - Tailwind CSS version 1.4.4 supports purge css natively. Installation for
purgecss&@fullhuman/postcss-purgecssare removed.
TailwindCSS Cheatsheet Last updated on November 9th, 2020 for TailwindCSS v1.9.6 This README contains a complete list of the TailwindCSS class names for a quick reference. There is also a more.
2020-02-29 Updates
- Tailwind is unapologetically modern, and takes advantage of all the latest and greatest CSS features to make the developer experience as enjoyable as possible. We've got first-class CSS grid support, composable transforms and gradients powered by CSS variables, support for modern state selectors like:focus-visible, and tons more.
- Tailwind CSS Cheat Sheet. Details — ( 34 ) Previous Layoutit Grid: Learning CSS Grid Visually With a Generator CSS-Tricks; Next Command Line Power User — A free video series for web developers on learning a modern command line workflow with ZSH, Z and related tools.
- Tailwind Cheat Sheet 🌍 - Tailwind CSS class names, variants and directives cheat sheet. Description Visit Site. Related Projects. Grayscale Design 🎨🌍🔧 - A Luminance-based color palette generator. RustyWind 🔼 - CLI tool for sorting Tailwind CSS classes.
- Tailwind CSS is a CSS framework that provides a comprehensive set of utility classes to use in your markup. The utility class approach opposes traditional CSS in almost every way, which turns out to be a godsend. Here's a cheat sheet to help you navigate Tailwind's collection.
- Replaced
concurrentlywith npm-run-all - Fixed initial empty page load - Added
sleep 5in package.json.
Based on https://github.com/billimarie/simple-react-tailwind-tutorial
Assumption
I will assume that you know how to create a new React site using Create-React-App and created a site. Cisco webex teams mac.
Table of Contents
- Install DEV dependencies
- Create Tailwind configuration file
- Configure PostCSS for Tailwind
- Create a Tailwind file
- Create NPM scripts
- Import Tailwind CSS Output
1. Install DEV dependencies
2. Create Tailwind configuration file
3. Configure PostCSS for Tailwind
- Create a file
postcss.config.jsin the project root.
- Configure Post CSS to work with Tailwind
- postcss-preset-env - Supports newer CSS syntax and much more! (e.g. replaces
autoprefixer) - cssnano - Minify CSS to reduce bundle size
- postcss-preset-env - Supports newer CSS syntax and much more! (e.g. replaces
4. Create a Tailwind file

Create a file ./src/styles/tailwind.css.
Add following Tailwind utilities
5. Create NPM Scripts
package.json scripts.
build:css- converts Tailwind to CSSwatch:css- Watch Tailwind changes and writes CSSenv:dev/prod- Sets an environment variable for development or production modereact-scripts:start: Starts 5 seconds later to prevent an initial empty pagereact-scripts:build: Creates a production-ready bundlestart- Watches Tailwind changes and starts CRAbuild- Build Tailwind and production version of CRA site
6. Import Tailwind CSS Output
- Go to
./src/index.js - Replace
import './index.css';withimport './styles/index.css';
Resources
Tailwind Css Documentation


create-react-apptemplate in TypeScript (created by me 🙂), cra-template-tailwindcss-typescript.- Scaffold a new CRA app like
npx create-react-app my-app --template tailwindcss-typescript - Most of steps in this post is used in the project
- Scaffold a new CRA app like
- Demo repository - https://github.com/dance2die/template.tailwind.cra
- Created by following this post
- CodeSandbox template - https://codesandbox.io/s/create-react-app-tailwind-oqvyu
- You can fork and play around with Tailwind + React with this one :)
Confluence import markdown. Image Credit: Patent Model of a Sheet-Feed Apparatus for Printing Machines
Webmentions
Loading counts..
Html Css Cheat Sheet
Fetching Replies..
