# sass-triangle

> Mixin for creating CSS triangles.

Latest version **2.0.1** (published 2016-05-02) · 0 weekly downloads

## Install

```sh
npm install sass-triangle
pnpm add sass-triangle
yarn add sass-triangle
bun add sass-triangle
```

## 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.1 |
| Published | 2016-05-02 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jameslnewell |

## Links

- npm: https://www.npmjs.com/package/sass-triangle
- npm.io page: https://npm.io/package/sass-triangle

## Recent versions

- 2.0.1 (latest) — 2016-05-02
- 2.0.0 — 2016-03-11
- 1.2.0 — 2016-03-11
- 1.0.0 — 2016-03-11

## README

# sass-triangle

Mixin for creating CSS triangles.

## Installation

    npm install --save sass-triangle

## Usage

```scss
@import "sass-triangle";

.triangle-1 {
  @include triangle(up, 20px, $color: #ffe619); //20px wide and 20px high
}

.triangle-2 {
  @include triangle(down, 20px 20px, $color: #ff3005); //20px wide and 20px high
}

.triangle-3 {
  @include triangle(left, 20px 10px, $color: #ffaf14); //20px wide and 10px high
}

.triangle-4 {
  @include triangle(down, 20px 5px, $color: #ff1870); //20px wide and 5px high
}

.triangle-5 {
  @include triangle(right, 20px 10px 5px, $color: #ff28ca, $before: true); //weird! three different border sizes makes 10px high and 25px wide
}

```

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