lora-ds
v1.0.6
Published
A comprehensive design system and component library for building accessible web applications with React and Next.js. Built with React Aria Components.
Maintainers
Readme
Lora Design System
A comprehensive, accessible design system built with React Aria Components, featuring 48+ production-ready components.
Features
- 🎨 48+ Components - Complete set of UI components for modern web applications
- ♿ Accessible - Built with React Aria for WCAG compliance
- 🎭 Dark/Light Mode - Automatic theme switching based on user preference
- 📦 Tree-shakeable - Import only what you need
- 🎯 TypeScript - Full type safety with TypeScript
- 💅 CSS Modules - Scoped styling without conflicts
- 🎪 Storybook - Interactive component documentation
Installation
npm install lora-ds
# or
yarn add lora-ds
# or
pnpm add lora-dsQuick Start
- Import the global styles in your app:
// app/layout.tsx or pages/_app.tsx
import 'lora-ds/styles';- Use components:
import { ButtonComponent } from 'lora-ds';
export default function App() {
return (
<ButtonComponent variant="contained" color="primary">
Click me
</ButtonComponent>
);
}Components
Buttons (2)
- Button - Primary action button with variants
- ButtonGroup - Group related buttons together
Forms (16)
- Autocomplete - Text input with suggestions
- Checkbox - Checkbox with indeterminate state
- DatePicker - Single date selection
- DateRangePicker - Date range selection with dual calendars
- DateTimePicker - Combined date and time selection
- InputGroup - Input with adornments
- RadioGroup - Radio button groups
- Rating - Star rating component
- Select - Dropdown selection
- Slider - Range slider input
- Switch - Toggle switch
- TextField - Text input with validation
- TimeField - Time-only input
Overlay (3)
- Modal - Dialog overlay
- Popover - Floating content container
- Tooltip - Contextual help tooltips
Navigation (8)
- Breadcrumbs - Navigation trail
- Drawer - Sliding side panel
- Link - Hyperlinks with variants
- Menu - Dropdown menus
- Pagination - Page navigation
- SpeedDial - Floating action button with menu
- Stepper - Step-by-step progress
- Tabs - Tabbed navigation
- TreeView - Hierarchical tree navigation
Data Display (13)
- Accordion - Expandable content panels
- Avatar - User profile images
- Badge - Status indicators
- Chip - Tags and filters
- Divider - Content separators
- ImageList - Image grid layouts
- ListBox - Selectable lists
- Table - Data tables with sorting
- Timeline - Event timeline
- Typography - Text styling components
Layout (4)
- Box - Flexible container
- Container - Responsive container
- Grid - 12-column grid system
- Paper - Elevated surface
Feedback (5)
- Alert - Alert messages
- Backdrop - Overlay backdrop
- Progress - Progress indicators
- Skeleton - Loading placeholders
- Snackbar - Toast notifications
Theming
The design system includes a comprehensive color system with automatic dark/light mode support:
/* Colors available */
--primary: #F75A00
--secondary: #859448
--success, --error, --warning, --info
/* Plus dark mode variants */TypeScript
All components are fully typed with TypeScript:
import { ButtonComponent, BaseButtonProps } from 'lora-ds';
const MyButton: React.FC<BaseButtonProps> = (props) => {
return <ButtonComponent {...props} />;
};Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT © Henrique
Credits
Built with:
- React Aria Components - Accessible component primitives
- Iconify - Icon framework
- Next.js - React framework
- Storybook - Component documentation
