# suitcss-components-alert

> Structural alert styles for SUIT CSS

Latest version **1.3.0** (published 2018-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install suitcss-components-alert
pnpm add suitcss-components-alert
yarn add suitcss-components-alert
bun add suitcss-components-alert
```

## 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 | 1.3.0 |
| Published | 2018-09-05 |
| First published | 2018-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alec Rust |
| Maintainers | alecrust |
| Keywords | browser, css-components, alert, suitcss, style |

## Links

- npm: https://www.npmjs.com/package/suitcss-components-alert
- Repository: https://github.com/AlecRust/suitcss-components-alert
- Homepage: https://github.com/AlecRust/suitcss-components-alert#readme
- Issues: https://github.com/AlecRust/suitcss-components-alert/labels/bug
- npm.io page: https://npm.io/package/suitcss-components-alert

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2018-09-05
- 1.2.0 — 2018-01-29
- 1.1.0 — 2018-01-25
- 1.0.0 — 2018-01-10

## README

# SUIT CSS components-alert

A SUIT CSS component that provides a structural UI alert template to be
extended with modifiers.

Read more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).

## Installation

* [yarn](https://yarnpkg.com/): `yarn add suitcss-components-alert`
* [npm](https://www.npmjs.com/): `npm install suitcss-components-alert`
* Download: [zip](https://github.com/AlecRust/suitcss-components-button/releases/latest)

## Available classes

### Component structure

* `Alert` - [core] The core alert component

### Modifiers

* `Alert--info` - Applies info colours to the alert
* `Alert--success` - Applies success colours to the alert
* `Alert--danger` - Applies danger colours to the alert
* `Alert--warning` - Applies warning colours to the alert

## Configurable variables

* `--Alert-borderColor`
* `--Alert-borderWidth`
* `--Alert-padding`

* `--Alert--info-backgroundColor`
* `--Alert--info-borderColor`
* `--Alert--info-textColor`

* `--Alert--success-backgroundColor`
* `--Alert--success-borderColor`
* `--Alert--success-textColor`

* `--Alert--danger-backgroundColor`
* `--Alert--danger-borderColor`
* `--Alert--danger-textColor`

* `--Alert--warning-backgroundColor`
* `--Alert--warning-borderColor`
* `--Alert--warning-textColor`

## Use

Examples:

```html
<div class="Alert">
  This is a default alert.
</div>
```

```html
<div class="Alert Alert--success">
  This is a success alert.
</div>
```

### Theming / extending

The CSS is focused on common structural requirements for alerts. You can extend it
with application-specific theme styles in your app.

## Testing

```
yarn install
```

To generate a build:

```
yarn build
```

To lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](https://stylelint.io/)

```
yarn lint
```

To generate the testing build.

```
yarn build-test
```

To watch the files for making changes to test:

```
yarn watch
```

Basic visual tests are in `test/index.html`.

## Browser support

* Google Chrome
* Firefox
* Opera
* Safari
* Internet Explorer 9+

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