0.0.23 • Published 4 years ago

@nypl/design-system-styles v0.0.23

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

NYPL Design System Styles

For an overview of the entire Design System, check out the Design System README.

How to Use

The Design System Styles provides the full and uncompiled scss files. The product is responsible to import the styles into its project. To import the package, run

  npm install --save @nypl/design-system-styles

Configurations need to be updated to support importing files. Check out the react storybook config or the twig storybook config as full examples.

To set it up, the node-sass-glob-importer is required. In your webpack file make sure to include it and use it as an importer with the sass-loader:

// webpack.config.js
const globImporter = require('node-sass-glob-importer');

module.exports = async({ config, mode }) => {
  config.module.rules.push({
    test: /\.scss$/,
    use: [
      ...
      {
        loader: 'sass-loader',
        options: {
          importer: globImporter(),
        }
      }
    ]
  });

  // other configs
};
0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.9-alpha.1

4 years ago

0.0.9-alpha.0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.1

5 years ago