Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashirbadgudu/react-tailwind-css-stater

Set Up Tailwind Css With create-react-app and yarn
https://github.com/ashirbadgudu/react-tailwind-css-stater

create-react-app css postcss react tailwind tailwindcss yarn

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# `React Tailwind Css Stater`

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

### Create a new react project with yarn

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

### Install Tailwind CSS with postcss & autoprefixer

```sh
yarn add -D tailwindcss postcss autoprefixer
```

### Generate `tailwind.config.js` and `postcss.config.js`

```sh
yarn tailwindcss init -p
```

### Modify `tailwind.config.js` file

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

### Add tailwind base, components and utilities to `index.css`

```css
@tailwind base;
@tailwind components;
@tailwind utilities;
```