This is a Vite, React and Tailwind CSS project bootstrapped using vite-react-tailwind-starter created by Theodorus Clarence.
- 💡 Instant Server Start
- ⚡️ Lightning Fast HMR
- 🛠️ Rich Features
- 📦 Optimized Build
- 🔩 Universal Plugin Interface
- 🔑 Fully Typed APIs
See the deployment on https://vite-react-tailwind-starter.theodorusclarence.com/
To clone this template you can use one of the three ways:
npx degit https://github.com/theodorusclarence/vite-react-tailwind-starter my-app
replace my-app
with your application name
First, install all the dependencies,
npm i
# or
yarn
Then, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/Home.jsx
. The page auto-updates as you edit the file.
You can absolute import by using @/
For example
import UnstyledLink from '@/components/UnstyledLink'
You can also use auto import and it should work automatically.
When you add a new folder in src, add it on the jsconfig.json
{
"compilerOptions": {
"jsx": "preserve",
"baseUrl": "./src",
"paths": {
"@/components/*": ["./components/*"],
"@/pages/*": ["./pages/*"],
"@/routes/*": ["./routes/*"],
// add new folder here
},
},
}
Inter fonts is self hosted. The default weights are 400, 600, 700
. To add more, use fontsquirrel.
Used as a component for Next.js Link. Will render out Next/Link if the href started with /
or #
, else will render an a
tag with target='_blank'
.
An extension of UnstyledLink Component, you can add your default styling for a button/link.
<UnstyledLink
className={`${props.className} inline-flex items-center font-bold hover:text-primary-400`}
{...props}
/>
Use Favicon Generator and then overwrite the files in /public/favicon
Defaulted to true, you can uncomment the mode='jit'
in /tailwind.config.js
There are default styles for responsive heading sizes, and .layout
to support a max-width for larger screen size.