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

@salutejs/plasma-giga

v0.370.1

Published

Salute Design System / React UI kit for PLASMA GIGA web applications

Readme

Библиотека компонентов для вертикали PLASMA GIGA

license npm version typescript plasma-themes

Реализация компонентов для создания веб-приложений.

Компоненты реализованы с помощью React и поставляются в двух вариантах:

Ссылки

Установка

Требуются react и react-dom версии 16.13.1 или выше:

$ npm install --save react react-dom
$ npm install --save @salutejs/plasma-giga @salutejs/plasma-themes

Дальнейшие шаги зависят от выбранного варианта поставки.

Для варианта на styled-components:

$ npm install --save [email protected]

CSS-вариант дополнительных зависимостей не требует.

Варианты поставки

Примечание: CSS-вариант является поставкой по умолчанию.

Один и тот же набор компонентов доступен из двух точек входа:

| Точка входа | Реализация | Дополнительные зависимости | | ----------------------------------------- | ----------------- | -------------------------- | | @salutejs/plasma-giga | предсобранный CSS | нет | | @salutejs/plasma-giga/styled-components | styled-components | [email protected] |

import { Button } from '@salutejs/plasma-giga';
// или
import { Button } from '@salutejs/plasma-giga/styled-components';

Подключение шрифтов

Типографическая система основана на фирменных шрифтах, они поставляются с CDN.

Добавьте два css-файла внутрь тега <head>.

<link rel="stylesheet" href="https://cdn-app.sberdevices.ru/shared-static/0.0.0/styles/SBSansText.0.2.0.css" />
<link rel="stylesheet" href="https://cdn-app.sberdevices.ru/shared-static/0.0.0/styles/SBSansDisplay.0.2.0.css" />

Подключение темы

Тема подключается один раз в корне приложения.

Примечание: Для Next.js — в pages/_app.tsx.

Тема включает в себя цветовые и типографические токены.

Доступны светлая и тёмная темы — plasma_giga__light и plasma_giga__dark.

Через импорт css-файла

import '@salutejs/plasma-themes/css/plasma_giga__light.css';

Через styled-components

import { createGlobalStyle } from 'styled-components';
import { plasma_giga__light } from '@salutejs/plasma-themes';

const Theme = createGlobalStyle(plasma_giga__light);

// вызовите <Theme /> в корне приложения

Переключение темы в рантайме и подключение через css-модули описаны в документации.

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

// App.tsx
import { Button, BodyL } from '@salutejs/plasma-giga';
import '@salutejs/plasma-themes/css/plasma_giga__light.css';

export const App = () => {
    return (
        <>
            <BodyL>Hello, GIGA!</BodyL>
            <Button>Кнопка</Button>
        </>
    );
};

Дизайн-токены доступны в виде js-переменных:

  • базовый набор — из @salutejs/plasma-themes/tokens
  • уникальные токены темы — из @salutejs/plasma-themes/tokens/plasma_giga.
import { textAccent } from '@salutejs/plasma-themes/tokens';

<p style={{ color: textAccent }}>Пример использования токена</p>;

SSR и Next.js

  • Библиотека поддерживает React Server Components (App Router) только при явном использовании директивы 'use client' в модулях, импортирующих компоненты.
  • Для CSS-варианта поставки добавьте пакеты в transpilePackages в next.config.js:
const nextConfig = {
    transpilePackages: ['@salutejs/plasma-giga', '@salutejs/plasma-new-hope', '@salutejs/plasma-icons'],
};

Подробности — в гайде по Next.js.

MCP-сервер для AI-агентов

Примечание: Поддерживаются версии библиотеки начиная с 0.338.0 — нужная указывается параметром --version.

Библиотека предоставляет MCP-сервер @salutejs/sdds-mcp — через него LLM-агент (Claude Code, Cursor и др.) получает актуальную документацию:

  • список компонентов
  • описание props
  • примеры использования
  • токены и гайды.

Сервер работает по stdio:

npx -y @salutejs/sdds-mcp@latest --lib plasma-giga

Если агент настраивается через конфигурацию, используйте шаблон:

{
    "mcpServers": {
        "plasma-giga": {
            "command": "npx",
            "args": ["-y", "@salutejs/sdds-mcp@latest", "--lib", "plasma-giga"]
        }
    }
}

Подробности и список инструментов — в гайде по MCP.