This repository contains official starter templates for the KoliBri library.
Learn more on the KoliBri website.
These templates are maintained using pnpm for dependency management. You can update dependencies using pnpm up -Lri
. While pnpm is recommended, any package manager will work. The pnpm-lock.yaml
file can be safely removed after cloning a template.
-
Angular (Modern)
npx degit public-ui/templates/csr/angular my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
-
React Vite (Modern, Recommended)
npx degit public-ui/templates/csr/react-vite my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
-
React Vite with Formik
npx degit public-ui/templates/csr/react-vite-formik my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
-
React Standalone
npx degit public-ui/templates/csr/react-standalone my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
-
Vue Vite (Modern, Recommended)
npx degit public-ui/templates/csr/vue-vite my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
-
Static Page
npx degit public-ui/templates/csr/static-page my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
Note: Most SSR templates are still in development. Only Express is currently available.
-
Express
npx degit public-ui/templates/ssr/express my-kolibri-project cd my-kolibri-project npm i # or pnpm i or yarn
Coming soon:
- Astro
- Next.js
- Remix
npx degit public-ui/templates/kolibri/library my-kolibri-project
cd my-kolibri-project
pnpm i # pnpm required
npx degit public-ui/templates/kolibri/theme my-kolibri-project
cd my-kolibri-project
npm i # or pnpm i or yarn
npx degit public-ui/templates/svg2font my-kolibri-project
cd my-kolibri-project
npm i # or pnpm i or yarn
Here's a helpful shell script to quickly set up a new KoliBri theme project:
#!/bin/bash
set -euo pipefail
# Remove existing directory if it exists
rm -rf my-own-kolibri-theme
# Clone repository
npx degit public-ui/templates/kolibri/theme my-own-kolibri-theme
# Change to new directory
cd my-own-kolibri-theme || { echo "Directory change failed"; exit 1; }
# Open VS Code if available
if command -v code >/dev/null 2>&1; then
code .
else
echo "VS Code (code) is not installed or not in PATH."
fi
# Install dependencies with pnpm@^10
npx --yes pnpm@^10 install
# Initialize git repository and make initial commit
git init
git add .
git commit -m "chore: commit initial code"
# Update snapshot tests
npm run test-update || true
# Commit new snapshots
git add .
git commit -m "chore: commit initial snapshots"
# Start the project
npm start