cyberui-2045
v2.3.1
Published
The AI-first cyberpunk React UI library — built-in coding assistant context for Claude, Cursor, and Copilot out of the box.
Maintainers
Readme
CyberUI
A cyberpunk-themed React UI library with neon-styled components and futuristic aesthetics.
Demo & Documentation
- Live Demo & Storybook — interactive component docs and examples
Quick Start
npm install cyberui-2045Import the stylesheet once in your app entry, then use any component:
import 'cyberui-2045/styles.css';
import { Button, Card, CircularProgress } from 'cyberui-2045';
function App() {
return (
<Card>
<CircularProgress progress={75} radius={20}>
<span>75%</span>
</CircularProgress>
<Button variant="primary">Jack In</Button>
</Card>
);
}Components
| Component | Category | Docs | |-----------|----------|------| | Button | Forms | → | | Input | Forms | → | | Select | Forms | → | | Toggle | Forms | → | | Card | Layout | → | | Modal | Layout | → | | Badge | Feedback | → | | Notification | Feedback | → | | Skeleton | Feedback | → | | CircularProgress | Progress | → | | LinearProgress | Progress | → | | SegmentedProgress | Progress | → | | TabNavigation | Navigation | → | | Carousel | Navigation | → | | Steps | Navigation | → | | Image | Media | → | | Checkbox | Forms | → | | Divider | Layout | → | | GradientText | Typography | → | | SectionTitle | Typography | → | | Timeline | Display | → |
Also includes hooks (useCyberNotifications, useAnimatedProgress, useCyberScrollbar) and CyberNotificationProvider context.
AI Coding Setup
If you use an AI coding assistant (Claude Code, Cursor, GitHub Copilot), run this once after installing:
npx cyberui-2045 initIt writes a concise CyberUI usage guide — components, hooks, tokens, and patterns — directly into your AI config file (CLAUDE.md, .cursorrules, or .github/copilot-instructions.md). Idempotent: safe to re-run after upgrades.
npx cyberui-2045 init --claude # Claude Code only
npx cyberui-2045 init --cursor # Cursor only
npx cyberui-2045 init --copilot # GitHub Copilot only
npx cyberui-2045 init --all # all three
npx cyberui-2045 init --dry-run # preview without writingCustomization
CyberUI is an opinionated design system. Layout, spacing, and motion are intentional and fixed. You own the color palette.
CSS token overrides
Override in your global CSS after importing cyberui-2045/styles.css:
:root {
--color-primary: #ff005d; /* neon pink */
--color-secondary: #00fff9; /* cyan */
--color-accent: #fffb00; /* yellow */
--color-success: #00ff9e; /* green */
--color-error: #ff4f4f; /* red */
--color-warning: #ffaa00; /* orange */
--color-base: #1a1a2e; /* page background */
--color-surface: #2d2d44; /* card / component surface */
--color-border-default: #3c3c5e; /* borders */
--color-default: #e0e0e0; /* primary text */
--color-muted: #8888aa; /* secondary text */
--color-inverse: #1a1a2e; /* inverted text */
}These tokens are guaranteed stable across minor versions. All other CSS variables (shadows, gradients, animation values, --tw-*) are internal and may change.
className prop
All components accept a className prop, merged via tailwind-merge — your classes win on conflict:
<Button className="mt-8 w-full">Full width with margin</Button>Use className for layout and spacing. Overriding color or variant classes is supported but visual coherence becomes your responsibility.
cn() utility
CyberUI re-exports its cn() helper (clsx + tailwind-merge) for use in your own components:
import { cn } from 'cyberui-2045';
<div className={cn('base-classes', isActive && 'active', userClassName)} />Changelog
See CHANGELOG.md for the full history.
Development
git clone https://github.com/patrickkuei/CyberUI.git
cd CyberUI
npm install
npm run dev # demo app
npm run storybook # Storybook on :6006
npm run test # unit + Storybook tests
npm run build # typecheck + bundle → dist/Contributing
Contributions are welcome! Please see CONTRIBUTING.md.
License
MIT — see LICENSE for details.
Made with ⚡ by Patrick Yang
