README
Coffeekraken s-form-style
Full stack form styling with support of form-input, form-textarea, form-select, form-group and form-addon as well as colored versions of them...
Table of content
Features
- Styling for
input
,textarea
andselect
.form-group
support to display multiple inputs on the same line.form-addon
to display addons aside a form input- Colored version of each
input
,textarea
andselect
available
Install
npm install @coffeekraken/s-form-style --save
Get Started
First, import and init sugar into your project.
Then, import the component into your scss file like so:
@import 'node_modules/@coffeekraken/s-form-style/index';
Then generate the classes using the provided mixins like so:
@include s-form-classes(
$colors: default primary secondary
);
Then simply use it inside your html like so:
<div class="form-group m-b">
<input type="text" name="firstname" class="form-input" placeholder="Firstname" />
</div>
<div class="form-group m-b">
<textarea class="form-textarea" name="message" placeholder="Your message here..."></textarea>
</div>
<div class="form-group m-b">
<select class="form-select" name="gender">
<option value="">Choose a gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
Coffeekraken
We are a young collective of front-end creative developers with one goal in mind. Build tools to make every team working day life better. This is our first and only concern. All our tools are build around that purpose. All what we provide are some cool tools that you can use the way you want. These tools features cover a large scope of the front-end workflow (styleguide generation, colors/fonts management, etc...). You can use only the parts that you need and let the rest aside...