This repository is home for the BeamMP website, this is a rebuild of the website from the ground up using Vue+Vite. We are also making use of Tailwindcss v4.
Tech Stack
- Framework: Vue 3 (
vue,vue-router) - Build: Vite 7 (
vite,@vitejs/plugin-vue) - Styling: Tailwind CSS 4 +
tailwindcss-animate,tailwind-merge - UI Icons/Utils:
lucide-vue-next,clsx,class-variance-authority - Radix-style Components:
reka-uithroughshadcn-vue - Composable utilities:
@vueuse/core
Theming and Colour Guide
- BeamMP Orange
#F36D24 - BeamMP Blue
#4470B6 - BeamMP Green
#1D9749 - Gray
#333333 - Black
#000000 - White
#FFFFFF
Prerequisites:
- Node.js 22+
- pnpm, npm, or yarn (examples use npm)
Install dependencies and run the dev server:
# from this folder (repo root)
npm install
npm run devBuild for production and preview locally:
npm run build
npm run previewVite will print the local dev URL (usually http://localhost:5173).
npm run dev: Start Vite development servernpm run build: Production buildnpm run preview: Preview the production build locallynpm run lint: Lint and auto-fix Vue/JS files with ESLintnpm run format: Format all source files with Prettier
src/– App source (styles, components, pages, routing)src/components/ui/– UI components (e.g.,button,navigation-menu)src/lib/– Utilities and helpersroutes/- vue-router routesviews/- Pages of the website
index.html– Vite HTML entrytailwind.config.js– Tailwind configurationvite.config.js– Vite configurationcomponents.json– Shadcn-Vue component registry
- Tailwind CSS 4 is set up via
tailwind.config.jsand imported insrc/style.css. - reka-ui and shadcn-vue-style patterns are used for accessible, composable UI.
- lucide-vue-next provides icons.
We’re standardizing on shadcn-vue-compatible components for consistency. Use the CLI to add new components:
npx shadcn-vue@latest add <component>
# examples
npx shadcn-vue@latest add button
npx shadcn-vue@latest add navigation-menuThe CLI reads components.json and will scaffold files under src/components/ui/.
Use vue-router for navigation. Keep routes co-located with views and prefer lazy-loaded routes for large pages.
We welcome contributions! Here’s how to get started.
- Browse issues or propose an enhancement/bug. Share context and repro steps.
- Use a descriptive branch name:
feature/<short-description>fix/<short-description>docs/<short-description>
- Install deps with
npm installand runnpm run dev. - Keep changes scoped and focused; avoid drive-by refactors unless agreed.
- Vue 3 +
<script setup>preferred for new components. - Linting: Run
npm run lintbefore committing to catch errors. ESLint is configured for Vue 3 best practices. - Formatting: Run
npm run formatto auto-format code with Prettier (or use an editor extension). - Type safety: If/when TypeScript is introduced, prefer explicit props and emits.
- Tailwind: Use utility classes; extract variants with
class-variance-authoritywhen patterns repeat. - Accessibility: Prefer accessible primitives (e.g.,
reka-ui) and keyboard support. - File naming:
PascalCase.vuefor components; avoid one-letter variable names.
- Run the app locally and verify core flows.
- Ensure components render on both light/dark themes if relevant.
- If you add dependencies, update this README and relevant configs.
- Write clear, imperative commit messages, e.g.,
feat: add NavigationMenu component. - Open a PR describing the problem, solution, screenshots if UI changes, and any follow-ups.
- Link related issues. Keep PRs small; big changes should be split.
- Tailwind and Vite are preconfigured. If you need globals, add them in
vite.config.js. - For icons, use
lucide-vue-nextand keep icon size consistent via props/classes. - If adding new pages, prefer code-splitting with dynamic imports.
- “Why Vite?” Fast dev server, optimized builds, and great Vue tooling.
- “Can I use Yarn or pnpm?” Yes—adjust commands accordingly.
- “Design system?” We favor shadcn-vue patterns + Tailwind + reka-ui primitives for consistent UI.
Unless otherwise noted in the root repository, this project follows the BeamMP website’s standard license. If clarifications are needed, open an issue and we will update this section.