npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mbt-ui-kit

v0.1.12

Published

React component library with SCSS

Readme

MBT UI Kit

React компонентная библиотека со стилями на SCSS для Electron приложений.

Установка

npm install mbt-ui-kit
# или
bun install mbt-ui-kit

Использование

import { Button, Input } from "mbt-ui-kit";
import "mbt-ui-kit/styles";

function App() {
  return (
    <div>
      <Input label="Email" placeholder="Введите email" showSearchIcon />
      <Button>Отправить</Button>
    </div>
  );
}

Компоненты

Button

Кнопка с тремя состояниями: default, hover, disabled.

<Button>Start</Button>
<Button disabled>Start</Button>
<Button fullWidth>Start</Button>

Input

Текстовое поле с label и опциональной иконкой.

<Input label="Label" placeholder="text_input" showSearchIcon />
<Input label="Label" placeholder="text_input" muted />
<Input placeholder="text_input" fullWidth />

Typography

Компоненты для заголовков, текста и метрик.

<Heading level={1}>Main Title</Heading>
<Text>Regular text</Text>
<Text strong>Strong text</Text>
<Metric large>1,234</Metric>

MenuButton

Кнопка для боковых меню с иконкой и текстом.

<MenuButton>Training</MenuButton>
<MenuButton selected>Training</MenuButton>
<MenuButton small>Training</MenuButton>

Разработка

# Установка зависимостей
bun install

# Запуск Storybook
bun storybook

# Сборка библиотеки
bun run build

# Линтинг и форматирование
bun run lint
bun run format

Дизайн-токены

Токены дизайн-системы доступны в трёх форматах для максимальной гибкости.

1. TypeScript/JavaScript

Импорт только токенов (без компонентов и стилей):

import { tokens, colors, spacing, radius } from "mbt-ui-kit/tokens";

const MyComponent = () => (
  <div style={{ 
    backgroundColor: colors.primary,
    padding: spacing[4],
    borderRadius: radius.sm 
  }}>
    Content
  </div>
);

Или из основного пакета:

import { colors, spacing, fontSizes } from "mbt-ui-kit";

Доступные токены:

  • colors — цветовая палитра
  • fonts — семейства шрифтов
  • fontSizes — размеры текста
  • fontWeights — начертания шрифтов
  • spacing — отступы и размеры
  • radius — радиусы скругления
  • zIndex — z-индексы
  • transitions — анимации

2. CSS Custom Properties

Импорт CSS переменных:

import "mbt-ui-kit/tokens.css";

Использование в CSS/SCSS:

.my-class {
  background-color: var(--mbt-color-primary);
  padding: var(--mbt-space-4);
  border-radius: var(--mbt-radius-sm);
  font-family: var(--mbt-font-primary);
  transition: all var(--mbt-transition-fast);
}

Все переменные имеют префикс --mbt- для избежания конфликтов.

3. SCSS Variables (для расширения библиотеки)

@use "mbt-ui-kit/src/styles/tokens" as *;

.my-class {
  background-color: $primary;
  padding: $space-4;
  border-radius: $radius-sm;
  font-family: $font-ui-primary;
}

TypeScript

Библиотека полностью типизирована с подробными JSDoc комментариями.

Лицензия

MIT