mcc-brick-ui
v1.49.0
Published
MCC's Design System for building consistent and reusable interfaces with React + Tailwind CSS.
Readme
Brick UI
MCC's Design System for building consistent and reusable interfaces with React + Tailwind CSS.
Structure
Components follow an architecture based on Atomic Design. Typical structure:
src/
├── index.ts # Main entry point of the library
└── components/
├── atoms/
└── molecules/
└── component-name/
├── index.tsx
└── component-name.stories.tsxNote: Always use kebab-case naming convention for folders and files.
Installing the project locally
npm installRunning Storybook
npm run storybookCreating new components
- Create the component inside the
src/componentsfolder - Create the corresponding
.stories.tsxfile - Export it in
src/index.ts
Using Brick UI in another React project
Installation
In your React project, install the package:
npm install mcc-brick-uiTailwind integration
Import the plugin and safelist from the package inside your Tailwind configuration file.
// tailwind.config.ts import { brickPlugin, safelist } from 'mcc-brick-ui'; export default { content: ['./src/**/*.{js,ts,jsx,tsx}'], safelist, plugins: [brickPlugin], };Build your CSS using Tailwind so the plugin theme is applied. A typical command looks like:
npx tailwindcss -i ./src/index.css -o ./dist/index.css \ --config ./tailwind.config.ts --minifyIf you prefer, you can import the precompiled styles directly in your global stylesheet:
@import 'mcc-brick-ui/dist/styles.css';
Tests
Not configured yet.
Publishing a new version to NPM
1. Have an NPM account
If you don't have one yet, create it at: https://www.npmjs.com/signup
2. Be added by an owner of this package
Ask one of the current owners to run:
npm owner add your-npm-username package-nameSteps to publish
Login to NPM
npm loginCheck which user is logged in
Useful if you have multiple NPM accounts.
npm whoamiBuild the package
npm run buildUpdate the version
Choose the appropriate semantic version increment:
- patch → bug fixes
- minor → new features without breaking changes
- major → breaking changes (less common)
npm version patch
# or
npm version minor
# or
npm version majorPublish to NPM
1. Generate an Access Token
If you already have a token, you can skip this step.
- Go to https://www.npmjs.com/
- Log in to your account
- Click on your profile picture → Account
- Go to Access Tokens
- Click Generate New Token
Token types
- Publish → Recommended for local development
- Automation → Recommended for CI/CD pipelines
- Read-only → Cannot publish packages
For local usage, use Publish.
- Confirm the action using 2FA
- Copy the generated token (it will not be shown again)
2. Configure the Token Locally
npm config set //registry.npmjs.org/:_authToken=YOUR_TOKEN_HERE3. Publish
Once the token is configured, publish the package normally:
npm publishCheck publication
npm info package-name