1.0.17 • Published 2 days ago

@nycopportunity/pattern-elements v1.0.17

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

Pattern Elements (WIP)

Shared elements for the NYC Opportunity UI Patterns Framework. Currently a work–in-progress. Refer to architecture diagram for roadmap and planning. This repository works with the Patterns Typography module, however, typography can be swapped out depending on the project needs.

Installation

This assumes you have scaffolded a Patterns CLI project ("Quick start a new project").

npm install @nycopportunity/pattern-elements @nycopportunity/pattern-typography

Add the module include paths to the array configuration in the config/sass.js file.

/**
 * Config
 *
 * @type {Object}
 */
const sass = {
  sourceMapEmbed: true,
  includePaths: [
    `${process.env.PWD}/src/`,
    `${process.env.PWD}/node_modules/`,
    `${process.env.PWD}/node_modules/@nycopportunity/pattern-elements/src/`,  // +
    `${process.env.PWD}/node_modules/@nycopportunity/pattern-typography/src/` // +
  ]
};

Add the module Sass import directives in in the src/scss/_imports.scss file.

/** Elements */
@forward '@nycopportunity/pattern-typography/src/scss/imports'; // This module includes @font-face and needs to be imported before all other declarations.
@forward '@nycopportunity/pattern-elements/src/scss/imports';
/** Elements - end */
1.0.17

2 days ago

1.0.16

2 days ago

1.0.15

2 months ago

1.0.11

5 months ago

1.0.14

3 months ago

1.0.13

3 months ago

1.0.12

3 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.10

6 months ago

1.0.2

1 year ago

0.0.0-19

1 year ago

1.0.1

1 year ago

0.0.0-18

1 year ago

1.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.0-15

1 year ago

0.0.0-14

1 year ago

0.0.0-17

1 year ago

0.0.0-16

1 year ago

0.0.0-11

2 years ago

0.0.0-13

1 year ago

0.0.0-12

1 year ago

0.0.0-4

2 years ago

0.0.0-3

2 years ago

0.0.0-8

2 years ago

0.0.0-7

2 years ago

0.0.0-6

2 years ago

0.0.0-5

2 years ago

0.0.0-10

2 years ago

0.0.0-9

2 years ago

0.0.0-2

2 years ago

0.0.0-1

2 years ago