@seedcss/seed-progress-bar
v1.0.1
Published
Progress bar component pack for Seed
Downloads
17
Readme
seed-progress-bar
Progress bar component pack for Seed
Install
npm install @seedcss/seed-progress-bar --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
const gulp = require("gulp");
const sass = require("gulp-sass");
const pathfinder = require("sass-pathfinder");
const pack = require("@seedcss/seed-progress-bar");
gulp.task("sass", function() {
return gulp
.src("./sass/**/*.scss")
.pipe(
sass({
includePaths: pathfinder(
// Other includePaths...
pack
)
})
)
.pipe(gulp.dest("./css"));
});
Once that is setup, simply @import
seed-progress-bar as needed in your .scss
file:
// Packs
@import "pack/seed-progress-bar/_index";
Options
The following variables can be found in _config.scss
// progress-bar :: Config
@import "pack/seed-color-scheme/__index";
// Namespaces
$seed-progress-bar-namespace: c-progress-bar !default;
$seed-progress-bar-bar-namespace: #{$seed-progress-bar-namespace}__bar !default;
// Configs
$seed-progress-bar-background-color: #E3E8EB !default;
$seed-progress-bar-border-radius: 3px !default;
$seed-progress-bar-color: _color(blue, 500) !default;
$seed-progress-bar-height: 16px !default;
$seed-progress-bar-transition: width 0.5s ease;
$seed-progress-bar-sizes: (
lg: 24px,
md: 16px,
sm: 8px,
xs: 4px
) !default;