# a_design

> Styles for a UI design

Latest version **3.0.0** (published 2018-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install a_design
pnpm add a_design
yarn add a_design
bun add a_design
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-04-04 |
| First published | 2018-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexgalinier |
| Maintainers | alexgalinier |

## Links

- npm: https://www.npmjs.com/package/a_design
- Repository: https://github.com/Alexgalinier/a_design
- Issues: https://github.com/Alexgalinier/a_design/issues
- npm.io page: https://npm.io/package/a_design

## Recent versions

- 3.0.0 (latest) — 2018-04-04
- 2.2.0 — 2018-04-04
- 2.1.0 — 2018-03-27
- 2.0.0 — 2018-03-26
- 1.0.0 — 2018-03-23

## README

# a_design

[![Build Status](https://travis-ci.org/Alexgalinier/a_design.svg?branch=master)](https://travis-ci.org/Alexgalinier/a_design)
[![Greenkeeper badge](https://badges.greenkeeper.io/Alexgalinier/a_design.svg)](https://greenkeeper.io/)

Styles for a UI design

## Installation

```
npm i a_design
```

## Usage

This UI library is splitted in two, on one side there are class, the easiest way to use them is to import them
```styl
// root_styles_in_your_project.styl

@require 'a_design/styles'
```
Once compiled, you will be able to use any class (e.g: `<div class="_p10, _mb20">...</div>`).

On the other side, if you don't want to use the class but directly some mixins (which will reduce the size of you final css)
```styl
// any_file.styl

@import 'a_design/styles/mixins/sizing'

.a-class {
  _p(10)
  _background('grey1')
}
```
It will check if the padding 10 is valid (the padding list is available in `a_desgign/styles/design`) and
import add a `padding: 10px` rule to the class. This ensure you don't structure your UI with too much different
spaces (around 4-5 enforce a coherent structure).

## Principle

There are 2 main principles :
- Avoid using too much padding, margin, font sizes... anything that influence the UI spaces. You force
yourself as a designer or frontend to use only mixins available in the design for those properties.
- Visually differenciate the project and a_design class (or mixins) because everything starts with `_`

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