Skip to content
HELiX

Quick Start

apps/docs/src/content/docs/getting-started/quick-start Click to copy
Copied! apps/docs/src/content/docs/getting-started/quick-start

This guide walks you through using HELiX components in your project.

The fastest way to start — create-helix generates a runnable project for your framework with the components you pick:

Terminal window
npx create-helix

Pick a framework (Astro, Next.js, Vue, Svelte, vanilla HTML, or Drupal), choose components, and start the dev server. Skip to Using Components if you’d rather wire HELiX into an existing project manually.

Terminal window
npm install @helixui/library @helixui/tokens

Import individual components or the full library in your JavaScript/TypeScript:

// Import the full library (registers all components)
import '@helixui/library';
// Or import individual components for better tree-shaking
import '@helixui/library/components/hx-button';
import '@helixui/library/components/hx-card';
import '@helixui/library/components/hx-text';

Then use the components in your HTML:

<hx-card variant="featured" elevation="raised">
<h3 slot="heading">Latest content</h3>
<hx-text>Browse our latest content and support resources.</hx-text>
<hx-button slot="actions" variant="primary">Learn More</hx-button>
</hx-card>

Load HELiX in any HTML page without a build step:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HELiX Quick Start</title>
<link rel="stylesheet" href="https://unpkg.com/@helixui/library@3.9.0/dist/css/helix-all.css" />
<script type="importmap">
{
"imports": {
"@helixui/library": "https://cdn.jsdelivr.net/npm/@helixui/library@3.9.0/dist/index.js",
"@helixui/tokens": "https://cdn.jsdelivr.net/npm/@helixui/tokens@3.9.0/dist/index.js",
"@helixui/icons": "https://cdn.jsdelivr.net/npm/@helixui/icons@1.0.0/dist/index.js",
"@floating-ui/dom": "https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.7.6/+esm",
"lit": "https://cdn.jsdelivr.net/npm/lit@3/+esm",
"lit/": "https://cdn.jsdelivr.net/npm/lit@3/"
}
}
</script>
</head>
<body>
<hx-card variant="featured" elevation="raised">
<h3 slot="heading">Latest content</h3>
<hx-text>Browse our latest content and support resources.</hx-text>
<hx-button slot="actions" variant="primary">Learn More</hx-button>
</hx-card>
<script type="module">
import '@helixui/library';
</script>
</body>
</html>

The library is published in npm-package “library mode” — its dist/index.js contains bare imports (lit, @helixui/tokens, …) that the browser can only resolve through an import map. See the Installation guide for the canonical CDN setup.

If you are working inside the HELiX monorepo:

Terminal window
# From the repository root
pnpm run dev

The documentation site will be available at http://localhost:3150, Storybook at http://localhost:3151.

Storybook documents all components with API references, usage examples, and live previews.