# watson-ui-components

> UI components (CSS & SCSS) used in Watson Developer Cloud demo apps

Latest version **0.6.2** (published 2018-07-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install watson-ui-components
pnpm add watson-ui-components
yarn add watson-ui-components
bun add watson-ui-components
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.2 |
| Published | 2018-07-20 |
| First published | 2016-09-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >4.4 |
| Dependencies | 3 |
| Unpacked size | 101.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | IBM Corp. |
| Maintainers | germanattanasio, jzhang300, kognate, nfriedly |

## Links

- npm: https://www.npmjs.com/package/watson-ui-components
- Repository: https://github.com/watson-developer-cloud/ui-components
- Homepage: https://github.com/watson-developer-cloud/ui-components#readme
- Issues: https://github.com/watson-developer-cloud/ui-components/issues
- npm.io page: https://npm.io/package/watson-ui-components

## Dependencies (3)

- [modular-scale](https://npm.io/package/modular-scale.md) ^4.4.1
- [breakpoint-sass](https://npm.io/package/breakpoint-sass.md) ^2.7.0
- [modularscale-sass](https://npm.io/package/modularscale-sass.md) ^2.1.1

## Recent versions

- 0.6.2 (latest) — 2018-07-20
- 0.6.1 — 2018-05-15
- 0.6.0 — 2017-01-17
- 0.5.4 — 2017-01-09
- 0.5.3 — 2016-09-16
- 0.5.2 — 2016-09-16

## README

# Watson Developer Cloud Component Library [![Build Status](https://travis-ci.org/watson-developer-cloud/ui-components.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/ui-components)

The Watson Platform Component Library is a Sass library that translates Watson design language into UI components to help develop web UI.

Demo: https://watson-developer-cloud.github.io/ui-components/

## Install
  ```bash
  $ npm install watson-ui-components
  ```

## Usage

All needed CSS, images, and javascript are found in `/dist`.


In Sass, you just need to import the sass file:
```css
@import 'watson-ui-components/dist/_watson-ui-components.scss';
```

Make sure `node_modules` is a loaded path so that sass can find the route above.

## How to Contribute

### Install Dependencies

```bash
npm install
gulp
```

### CSS Primarily Written in BEM format
* [Side Effects in CSS](http://philipwalton.com/articles/side-effects-in-css/)
* [BEM 101](https://css-tricks.com/bem-101/)
* [A New Front-End Methodology: BEM](http://www.smashingmagazine.com/2012/04/16/a-new-front-end-methodology-bem/)
* [BEM: Technology for creating web applications](https://en.bem.info/)

You will need to make sure the icon-fonts are referenced properly.
The path of the icon-fonts must be relative to the path of the compiled css file.

You will also need to make sure to load the paths of your `node_modules` directory into your Sass configurations, so that the library can reference its npm dependencies properly.

## Directory Structure

```none
.
└─ dist
 ├── _watson-ui-components.scss   // Compiled Sass
 ├── watson-ui-components.css     // Compiled css
 └── watson-ui-components.min.css
```

## Credits

This project could not have been made possible without the hard work from the team that worked on the previous [Watson Design Guide](https://github.com/IBM-Watson/design-guide). Many concepts and Sass techniques were borrowed from their project, while others were modified.

---
_Source: https://npm.io/package/watson-ui-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
