bakery-ui
v0.1.0
Published
π₯ A delicious Angular UI component library with bakery-inspired theming and Storybook integration
Maintainers
Readme
π₯ Bakery UI
A delicious Angular UI component library with bakery-inspired theming and Storybook integration.
β¨ Features
- π¨ Bakery-inspired theming with warm, golden colors
- π§© Modular components built with Angular 20
- π± Responsive design that works on all devices
- π§ TypeScript support with full type definitions
- π Storybook integration for component development
- π― Tree-shakable for optimal bundle size
- βΏ Accessible components following WCAG guidelines
π¦ Installation
npm install bakery-uiπ Quick Start
1. Import the component in your Angular module or standalone component:
import { Component } from '@angular/core';
import { Button } from 'bakery-ui';
@Component({
selector: 'app-example',
imports: [Button],
template: `
<lib-button
label="Order Now"
variant="primary"
size="medium">
</lib-button>
`
})
export class ExampleComponent {}2. Use in your template:
<!-- Primary button -->
<lib-button label="Order Now" variant="primary" size="medium"></lib-button>
<!-- Secondary button -->
<lib-button label="Learn More" variant="secondary" size="large"></lib-button>
<!-- Danger button -->
<lib-button label="Delete" variant="danger" size="small" [disabled]="false"></lib-button>π§© Available Components
Button Component
A versatile button component with bakery-inspired styling.
Properties:
label: string- Button text (default: 'Button')variant: 'primary' | 'secondary' | 'danger'- Button style (default: 'primary')size: 'small' | 'medium' | 'large'- Button size (default: 'medium')disabled: boolean- Disabled state (default: false)
Example:
<lib-button
label="Add to Cart"
variant="primary"
size="large"
[disabled]="isLoading">
</lib-button>π¨ Theming
Bakery UI comes with a built-in bakery-inspired theme featuring:
- Primary: Golden colors reminiscent of fresh bread
- Secondary: Rich brown tones like chocolate
- Danger: Warm red for important actions
- Hover effects: Subtle animations and depth
- Typography: Clean, readable fonts
π Storybook
View all components in our interactive Storybook:
# Clone the repository
git clone https://github.com/vivekraj-kr/bakery-ui.git
cd bakery-ui
# Install dependencies
npm install
# Run Storybook
ng run bakery-ui:storybookπ§ Development
Building the Library
ng build bakery-uiRunning Tests
ng testContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π Requirements
- Angular 20.0.0 or higher
- Node.js 18.0.0 or higher
- npm 8.0.0 or higher
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π€ Support
- π Report bugs
- π‘ Request features
- π§ Contact us
π Acknowledgments
- Built with Angular CLI
- Powered by Storybook
- Inspired by the warmth and comfort of bakeries everywhere
Made with β€οΈ and a lot of β by Vivek Raj
