@mgomezw/bioma
v0.1.0
Published
Bioma 2.0 Design System - Angular component library with comprehensive design tokens
Maintainers
Readme
Bioma 2.0 Design System
A comprehensive Angular component library with a robust design token system for building consistent, accessible user interfaces.
Features
- 🎨 Comprehensive Design Tokens - 150+ semantic and foundation tokens for colors, spacing, typography, shadows, and more
- 🧩 Angular 21.1 Standalone Components - Modern, tree-shakeable components
- ♿ Accessibility First - WCAG-compliant components with built-in a11y features
- 📱 Responsive - Mobile-first design with Bootstrap 5.3 integration
- 🎭 Theming Support - Light/dark mode ready with semantic tokens
- 📚 Storybook Documentation - Interactive component playground and documentation
- 🔤 Material Symbols - 2,500+ icons via Google's Material Symbols
Installation
npm install @mgomezw/biomaPeer Dependencies
This library requires the following peer dependencies:
npm install @angular/common @angular/core @angular/platform-browser rxjsQuick Start
1. Import Components
Import standalone components directly into your Angular application:
import { Component } from '@angular/core';
import { ButtonComponent } from '@mgomezw/bioma';
@Component({
selector: 'app-root',
standalone: true,
imports: [ButtonComponent],
template: `
<bio-button
label="Click Me"
variant="filled"
size="large"
(clicked)="handleClick($event)">
</bio-button>
`
})
export class AppComponent {
handleClick(event: MouseEvent) {
console.log('Button clicked!', event);
}
}2. Import Design Tokens
Add the design tokens stylesheet to your global styles:
// src/styles.scss
@import '@mgomezw/bioma/src/styles/tokens';Or import in your angular.json:
{
"projects": {
"your-app": {
"architect": {
"build": {
"options": {
"styles": [
"node_modules/@mgomezw/bioma/src/styles/tokens.scss",
"src/styles.scss"
]
}
}
}
}
}
}3. Use Design Tokens
Access design tokens via CSS custom properties:
.my-component {
color: var(--text-primary);
background-color: var(--bg-default);
padding: var(--spacing-4);
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
}Available Components
Button Component
Full-featured button with multiple variants, sizes, and states:
import { ButtonComponent } from '@mgomezw/bioma';Properties:
label- Button textvariant-'filled' | 'outlined' | 'flat' | 'link'size-'small' | 'medium' | 'large'disabled- BooleanfullWidth- BooleaniconStart,iconEnd- Material Symbol icon names(clicked)- Click event emitter
Example:
<bio-button
label="Submit"
variant="filled"
size="large"
[iconStart]="true"
iconStartName="send"
(clicked)="onSubmit()">
</bio-button>IconFont Component
Material Symbols icon component:
import { IconFontComponent } from '@mgomezw/bioma';Example:
<bio-icon-font
icon="home"
size="24"
type="rounded">
</bio-icon-font>Token Documentation Components
For building design system documentation:
import { TokenTableComponent, TokenDocComponent } from '@mgomezw/bioma';Design Tokens Reference
Color Tokens
// Neutral palette
--neutral-50, --neutral-100, ..., --neutral-950
--neutral-white, --neutral-black
// Brand palette (Bioma Red)
--brand-50, --brand-100, ..., --brand-950
// Semantic colors
--text-primary, --text-secondary, --text-muted
--bg-default, --bg-subtle, --bg-muted
--border-subtle, --border-default, --border-strongSpacing Tokens
--spacing-0 // 0px
--spacing-1 // 4px
--spacing-2 // 8px
--spacing-3 // 12px
--spacing-4 // 16px (base)
--spacing-6 // 24px
--spacing-8 // 32px
--spacing-12 // 48px
--spacing-16 // 64pxTypography, Shadows, and More
See the full token documentation in Storybook.
Development
Running Storybook Locally
git clone https://github.com/sapuk-ai/bioma.git
cd bioma
npm install
npm run storybookVisit http://localhost:6006 to explore components.
Building the Library
npm run build:libOutput: dist/bioma/
Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
License
Copyright © 2026 Bioma. All rights reserved.
This is proprietary software. See LICENSE for details.
Support
For issues, questions, or feature requests, please contact the Bioma development team.
Built with ❤️ using Angular 21.1 and modern web standards.
