@bu0nq/scss-function-fluid
v2.0.0
Published
A package for integrating function to create responsive typography and design
Maintainers
Readme
SCSS Function Fluid
A package for integrating function to create responsive typography and design.
Installation
You can install the package automatically using NPM:
npm i @bu0nq/scss-function-fluidUsage
To use the package, import it into your project:
@use "@bu0nq/scss-function-fluid" as *;
.demo {
font-size: fluid(16px, 24px);
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@bu0nq/scss-function-fluid" as function;
.demo {
font-size: function.fluid(16px, 24px);
}Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@bu0nq/scss-function-fluid" as * with (
$min-breakpoint: 480px,
$max-breakpoint: 1536px,
$unit: vw,
$baseline: 16,
$round: 2,
);