Get Up and Running
This guide will help you build your first component with Luminescent UI. We’ll create a simple card with a toggle switch.Make sure you’ve completed the installation before starting this guide.
Choose Your Framework
- Qwik
- React
- Tailwind Only
Understanding the Code
What is lum-card?
What is lum-card?
lum-card is a utility class that applies Luminescent UI’s card styling:- Subtle background with blur effect
- Rounded corners
- Border styling
- Hover and focus states
p-6 for padding.Toggle Component Props
Toggle Component Props
The Toggle component accepts these props:
checkbox- Makes it appear as a checkbox instead of a switchround- Makes it fully rounded (circular)id- Required for label association- All standard checkbox input attributes
CSS Custom Properties
CSS Custom Properties
Luminescent UI uses CSS variables for theming:
--lum-text- Primary text color--lum-text-secondary- Secondary text color--lum-accent- Accent color--lum-input-bg- Input background- And many more…
Try More Components
Dropdown
Create dropdown menus with Luminescent styling
SelectMenu
Build accessible select inputs
Nav
Add navigation with active states
ColorPicker
Let users pick colors (Qwik only)
Next Steps
Customize Your Theme
Learn how to customize colors and theming variables
Add Markdown Support
Install the optional markdown formatting for beautiful content rendering
Learn Core Concepts
Understand Tailwind utilities and depth effects
Common Patterns
Form with Toggles
Card Grid
Troubleshooting
Styles not applying
Styles not applying
Make sure your CSS imports are in the correct order:
@import "@luminescent/ui";@plugin "@luminescent/ui/lum-bg";- Framework-specific configuration (
@configor@source)
Components not found
Components not found
Check your import paths:
Type errors in TypeScript
Type errors in TypeScript
Make sure your TypeScript is configured correctly and the package types are being recognized. The packages include type definitions.
Need Help?
Core Concepts
Learn about Tailwind utilities and theming
Qwik Components
Browse Qwik component documentation
React Components
Browse React component documentation
GitHub
Report issues or contribute