# cdg-core

> Core module for the CDS Design Guide

Latest version **0.7.1** (published 2015-09-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install cdg-core
pnpm add cdg-core
yarn add cdg-core
bun add cdg-core
```

## 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.7.1 |
| Published | 2015-09-18 |
| First published | 2015-08-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Moody |
| Maintainers | terracomma |
| Keywords | design, cdsx, stylesheet, sass |

## Links

- npm: https://www.npmjs.com/package/cdg-core
- Repository: git@github.ibm.com:CloudDataServices/CDSX-Design-Guide
- npm.io page: https://npm.io/package/cdg-core

## Recent versions

- 0.7.1 (latest) — 2015-09-18
- 0.7.0 — 2015-09-16
- 0.6.0 — 2015-09-11
- 0.5.0 — 2015-09-11
- 0.4.0 — 2015-08-16
- 0.3.0 — 2015-08-16

## README

# CDS Design Guide Core & Base Modules

The foundation of the Coud Data Services Design Guide is the CDG Core and Base modules.

The Core module represents our foundational design elements. This includes our color and type system and will in the future contain any
globally usable variables or concepts.

The Base module contains our default and standard interface elements.

## Usage

The preferred model of consumption for CDG-Core is through our packaged NPM module. 
To install, run this command in your project directory:

```
npm install --save-dev cdg-core
```

In order to use the entire Module in your stylesheets, simply inport the `_index.scss` file from the module root directory in your Sass stylesheet:

``` scss
@import '{{PATH_TO_NODE_MODULES}}/cdg-core/index';
```

To import only the Core or the Base modules, simply bypass the global index and use one the submodule indices like so:

``` scss
// Just the core module
@import '{{PATH_TO_NODE_MODULES}}/cdg-core/core/index';

// Just the base module
@import '{{PATH_TO_NODE_MODULES}}/cdg-core/base/index';
```

### Beta Modules

By default, the index of each directory will only access the dev-ready submodules. If you require access to the submodules in beta
development in addition to the dev ready modules, simply add the `-beta` to the end of your imports.

``` scss
@import '{{PATH_TO_NODE_MODULES}}/cdg-core/index-beta';
```


## Modules and Status

### Core

Module   | Status     | Description
-------- | ---------- | -----------
[Colors](https://github.ibm.com/CloudDataServices/CDG-Core/wiki/Color-System)   | Dev Ready  | Our color system and `color()` function.
[Type](https://github.ibm.com/CloudDataServices/CDG-Core/wiki/Type-System)      | Dev Ready  | Our type system and `font()` mixin.
Units                                                                           | Do Not Use | Standardized spacing and measuring units.

### Base Elements

Module      | Status     | Description
----------- | ---------- | -----------
Root        | Dev Ready  | Root elements resets and defaults
Buttons     | Beta       | Buttons
Forms       | Beta       | Forms
Links       | Do Not Use | Links and Calls to Action
Lists       | Do Not Use | Lists
Media       | Do Not Use | Media
Tables      | Beta       | Tables
Block Text  | Do Not Use | Block-level text elements
Inline Text | Do Not Use | Inline-level text elements
Utility     | Beta       | Utility classes and functions

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