# csshat-language-stylus

> Stylus language

Latest version **2.0.10** (published 2016-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install csshat-language-stylus
pnpm add csshat-language-stylus
yarn add csshat-language-stylus
bun add csshat-language-stylus
```

## 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 | 2.0.10 |
| Published | 2016-09-23 |
| First published | 2015-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tomas Hanacek |
| Maintainers | jakubzitny, petrbrzek, vojtatranta |

## Links

- npm: https://www.npmjs.com/package/csshat-language-stylus
- Repository: https://github.com/csshat/language-stylus
- Issues: https://github.com/csshat/language-stylus/issues
- npm.io page: https://npm.io/package/csshat-language-stylus

## Dependencies (1)

- [octopus-helpers](https://npm.io/package/octopus-helpers.md) ^1.5.0

## Recent versions

- 2.0.10 (latest) — 2016-09-23
- 2.0.9 — 2016-09-23
- 2.0.8 — 2016-08-18
- 2.0.7 — 2016-04-14
- 2.0.6 — 2016-03-04
- 2.0.5 — 2016-02-18
- 2.0.4 — 2015-07-12
- 2.0.3 — 2015-07-09
- 2.0.2 — 2015-07-08
- 2.0.1 — 2015-07-03
- 2.0.0 — 2015-07-02

## README

# Stylus (nib)

[![Install in CSS Hat](http://img.shields.io/badge/install-to%20CSS%20Hat-blue.svg)](http://addons.csshat.com/?install=csshat/language-stylus-nib)

This is a template for [CSS Hat 2](https://csshat.com/) that generates code in [Stylus language](http://learnboost.github.io/stylus/) with [nib extensions](http://visionmedia.github.io/nib/).

## Settings

### Vendor Prefixes

With this option on, some values will be prefixed to work in various browser. TODO: document when

### Inherit Font Styles

If you have a layer with more text styles, template will output just first complete style with all properties and the others will be just diffs (useful if they are childs of the main element - for example `<strong>` in `<p>`)

```css
font-family: "Helvetica";
font-size: 12px;

font-weight: bold;
```

### Selector

It will add curly braces and selector to the output

```css
.layer-name {
  color: #000000;
}
```

<!--### SelectorTextStyle

You can choose text style
-->

### Selector Type

We try to autogenerate a selector from layer name. You can choose which type it should be

| Option | Example |
| ------ | ------- |
| class | `.button` |
| id | `#button` |
| element | `button` |

### Color Type

Choose your preferred color syntax. 

> Note that if you select hex, sometimes it may actually output an `rgba`, because hex has no option to express alpha.

### CSS Style Syntax

You can choose wheather to use minimal Stylus style (example: `font 12px Helvetica`) or more CSS-like syntax (`font: 12px Helvetica;`)

### Show Text Snippet

If you have text layer with more styles (various text sizes, colors, …), it will show you snippet of text in comment, so you know which rule relates to which part of content

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