New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nib-styles/v2-buttons

Package Overview
Dependencies
Maintainers
27
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nib-styles/v2-buttons

nib styled buttons.

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
27
Weekly downloads
 
Created
Source

@nib-styles/v2-buttons

nib styled buttons.

Installation

npm install --save @nib-styles/v2-buttons

Note: Requires Opens Sans and Roboto fonts from Google Fonts:

<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans:700|Roboto:700' />

Usage

Using mixins

@import "@nib-styles/v2-buttons";

.feature {
  &__call-to-action{
    @include button('primary', $icon: 'person', $size: 'large')
  }
}
<button class="feature__call-to-action">
    Add a dependant
</button>

Using compiled classes

@import "@nib-styles/v2-buttons/compiled";
<button class="v2-button v2-button--primary v2-button--large v2-button--icon-on-right">
    Add a dependant <i class="v2-icon v2-icon--person v2-icon--smallest v2-icon--offset-descenders"></i>
</button>

See the pattern library or example/example.html a complete list of classes.

Mixins

@include button($type, $color, $icon: false, $size: null);
  • $type Required. May be primary, secondary or tertiary.

  • $color Required. Dependent on $type.

    • Primary: null. (Default yellow)
    • Secondary: green, dark-grey, or light-grey.
    • Tertiary: green, grey or white.
  • $icon Optional. If false no icon is displayed. If true the chevron-circle-inverse icon is displayed. May be the name of a v2-icon e.g. person, gear, dollar-circle.

  • $size Optional. May be medium or large.

Changelog

4.0.0

  • break: bump version of v2-icons

3.0.0

  • addition: Mixins!
  • removed: supplementary buttons
  • removed: large button style

FAQs

Package last updated on 08 Mar 2017

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