2.7.2 • Published 8 months ago

@mskcc/tailwind v2.7.2

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

MSK Tailwind Package

tailwind configuration file for MSKCC

Installation

You will need to install the following packages and add the preset to your tailwind.config.js file.

We also have postcss and stylesheet config files, but our tailwind config is the only one that is needed to incorporate DSM.

npm install --save-dev @mskcc/tailwind tailwindcss postcss postcss-import autoprefixer

Create the following files inside root directory of your project:

  • tailwind.config.js
  • postcss.config.js
// tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  presets: [require('@mskcc/tailwind/presets')],
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    // or wherever your files that will use tailwind lives
  ],
};

Extended Configurations

// postcss.config.js
module.exports = {
  ...require('@mskcc/tailwind/postcss.config'),
};
/* add the following to your global stylesheet  */
@import '@mskcc/tailwind/styles.css';

Usage

  • Colors
    • bg-msk-[color]-[10-100]
  • Elevations (box shadows)
    • shadow-msk-elevation-[plus|minus]-[0-24]
  • Typescale (h1, display1)
    • text-msk-[type]-[0-9]
  • Font family
    • font-msk-[type]
2.7.2

8 months ago

2.7.0

10 months ago

2.6.1

12 months ago

2.7.1

10 months ago

2.7.1-beta.0

10 months ago

2.7.0-beta.1

12 months ago

2.7.0-beta.0

12 months ago

2.7.0-beta.3

11 months ago

2.7.0-beta.2

11 months ago

2.7.0-beta.5

11 months ago

2.7.0-beta.4

11 months ago

2.7.0-beta.6

11 months ago

2.6.1-beta.0

1 year ago

2.6.0

1 year ago

2.5.1-beta.0

1 year ago

2.5.0

1 year ago

2.4.5

1 year ago

2.4.4

1 year ago

2.4.3

1 year ago

2.4.3-beta.0

1 year ago

2.4.2

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.1-beta.0

2 years ago

2.0.0

2 years ago