This template provides a minimal setup to get React working in Vite with HMR.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
Uses Biome as the configued linter and formatter. It is faster than prettier and has better hints for linting than ESLint. Biome
The configuration file is Biome.json
Uses Sass Modules for CSS styling. This helps with global CSS variables and some other nifty options. The global variables are declared in file
This file must be added to the ViteConfig like this:
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "./src/styles/variables.scss";`
}
}
}
});Uses Radix color themes to make it easier and simpler to reuse good color throughout the project. The Radix color are imported into the index.css for global use