Template for building performant web apps.
Features included:
- 💬 Translations
- 🎨 Themes
- 🌗 Light/dark mode
This template is configured with:
src/
├─ assets/ Static assets
├─ components/ Components
├─ lib/ Utility library
├─ locales/ Translations
│ ├─ {language}.ts Dictionary for {language}
│ └─ index.ts List of languages and their names
├─ pages/ Page components
├─ providers/ Context providers
│ ├─ color-scheme.tsx Provides color scheme context
│ ├─ locale.tsx Provides translation support
│ └─ theme.tsx Provides theming support
├─ themes/ Themes
│ ├─ {theme}/index.ts Collection of styles for {theme}
│ └─ index.ts List of themes and their names
├─ App.tsx Root app component
├─ AppState.tsx App state and configuration
├─ index.scss Root styles
├─ index.tsx Root script
└─ routes.ts Routing configuration
eslint.config.js Linter configuration
index.html Entry point
package.json Node.js package configuration
pnpm-lock.yaml pnpm lock file
prettier.config.js Formatter configuration
tsconfig.json TypeScript configuration
vite.config.ts Vite & Vitest configuration
vitest-setup.ts Vitest setup file
Install dependencies:
pnpm install
Run the app in development mode:
pnpm run dev
Build the app for production to the dist
folder:
pnpm run build