<section class="overview">

# Implementation

</section>

<section class="usage-guides -mt-xl">
<h2 class="h3 -mb-sm">Installation</h2>
<hr class="ta-shortDivider">

Include this snippet into your local `.npmrc` file:

```bash
@cardinal:registry=http://nexus.us.aegon.com/repository/transamerica.digital.ui.release
```

This repository is distributed with <a href="https://www.npmjs.com/" target="_blank" rel="noopener noreferrer">npm</a>. Packages can be installed by following the @cardinal/package-name syntax using this command:

```zsh
$ npm install --save @cardinal/grid
$ npm install --save @cardinal/color
```

Once installation is complete, lock down the version number to prevent breaking changes from entering the codebase.

Remove entries in the package.json file with a dash "-" or a carrot "^". With the elimination of these characters, alteration of the version becomes a manual process whereby the package in question must be tested to verify that the new version works properly.

<p class="note"><span>Note:</span> This is a precautionary measure and will be revisited once the process for <a href="https://semver.org/" target="_blank" rel="noopener noreferrer">Semantic Versioning</a> is solidified. ​</p>

</section>

<section class="usage-guides">

<h3>Usage</h3>
<hr class="ta-shortDivider">

The source files included are written in <a href="http://sass-lang.com/" target="_blank" rel="noopener noreferrer">Sass.</a> 

<br/>Point the sass include-path at the node_modules directory and import with this command:

```javascript
@import "node_modules/@cardinal/grid/grid";
@import "node_modules/@cardinal/color/color";
```

</section>

<section class="usage-guides">

### Support for Angular Elements

<hr class="ta-shortDivider">

To enable polyfill support for Cardinal Angular Elements, it is required that you install the `document-register-element` v1.8.1 polyfill, and import it into your project's `polyfills.ts` file, or instantiate the polyfill as a script if you are not using an Angular project.

```zsh 
  npm i --save-dev document-register-element@1.8.1
```

```javascript
  import 'document-register-element';
```

</section>
