Socket
Book a DemoInstallSign in
Socket

@n3/css-base

Package Overview
Dependencies
Maintainers
11
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@n3/css-base

css variables for n3 interfaces

latest
npmnpm
Version
1.17.10
Version published
Weekly downloads
0
Maintainers
11
Weekly downloads
 
Created
Source

@n3/css-base

Темы для приложений на базе @n3/kit.

Интерфейс темы

import type {
  ThemeType,
} from '@n3/css-base';

Задание темы

❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗

При использовании @n3/kit это делается автоматически

❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗❗

import {
  getTheme,
  listenThemeChange,
  setTheme,
} from '@n3/css-base';

// установать тему
setTheme(theme);

// получить текущую тему
const theme = getTheme();

// следить за изменениями темы
const unsubscribe = listenThemeChange(() => {
  const theme = getTheme();

  // применить изменения темы
});

Встроенные темы

Стиль компонентов версий от 0.1.x до 0.14.x

import { theme } from '@n3/css-base/themes/theme-1';

Стиль компонентов, начиная с версии 0.15.x

import { theme } from '@n3/css-base/themes/theme-2';

FAQs

Package last updated on 19 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.