GlassKit Web v1.0.0
🇩🇪 DE

Documentation

This page is the curated overview. The single source of truth lives in the repository: SKILL.md (machine-readable reference with all rules and recipes) and the README. Whenever this page and the repo disagree, the repo wins.

Quick start

# Scaffold a new project from the template
npm create astro@latest my-site -- --template JUNGHERZ/GlassKit-Web
cd my-site && npm install

npm run dev      # develop
npm run build    # build to dist/
npm test         # Playwright smoke suite (builds + previews itself)

Alternatively use “Use this template” on GitHub. First steps in a derived project: delete site/ (this product page), set base in astro.config.mjs to your repo name — or remove it for a custom domain and add public/CNAME. Deployment ships as a GitHub Actions workflow; set Pages Source to “GitHub Actions” once.

Architecture

Two layers, two references:

LayerPrefixWhere
Design tokens + UI componentsglass-*, --gl-*npm @jungherz-de/glasskit — never edited, only version-bumped
Site & section layerglw-*src/styles/site.css in this template

The files you touch when deriving a project:

The four rules that keep everything working: no <style> blocks in .astro components (Astro scoping breaks the global mechanics) · GlassKit imports before site.css · colors only via --gl-* tokens · no external requests — the built site is fully self-contained. The complete ✅/❌ list is in SKILL.md §4.

Section catalog

Compose src/pages/index.astro from these sections and delete what the project doesn’t need. Demo links jump straight into the live page.

SectionPurposeDemo
SiteHeaderFixed glass nav: brand, anchors, theme toggle, mobile menu (works without JS)view ↗
HeroAudience switch, headline pair, CTAs, decorative device panel (optional 3D tilt)view ↗
HeroEditorialAlternative hero: typographic, no device panel — for agencies/service providers
LogoStripSocial proof wordmarks, text-only
Features3-column glass card grid from a features[] arrayview ↗
BentoFeature cards with embedded mini visualizations (built, not screenshotted)view ↗
ProcessNumbered how-it-works stepsview ↗
FlowProcess diagram: glass nodes + animated SVG connectors, no JSview ↗
Showcase3D-tilted “spatial” glass window (visionOS look)view ↗
Stats4 KPI figures, typographic
CasesSuccess stories with gradient metricsview ↗
TeamPeople grid with initials avatarsview ↗
PricingTwo plan grids, one per audienceview ↗
QuoteSerif testimonial, one per audience
FaqAccordion + FAQPage JSON-LD; open answers without JSview ↗
LanguageSwitcherDE|EN pill (2 languages) or flag dropdown (3+); entries are linksview ↗
ContactProvider-agnostic contact form (n8n / Web3Forms / Formspree), honeypot, consentview ↗
CtaBannerClosing call-to-action panel
SiteFooterLink columns, legal links
glw-page/prosePlain text subpages (Impressum/Datenschutz pattern)view ↗

Full notes per section (arrays, opt-in flags, accessibility rules): SKILL.md §2.

Branding

Client colors never touch glasskit.css or the glw- rules. src/styles/brand.css is the single place for brand overrides — one :root block of token values that loads last and therefore wins against both themes:

:root {
  --gl-primary: #7c5cff;
  --gl-primary-2: #4d34d8;
  /* … more --gl-* tokens; commented example themes ship in the file */
}

Opt-ins

Recipes

Three step-by-step recipes cover the whole lifecycle — summarized here, executable in SKILL.md:

GlassKit Web is versioned since v1.0.0 — the CHANGELOG is the update guide for derived projects.

AI workflow

The template is built to be derived by AI assistants: hand the repo URL to Claude Code, Cursor & Co. and point them at SKILL.md — it contains the catalog, the rules and the recipes in machine-readable form (“build the new site following this scheme”). The deployed demo additionally serves llms.txt, and derived projects generate their own from their content.

The ready-made prompt

Works the same in Claude Code, Cursor, VS Code / Copilot or a plain chat — copy, fill in the placeholders, done:

Build a new website based on the GlassKit Web template:
https://github.com/JUNGHERZ/GlassKit-Web

First read the SKILL.md in that repo, then follow its recipe §5
("New Website From This Template").

Project:        <company / product / industry>
Audiences:      <B2C, B2B, or both>
Languages:      <German only / German + English>
Brand colors:   <hex values — or "suggest something">
Sections:       <e.g. hero, features, pricing, FAQ, contact — or "you pick">

For converting an existing site, swap the recipe reference to §6 and add the old site’s URL. In an already derived project, “update this site from the template — follow SKILL.md recipe §7” is all it takes.