seed-avatar
Avatar component pack for Seed
Install
npm install @seedcss/seed-avatar --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-avatar");
gulp.task("sass", function() {
return gulp
.src("./sass/**/*.scss")
.pipe(
sass({
includePaths: pathfinder(
pack
)
})
)
.pipe(gulp.dest("./css"));
});
Once that is setup, simply @import
seed-avatar as needed in your .scss
file:
@import "pack/seed-avatar/_index";
Options
The following variables can be found in _config.scss
$seed-avatar-namespace: "c-avatar" !default;
$seed-avatar-image-namespace: #{$seed-avatar-namespace}__image !default;
$seed-avatar-border-radius: 4px !default;
$seed-avatar-background: #f1f3f5 !default;
$seed-avatar-shadow: 0 1px 0 0 #e3e8eb !default;
$seed-avatar-size: 50px !default;
$seed-avatar-modifier-sizes: (
lg: $seed-avatar-size,
md: 40px,
sm: 32px,
xs: 28px
) !default;