New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@mskcc/themes

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mskcc/themes

npmnpm
Version
2.7.1
Version published
Maintainers
0
Created
Source

@mskcc/themes

Dark / light mode theming for MSK digital products.

Installation

npm install @mskcc/themes

Usage

Add the following to your application.

Note: For explicit control on the dark and light theme, turn $system-dark-mode to false. @use '@mskcc/themes' with ($system-dark-mode: false)

@use '@mskcc/themes';
@import '@mskcc/themes/dist/themes.css';
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@mskcc/themes@latest/dist/themes.css"
/>

JavaScript / TypeScript

import { lightTheme, darkTheme } from '@mskcc/themes';

const style = {
  bg: lightTheme.colorBg,
};

Using tokens

You can also use the tokens directly in your scss and css stylesheets.

@use '@mskcc/themes/tokens' as tk;

body {
  background-color: tk.$msk--color-bg;
}
body {
  background-color: var(--msk-color-bg);
}

FAQs

Package last updated on 22 Aug 2024

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