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

fsk-design-system

v1.11.0

Published

FSK UI components library

Readme

💠 FSK Design System

npm version

Универсальная дизайн-система с поддержкой тем, типизацией и кастомных UI-компонентов на базе Ant Design и Emotion


📦 Требования и установка

1. Основной пакет

npm install fsk-design-system

2. Обязательные зависимости

💡 Если в вашем проекте они уже установлены — этот шаг можно пропустить.

"dependencies": {
  "antd": ">=5.27.4 <6.0.0",
  "react": ">=18.3.1 <19.0.0",
  "react-dom": ">=18.3.1 <19.0.0"
}

npm

npm install [email protected] [email protected] [email protected]

yarn

yarn add [email protected] [email protected] [email protected]

pnpm

pnpm add [email protected] [email protected] [email protected]

⚡ Быстрый старт

1️⃣ Импортируйте стили

import 'fsk-design-system/styles.css';

2️⃣ Оберните приложение в ThemeProvider

import 'fsk-design-system/styles.css';

import { ThemeProvider } from 'fsk-design-system';

const App = () => (
  <ThemeProvider>
    {/* Ваш код */}
  </ThemeProvider>
);

3️⃣ Подключите NotificationProvider

import { ThemeProvider, NotificationProvider, useNotification, Button } from 'fsk-design-system';

const App = () => (
  <ThemeProvider>
    <NotificationProvider>
      <Component />
    </NotificationProvider>
  </ThemeProvider>
);

const Component = () => {
  const notify = useNotification()

  return (
    <Button onClick={() => notify.success({ message: "Данные успешно обновлены" })}>
      Сохранить
    </Button>
  )
};

🧩 Примеры компонентов

📚 Полный список компонентов доступен в Storybook

import { Button, Input } from 'fsk-design-system';

<Button size="l" type="main-primary">Click me</Button>
<Input label="Email" placeholder="[email protected]" />

🌗 Управление темой

import { useTheme } from 'fsk-design-system';

const ThemeSwitcher = () => {
  const { changeTheme } = useTheme();

  return (
    <button onClick={() => changeTheme('dark')}>
      Переключить на тёмную тему
    </button>
  );
};

🎨 Доступные темы

| Тема | Описание | |---------------|----------------| | light | Светлая тема (по умолчанию) | | dark | Тёмная тема |

🪶 Иконки

Иконки взяты из библиотеки solar-icons

Пример:

import { InfoCircle } from 'fsk-design-system/icons';

<Button icon={<InfoCircle weight="Outline" />}>Button</Button>

Лучше использовать всегда одну и ту же иконку для разных направлений

Пример:

// Вместо:
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp } from 'fsk-design-system/icons';

<ArrowDown />
<ArrowLeft />
<ArrowUp />
<ArrowRight />

// Лучше так:
import { ArrowDown } from 'fsk-design-system/icons';

<ArrowDown /> // стрелка вниз
<ArrowDown style={{ transform: "rotate(90deg)" }}  /> // стрелка влево
<ArrowDown style={{ transform: "rotate(180deg)" }}  /> // стрелка вверх
<ArrowDown style={{ transform: "rotate(-90deg)" }}  /> // стрелка вправо