Getting Started with ORYN UI
ORYN UI — Crafting clarity into every interface. A modern component library for building beautiful, accessible interfaces.
Install the Package
Install oryn-ui into your project (zero external framework lock-in, with native SVG icon primitives):
npm install oryn-uiImport Styles (1 Line)
Import pre-compiled styles in your root layout (app/layout.tsx in Next.js or src/main.tsx in Vite). No Tailwind configuration is required:
1// In your root layout or main entry:
2import "oryn-ui/styles.css"Active automatically. All buttons, badges, and focus rings render with sleek black & white monochrome contrast.
Just add data-style="normal" to your <html> element.
Import & Use Components
Import components anywhere in your application:
1import {
2 Button,
3 Card,
4 CardHeader,
5 CardTitle,
6 CardDescription,
7 CardContent,
8 Input,
9 Label
10} from 'oryn-ui'
11
12export function LoginCard() {
13 return (
14 <Card className="max-w-sm w-full">
15 <CardHeader>
16 <CardTitle>Sign In</CardTitle>
17 <CardDescription>Enter your corporate credentials to continue</CardDescription>
18 </CardHeader>
19 <CardContent className="space-y-4">
20 <div className="space-y-1.5">
21 <Label htmlFor="email">Email address</Label>
22 <Input id="email" placeholder="name@example.com" type="email" />
23 </div>
24 <Button className="w-full">Continue</Button>
25 </CardContent>
26 </Card>
27 )
28}Why ORYN UI?
Import from root or individual subpaths (/button, /core) for minimal bundle size.
Keyboard navigation, focus rings, and ARIA roles pre-configured across all interactive elements.
Tailwind CSS CSS variables system with automatic dark-mode switching and theme tokens.
Theming & CSS Variables
ORYN UI components are styled using semantic CSS custom properties. You can import the pre-built stylesheet directly or customize the color tokens in your global stylesheet:
1/* Import pre-built theme */
2@import "oryn-ui/theme.css";
3
4/* Or customize design tokens directly */
5:root {
6 --background: #ffffff;
7 --foreground: #09090b;
8 --primary: #2563eb;
9 --primary-foreground: #ffffff;
10 --muted: #f4f4f5;
11 --muted-foreground: #71717a;
12 --border: #e4e4e7;
13 --ring: #2563eb;
14 --radius: 0.5rem;
15}
16
17.dark {
18 --background: #09090b;
19 --foreground: #fafafa;
20 --primary: #3b82f6;
21 --primary-foreground: #ffffff;
22 --muted: #27272a;
23 --muted-foreground: #a1a1aa;
24 --border: #27272a;
25 --ring: #3b82f6;
26}