2.6.0 • Published 8 days ago

@mskcc/themes v2.6.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
8 days ago

@mskcc/themes

Dark / light mode theming for MSK digital products.

Installation

npm install --save-dev @mskcc/themes

Usage

Add the following to your application.

@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);
}
2.7.0-beta.0

8 days ago

2.6.0

15 days ago

2.5.0

20 days ago

2.4.5

2 months ago

2.4.4

3 months ago

2.4.3

4 months ago

2.4.3-beta.0

4 months ago

2.4.2

6 months ago

2.4.1

6 months ago

2.4.0

6 months ago

2.3.0

7 months ago