Skip to content

This repository contains numerous template examples that have been implemented with KoliBri.

Notifications You must be signed in to change notification settings

public-ui/templates

KoliBri Templates

This repository contains official starter templates for the KoliBri library.

Learn more on the KoliBri website.

Introduction

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.

Available Templates

Client Side Rendering (CSR)

Angular Templates

  • Angular (Modern)

    npx degit public-ui/templates/csr/angular my-kolibri-project
    cd my-kolibri-project
    npm i # or pnpm i or yarn

React Templates

  • 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 Templates

  • 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

Other CSR Templates

  • Static Page

    npx degit public-ui/templates/csr/static-page my-kolibri-project
    cd my-kolibri-project
    npm i # or pnpm i or yarn

Server Side Rendering (SSR)

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

KoliBri Library Templates

Library Template

npx degit public-ui/templates/kolibri/library my-kolibri-project
cd my-kolibri-project
pnpm i # pnpm required

Theme Template

npx degit public-ui/templates/kolibri/theme my-kolibri-project
cd my-kolibri-project
npm i # or pnpm i or yarn

Utility Templates

SVG to Font Converter

npx degit public-ui/templates/svg2font my-kolibri-project
cd my-kolibri-project
npm i # or pnpm i or yarn

Quick Start Script

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

About

This repository contains numerous template examples that have been implemented with KoliBri.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •