npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@getbase/forms

v4.1.0

Published

Base Forms

Downloads

40

Readme

Base Forms

Base Forms is designed in a way where you can add it on top of the Base CSS framework or to your own custom project.

Travis Build Status David Dependencies Status


Table of contents


Overview

Base Forms contains styles for inputs, textarea, radios, checkboxes and other form elements.


Installation

If you have an existing project and would like to include the Base forms module, run the following command:

npm install --save @getbase/forms

Once you have the forms module installed, you can include it in your CSS/LESS/SCSS file with one of the following ways:

CSS Import:

@import url("https://unpkg.com/@getbase/forms/index.css");

SCSS Import:

/* Import Base Forms */
@import "~@getbase/forms/scss/index";
/* Your Other Styles */
@import "main"

LESS Import:

/* Import Base Forms */
@import "~@getbase/forms/less/index";
/* Your Other Styles */
@import "main"

Documentation

Base Forms includes styles for inputs, textarea, radios, checkboxes and other form elements.

Helpers (Applies to SCSS/LESS)

| Helper Class | Purpose | Example | Outcome | | ------------ | ------- | ------- | ------- | | .field | Applies a width of 100% | <input class="field" /> | Applies a width of 100% to a field element | | .disabled | Applies a class of disabled | <input class="disabled" /> | Applies disabled state to a field element |

SCSS

Variables

| Variable | Purpose | Default | | -------- | ------- | ------- | | $base-input-height | Height applied to all inputs | 36px | | $base-input-placeholder-color | Color applied to placeholder copy | #999 | | $base-input-border-size | Border size applied to all inputs | 1px | | $base-input-border-radius | Border radius applied to all inputs | 0px | | $base-input-color | Color applied to all inputs | #000 | | $base-input-background-color | Background color applied to all inputs | #fff | | $base-input-border-color | Border color applied to all inputs | #ccc | | $base-input-border-focus-color | Border color applied to all inputs on active | #000 | | $base-select-box-height | Height applied to select boxes | 36px |

LESS

Variables

| Variable | Purpose | Default | | -------- | ------- | ------- | | @base-input-height | Height applied to all inputs | 36px | | @base-input-placeholder-color | Color applied to placeholder copy | #999 | | $base-input-border-size | Border size applied to all inputs | 1px | | @base-input-border-radius | Border radius applied to all inputs | 0px | | @base-input-color | Color applied to all inputs | #000 | | @base-input-background-color | Background color applied to all inputs | #fff | | @base-input-border-color | Border color applied to all inputs | #ccc | | @base-input-border-focus-color | Border color applied to all inputs on active | #f7c723 | | @base-select-box-height | Height applied to select boxes | 36px |


Demo

View page example with the forms stylesheet applied.


Support

  • IE10+ and all other modern browsers.
  • Please specify browsers you need to support in package.json according to browserslist docs.

Authors

Matthew Hartman


License

Code released under the MIT Open Source license.