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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stylize/sass-shape

v2.0.3

Published

Sass mixins for creating shapes

Readme

sass-shape

chat test deps last sass MIT

Install

npm install @stylize/sass-shape --save-dev

Other packages

| Name | Description | Package | | :----------------------------------------------------------------------- | :----------------------- | :-------------------------------------------------------------------------------------------------------------------------------- | | @stylize/sass-func | Func's for general usage | npm | | @stylize/sass-mixin | Mixins for general usage | npm |

Usage

Mixins can be imported directly from the package or namespace.

@use '~@stylize/sass-shape' as *

Shapes use sass-mixin, so complex size, width and height args can be used.

Circle

image

Mixin defines the circle with size and color.

@include circle($size: null, $color: null)
// Radius 50%.
@include circle
// Radius 50%, [eq] width × height.
@include circle(20px)
// Radius 50%, [min] width × height.
@include circle(min 20px)
// Radius 50%, [max] width × height, color.
@include circle(max 20px, #fff)
// Radius 50%, [min] width × height, color.
@include circle($size: min 20px, $color: #fff)
// Radius 50%, [eq, min] width × height, color.
@include circle([auto, min 20px], #fff)
// Radius 50%, [eq, min, max] width × height, color.
@include circle([40px, min 20px, max 50px], #fff)
// Radius 50%, [eq, min, max] width × height, gradient color.
@include circle([40px, min 20px, max 50px], linear-gradient(#fff, #000))

Ellipse

image

Mixin defines the ellipse with width, height and color.

@include ellipse($width: null, $height: null, $color: null)
// Radius 50%.
@include ellipse
// Radius 50%, [eq] width.
@include ellipse(20px)
// Radius 50%, [min] width.
@include ellipse(min 20px)
// Radius 50%, [max] width.
@include ellipse($width: max 20px)
// Radius 50%, [min] width, [max] height, color.
@include ellipse(min 10px, max 20px, #fff)
// Radius 50%, [eq, min] width, [max] height, color.
@include ellipse([auto, min 20px], max 20px, #fff)
// Radius 50%, [eq, min] width, [eq, max] height, color.
@include ellipse([40px, min 20px], [20px, max 10px], #fff)
// Radius 50%, [eq, min] width, [eq, max] height, gradient color.
@include ellipse([40px, min 20px], [20px, max 10px], linear-gradient(#fff, #000))

Square

image

Mixin defines the square with size, radius and color.

@include square($size: null, $radius: null, $color: null)
// [eq] width × height.
@include square(20px)
// [min] width × height, radius.
@include square(min 20px, 5px)
// [max] width × height, radius, color.
@include square(max 20px, 5px, #fff)
// [min] width × height, radius, color.
@include square($size: min 20px, $radius: 4px, $color: #fff)
// [eq, min] width × height, radius, color.
@include square([auto, min 20px], 5px, #fff)
// [eq, min, max] width × height, [top-left, bottom-right] radius, color.
@include square([40px, min 20px, max 50px], 5px 4px, #fff)
// [eq, min, max] width × height, [top-left, bottom-right] radius, color.
@include square([40px, min 20px, max 50px], [5px, 4px], #fff)
// [eq, min, max] width × height, [top-left, bottom-right] radius, gradient color.
@include square([40px, min 20px, max 50px], [5px, 4px], linear-gradient(#fff, #000))

Rectangle

image

Mixin defines the rectangle with width, height, radius and color.

@include rectangle($width: null, $height: null, $radius: null, $color: null)
// [min] width.
@include rectangle(min 20px)
// [eq] width, [max] height.
@include rectangle(10px, max 20px)
// [min] width, [eq] height, radius.
@include rectangle(min 10px, 20px, 4px)
// [max] width, [max] height, radius, color.
@include rectangle(max 10px, max 20px, 4px, #fff)
// [eq, min] width, [max] height, radius, color.
@include rectangle([auto, min 20px], max 20px, 4px, #fff)
// [eq] width, [eq] height, [top-left, bottom-right] radius, color.
@include rectangle($width: 10px, $height: 20px, $radius: 4px 3px, $color: #fff)
// [eq, min] width, [eq, min] height, [top-left, bottom-right] radius, color.
@include rectangle([40px, min 20px], [20px, min 10px], 4px 3px, #fff)
// [eq, min] width, [eq, min] height, [top-left, bottom-right] radius, color.
@include rectangle([40px, min 20px], [20px, min 10px], [4px, 3px], #fff)
// [eq, min] width, [eq, min] height, [top-left, bottom-right] radius, gradient color.
@include rectangle([40px, min 20px], [20px, min 10px], [4px, 3px], linear-gradient(#fff, #000))

Triangle

image

Mixin defines the triangle with direction, color, width and height.

@include triangle($direction, $color, $width, $height: null)
// ↑ Triangle in top direction.
@include triangle(top #fff 5px)
// ↖ Triangle in top-left direction.
@include triangle(top-left, #fff, 5px, 10px)