
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
vite-tailwind-react-setup
Advanced tools
A CLI tool to create a React project with Vite and Tailwind CSS setup
vite-tailwind-react-setup is a CLI tool that streamlines the creation of React projects with Vite and Tailwind CSS. It automates the setup process, offering optional Airbnb ESLint configuration.
Install the CLI tool globally:
npm install -g vite-tailwind-react-setup
Usage Create a new project:
new-react-app
Follow the prompts:
Example:
$ new-react-app
? Enter your project name (leave blank to use current directory): my-awesome-app
? Enter the directory to create the project in (leave blank to use current directory): /path/to/project
? Do you want to include Airbnb ESLint configuration? (Y/n)
Example App.jsx with Tailwind CSS classes
Project Structure
my-awesome-app/
├── node_modules/
├── public/
├── src/
│ ├── App.css
│ ├── App.jsx
│ ├── index.css
│ └── main.jsx
├── .eslintrc.cjs (if Airbnb ESLint selected)
├── .gitignore
├── index.html
├── package.json
├── postcss.config.cjs
├── README.md
├── tailwind.config.js
└── vite.config.js
Configuration Files
tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
}
postcss.config.cjs
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
.eslintrc.cjs (Airbnb Configuration)
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['airbnb', 'airbnb/hooks', 'plugin:react/recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'prettier'],
rules: {
'react/react-in-jsx-scope': 0,
},
};
Dependencies
Core
Airbnb ESLint (Optional)
Subhro Kar
Contributions are welcome. Open an issue or submit a pull request for improvements or bug fixes.
FAQs
A CLI tool to create a React project with Vite and Tailwind CSS setup
We found that vite-tailwind-react-setup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.