StoryPoint3-UI β’ Save 3 Story Points
π’ System Running
StoryPoint3-UI feels like it saves developers 3 story points of effort with minimalist, performance-first components.
β Designed for AI tools and copilots to understand
β Simple for developers to implement and maintain
β One way to do things, done right
Getting Started
Welcome to SP3-UI! This minimalist design library focuses on:
β’ Performance-first approach
β’ Developer experience
β’ Easy customization
β’ Minimal bundle size
Installation
coming soon
Import the components you need:
import { Accordion, AS, AH, AC } from 'sp3-ui';Available Components
- Accordion - Collapsible content sections with customizable themes
- More components coming soon...
- TypeScript support out of the box
- Tailwind CSS integration
- Dark mode support
- Accessibility compliant
- Customizable color themes
Usage Example
import { Accordion, AS, AH, AC } from 'sp3-ui';
function MyApp() {
return (
<Accordion name="demo" color="blue">
<AS id="section1">
<AH>Getting Started</AH>
<AC>
<p>This is the content for section 1</p>
</AC>
</AS>
<AS id="section2">
<AH>Advanced Usage</AH>
<AC>
<p>This is the content for section 2</p>
</AC>
</AS>
</Accordion>
);
}Accordion= Main accordion containerAS= Accordion Section (individual collapsible section)AH= Accordion Header (clickable trigger)AC= Accordion Content (collapsible content area)
Customization
The accordion component supports multiple color options:
Predefined Colors:
blue(default)redgreenpurpleambergray
Custom Colors:
- Any hex color code (e.g.,
#456456)
name: string- Unique identifier for the accordioncolor?: string- Color theme or hex codeenableMultiSectionOpen?: boolean- Allow multiple sections opendefaultOpen?: string[]- Array of section IDs to open by defaultclassName?: string- Additional CSS classes
id: string- Unique identifier for the sectiondefaultOpen?: boolean- Whether section starts openclassName?: string- Additional CSS classes
children: ReactNode- Header contentclassName?: string- Additional CSS classes
children: ReactNode- Content to display when expandedclassName?: string- Additional CSS classes
The accordion component supports multiple color themes out of the box. Try clicking on different accordions below to see the color variations:
Eco-Friendly Design
Perfect for environmental, sustainability, or nature-focused applications. The green theme provides a calm, organic feeling.
<Accordion color="green" name="eco-demo">
<AS id="eco-tips">
<AH>Environmental Tips</AH>
<AC>Content here...</AC>
</AS>
</Accordion>Creative Solutions
Great for creative, artistic, or premium applications. Purple conveys creativity, luxury, and innovation.
<Accordion color="purple" name="creative-demo">
<AS id="design-tips">
<AH>Design Guidelines</AH>
<AC>Content here...</AC>
</AS>
</Accordion>Important Notice
Ideal for urgent information, warnings, or critical system messages. Red draws immediate attention.
<Accordion color="red" name="alert-demo">
<AS id="urgent">
<AH>System Alert</AH>
<AC>Content here...</AC>
</AS>
</Accordion>Warning Message
Perfect for cautionary information, tips, or moderate alerts. Amber provides a balanced warning tone.
<Accordion color="amber" name="warning-demo">
<AS id="caution">
<AH>Important Information</AH>
<AC>Content here...</AC>
</AS>
</Accordion>Brand Colors
Use your own brand colors with hex codes:
<Accordion color="#456456" name="brand-demo">
<AS id="brand">
<AH>Brand Guidelines</AH>
<AC>Content here...</AC>
</AS>
</Accordion>- Node.js 18+
- npm, yarn, or pnpm
# Clone the repository
git clone https://github.com/your-username/sp3-ui.git
# Install dependencies
npm install
# Start development server
npm run dev# Build for production
npm run build
# Preview production build
npm run previewWe welcome contributions! Please read our contributing guidelines before submitting PRs.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE file for details.
- π§ Email: support@sp3-ui.dev
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions