UX-DSL
XS0px

Quick Start

Initialize your Design System infrastructure.
Choose your preferred integration path below.

Experimental Library - Not Production Ready

UXDSL is currently under active development and should be considered experimental. It is not yet recommended for production environments. APIs and features may change without prior notice. Use at your own discretion.

UX-DSL is framework-agnostic but offers first-class support for modern build tools.

Supported Integrations

Vite

Recommended. Best for React, Vue, Svelte. Supports HMR and optimized builds.

Next.js

Supported via PostCSS or Webpack loader. Good for App Router projects.

Webpack / CLI

Universal fallback for any other environment (Angular, Static Sites).


Starter Template

The fastest way to get started is using our official React starter template:

git clone https://github.com/rsantoyo-dev/uxdsl-react-starter.git my-uxdsl-app
cd my-uxdsl-app
npm install
npm run dev

Option 1: Vite (Recommended)

01

Install Plugin

Add the Vite plugin and core engine.
npm install -D vite-plugin-uxdsl uxdsl-core
02

Configure Vite

Add the plugin to your vite.config.ts.
import { defineConfig } from 'vite';
import vitePluginUxdsl from 'vite-plugin-uxdsl';

export default defineConfig({
plugins: [
  vitePluginUxdsl()
]
});
03

Import & Style

Import your .uxdsl file directly in your app entry point.
// main.tsx
import './styles.uxdsl';

Option 2: Next.js (App Router)

01

Install Packages

Install the CLI, PostCSS plugin, and concurrently (for running scripts together).
npm install -D postcss-uxdsl uxdsl-cli concurrently
02

Initialize

Scaffold configuration and entry file.
npx uxdsl init
03

Connect & Run

  1. Import ./src/uxdsl.css in your root layout.tsx.
  2. Update your package.json dev script:
"scripts": {
"dev": "concurrently \"npx uxdsl build --watch\" \"next dev\""
}
04

Workflow

When you add new .uxdsl files, register them automatically:
npx uxdsl generate-entry