1.1.0 • Published 10 months ago

sass-breakpoint-range v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Responsive range resizing with configurable breakpoints.

Add it to your project now via installation by NPM:

$ npm install sass-breakpoint-range --save-dev

What is SASS Breakpoint Range?

SASS Breakpoint Range is a simple range function (built in SASS/SCSS) that resizes values with configurable breakpoints.
It is built upon CSS container queries and custom properties.

Get started using SASS Breakpoint Range!

Getting started is easy! Just complete a few steps.

  1. Open a terminal (in this case, Bash) and install via NPM.
    If you are unfamiliar with NPM, here is an installation guide.
$ npm install sass-breakpoint-range --save-dev
  1. Make a new _range.scss file and forward the package.
    You can optionally configure any variables using with() in SASS.
// Range: SASS Breakpoint Range @forward with !default parameters.
@forward "node_modules/sass-breakpoint-range/" with (
	// Container Query breakpoints:
	$range-breakpoints: (0px, 180px, 320px, 640px, 960px, 1280px, 1440px) !default,
	// CSS Custom Property name:
	$range-property: --range !default
);
  1. Make a new styles.scss file and write CSS using the package.
// Styles: Stylesheet using range() function.
@use "range" as *;

h1 {
	// Syntax: range($start: <length>+, $end: <length>+);
	font-size: range(32px, 64px);
	margin: range(8px 0px, 16px 0px);
}
  1. Compile using SASS.
    If you are unfamiliar with SASS, here is an installation guide.
$ sass --no-source-map styles.scss styles.css

Acknowledgment

SASS Breakpoint Range was built by Joshua Elijah Sandoval.

License

SASS Breakpoint Range is distributed under the MIT License.

1.1.0

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago