Getting Started
Install nosible-ux, import the design tokens, and render your first component in under 5 minutes.
Install the package and its required peer dependencies with your package manager of choice.
npm install nosible-ux
yarn add nosible-ux
pnpm add nosible-ux
nosible-ux requires React 18 or 19 and React DOM as peer dependencies. These are typically already in your project.
npm install react react-dom
Next.js users
Import the design tokens and base styles once at your app root. The stylesheet injects all CSS custom properties into :root.
// app/layout.tsx (Next.js) or index.tsx (Vite) import 'nosible-ux/styles';
nosible-ux ships a Tailwind preset that maps all brand tokens to utility classes. Extend your Tailwind config to include it:
import preset from 'nosible-ux/tailwind';
import type { Config } from 'tailwindcss';
const config: Config = {
presets: [preset],
content: [
'./app/**/*.{ts,tsx}',
// include nosible-ux source for class scanning
'./node_modules/nosible-ux/dist/**/*.{js,mjs}',
],
};
export default config;Import any component from the top-level package. Named exports for everything.
'use client';
import { Button, Badge, TextInput } from 'nosible-ux';
import 'nosible-ux/styles';
export default function App() {
return (
<div className="flex items-center gap-4 p-8 bg-obsidian">
<TextInput placeholder="Search…" />
<Button variant="solid" size="md">
Launch
</Button>
<Badge variant="solid">New</Badge>
</div>
);
}All visual tokens are CSS custom properties. Override them in your own stylesheet to customise any aspect of the design system. See the Theming page for the full token reference.
:root {
/* Override the accent colour */
--c-neo-green: #FF8C00;
/* Speed up all hover transitions (default 120 ms) */
--dur-fast: 80ms;
}