@konsys.co/ui
v0.2.1
Published
React jsx component library built by Konsys developers
Readme
Konsys UI React Component Library
Built with shadcn, radix. Powered by 2 beagles and a naughty golden retreiver!
Prerequisites:
- node v22 or later
- tailwindcss v4 configured
- path aliases @ to src directory
Available Commands:
- version: display application info + version
- list: display all available components
- init: install required dependencies for the components
- add: install selected component into your project
Usage Guide
- call
npx @konsys.co/ui initfor installing required dependencies - place this into .css file and load into your application
@import "tailwindcss";
@import "tw-animate-css";
@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-success: var(--success);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-item: var(--sidebar-item);
--color-sidebar-item-foreground: var(--sidebar-item-foreground);
}
:root {
--spacing: 4px;
--default-height: 40px;
--radius: 0.625rem;
--background: hsl(60 4.8% 95.9%);
--foreground: hsl(300 0% 4%);
--card: hsl(60 9.1% 97.8%);
--card-foreground: hsl(300 0% 4%);
--popover: hsl(60 4.8% 100%);
--popover-foreground: hsl(300 0% 4%);
--primary: hsl(225, 72.7%, 24.9%);
--primary-foreground: hsl(300 0% 98%);
--secondary: hsl(300 0% 96%);
--secondary-foreground: hsl(330 0% 9%);
--muted: hsl(300 0% 96%);
--muted-foreground: hsl(330 0% 45%);
--accent: hsl(300 0% 96%);
--accent-foreground: hsl(330 0% 9%);
--success: hsl(90, 85%, 40%);
--destructive: hsl(357.18 100% 45%);
--border: hsl(330 0% 90%);
--input: hsl(330 0% 90%);
--ring: hsl(0 0% 63%);
--sidebar: hsl(225, 72.7%, 24.9%);
--sidebar-foreground: hsl(300 0% 98%);
--sidebar-item: hsl(300 0% 96%);
--sidebar-item-foreground: hsl(330 0% 9%);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}- check available component names with
npx @konsys.co/ui list - add desired components with
npx @konsys.co/ui add <components>
Future Roadmap:
- [x] Add showcase website
- [] Add supports config file for different component directory, package manager, etc.
- [] Add utility hooks like useDialog, etc.
