0.1.4 • Published 5 months ago

bromcom-ui-next v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Bromcom UI Component Library

A modern, customizable UI component library built with StencilJS and TailwindCSS.

Project Structure

bromcom-ui-next/
├── src/
│   ├── components/   # UI Components
│   ├── styles/       # Global styles and theme variables
│   ├── global/       # Global utilities and configurations
│   └── z_demos/      # Component demos and examples
└── dist/             # Built files

Development Guidelines

Component Structure

Each component should follow this structure:

components/
└── button/
    ├── button.component.tsx # Component implementation
    ├── button.types.ts      # TypeScript interfaces and types
    ├── button.css           # Component-specific styles
    ├── button.usage.md      # Usage documentation
    └── readme.md            # Auto-generated documentation

Style Guidelines

  • Use TailwindCSS for styling
  • Follow BEM-like naming convention with bcm- prefix
  • Use CSS variables for theming support
  • Follow the defined color palette and typography system

Installation

Via CDN

Add the following to your HTML file:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bromcom-ui@latest/dist/bromcom-ui/bromcom-ui.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/bromcom-ui@latest/dist/bromcom-ui/bromcom-ui.esm.js"></script>

Via NPM

npm install bromcom-ui@latest

For a specific version:

npm install bromcom-ui@x.x.x

Usage

In a Standard Web Project

  1. Include the library via CDN or local files:
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="path/to/bromcom-ui.css" />
    <script type="module" src="path/to/bromcom-ui.esm.js"></script>
  </head>
  <body>
    <bcm-button>Click Me</bcm-button>
  </body>
</html>

In an Angular Project

  1. Install the package:
npm install bromcom-ui@latest
  1. Add the CSS to your angular.json:
{
  "styles": ["node_modules/bromcom-ui/dist/bromcom-ui/bromcom-ui.css"]
}
  1. Configure your module:
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { defineCustomElements } from 'bromcom-ui/loader';

defineCustomElements();

@NgModule({
  // ...other configurations
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
  1. Use components in your templates:
<bcm-button kind="primary">Click Me</bcm-button>

Component Documentation

Each component includes:

  • Property documentation
  • Usage examples
  • Type definitions
  • CSS customization options

Example usage documentation can be found in the component's .usage.md file.

Theme Customization

The library uses CSS variables for theming. Override these variables to customize the appearance:

:root {
  --bcm-ui-color-primary: #your-color;
  --bcm-ui-font-family: your-font;
}

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Follow the style guidelines
  4. Submit a pull request

Building

# Install dependencies
npm install

# Start development server
npm start

# Build for production
npm run build

Support

For questions or issues, contact the UI team:

  • Murat Özkan (murat.ozkan@bromcom.com)
  • Ramazan Yıldırım (ramazan.yildirim@bromcom.com)

License

Copyright © 2025 Bromcom Computers Plc

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.0

5 months ago