dknyakundi / react-tailwind-css-stater

Set Up Tailwind Css With create-react-app and yarn

Home Page:https://dev.to/ashirbadgudu/set-up-tailwind-css-with-create-react-app-and-yarn-pio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Tailwind Css Stater

Steps for creating react-tailwind-css-stater with yarn

Create a new react project with yarn

yarn create react-app react-tailwind-css-stater

Install Tailwind CSS with postcss & autoprefixer

yarn add -D tailwindcss postcss autoprefixer

Generate tailwind.config.js and postcss.config.js

yarn tailwindcss init -p

Modify tailwind.config.js file

module.exports = {
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
};

Add tailwind base, components and utilities to index.css

@tailwind base;
@tailwind components;
@tailwind utilities;

About

Set Up Tailwind Css With create-react-app and yarn

https://dev.to/ashirbadgudu/set-up-tailwind-css-with-create-react-app-and-yarn-pio


Languages

Language:JavaScript 42.6%Language:HTML 38.5%Language:CSS 18.9%