@devadigax/aura-ui
v4.2.0
Published
A modern glassmorphism component library built with React
Maintainers
Readme
Aura UI
Aura UI is a glassmorphism-focused React component library with a built-in showcase app. It ships a shared stylesheet plus lightweight React wrappers for common UI primitives like buttons, cards, modals, alerts, badges, navigation, forms, and more.
Features
- React-first component API
- Shared glassmorphism design system and utility classes
- Light and dark theme support via
data-theme="dark" - Bootstrap-like class naming for easy customization
- Vite-powered showcase app for local development and docs
- Library build for package distribution and separate showcase build for deployment
Installation
npm i @devadigax/aura-uiPeer dependencies:
reactreact-dom
Quick Start
import { Alert, Button, Card } from '@devadigax/aura-ui';
import '@devadigax/aura-ui/style.css';
export default function Example() {
return (
<Card hover>
<Card.Body>
<Card.Title>Aura UI</Card.Title>
<Alert variant="success" heading="Ready">
Your UI is set up.
</Alert>
<Button variant="primary" size="lg">
Get Started
</Button>
</Card.Body>
</Card>
);
}Install and use it in your app:
Available Exports
Current top-level exports include:
ButtonCardModalAlertBadgeBreadcrumbAccordionCollapseDropdownFormGroupFormLabelFormTextInputSelectTextareaFormCheckFormCheckInputFormSwitchFormSwitchInputInputGroupInputIconListGroupPaginationPlaceholderProgressSpinnerTableToastToastContainerTooltipCarouselOffcanvasPopoverNavNavbar
Development
Run the showcase locally:
npm run devBuild the showcase:
npm run buildBuild the library bundle:
npm run build:libPreview the built showcase:
npm run previewShowcase And Netlify
The showcase build output goes to dist-showcase (ignored by git).
For Netlify:
- Build command:
npm run build - Publish directory:
dist-showcase
The repo also includes a public/_redirects file for SPA fallback behavior.
Project Structure
src/
components/ React wrappers (21 components + Popover)
showcase/ Showcase app and component demo pages
styles/ Shared framework and component CSS
index.js Library export surface
index.html Showcase app entry
public/ Static assets and _redirects
vite.config.js Library/showcase build configTheming
Aura UI uses CSS custom properties for theming. To enable dark mode:
document.documentElement.setAttribute('data-theme', 'dark');To return to light mode:
document.documentElement.removeAttribute('data-theme');License
MIT
