Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

suitcss-components-alert

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suitcss-components-alert

Structural alert styles for SUIT CSS

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-47.73%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Installation

  • yarn: yarn add suitcss-components-alert
  • npm: npm install suitcss-components-alert
  • Download: zip

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:

<div class="Alert">
  This is a default alert.
</div>
<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 and stylelint

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+

Keywords

FAQs

Package last updated on 05 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc