- π¦ Toolkit:
Sassolith
- ποΈ Version:
2.0.0
- π¨βπ» Author: VQH-cmd
- CSS utility using SASS & SCSS.
- Customize CSS classes with your own style.
- This package is only implanted in Convergence ΞΆ for now !
// style.sass
@import "<LOCATION_NAME>/_theme"
@import "<LOCATION_NAME>/_misc"
@import "<LOCATION_NAME>/_breakpoint"
@import "@vqh-cmd/sassolith"
// style.scss
@import "<LOCATION_NAME>/_theme";
@import "<LOCATION_NAME>/_misc";
@import "<LOCATION_NAME>/_breakpoint";
@import "@vqh-cmd/sassolith";
If using
node-sass-json-importer
// style.sass
@import "<LOCATION_NAME>/theme.json"
@import "<LOCATION_NAME>/misc.json"
@import "<LOCATION_NAME>/breakpoint.json"
@import "@vqh-cmd/sassolith"
// style.scss
@import "<LOCATION_NAME>/theme.json";
@import "<LOCATION_NAME>/misc.json";
@import "<LOCATION_NAME>/breakpoint.json";
@import "@vqh-cmd/sassolith";
@include Sassolith((
"class": (
box-border,
box-content,
),
"style": box-sizing,
"value": (
border-box,
content-box,
),
"data": (
"active": true,
"important": false,
"responsive": true,
"state": (
":required",
":active",
":hover",
":visited",
),
),
));
@include Sassolith((
"class": co,
"style": color,
"value": false,
"data": (
"active": true,
"important": false,
"responsive": true,
"isColor": true,
"state": (
":hover",
),
),
));
@include Sassolith((
"class": w,
"style": width,
"value": false,
"data": (
"active": true,
"important": false,
"responsive": true,
"formula": (
"unit": (
"class": "vw",
"value": "vw",
),
"ratio": calc(1/10),
"min": 0,
"max": 1000,
"step": 50,
),
"state": (
":hover",
),
),
));
@include SassolithFont((
"family": "Roboto",
"name": "font1",
"weight": (100, 200, 300, 400, 500, 600, 700, 800, 900),
"style": (normal, italic),
"src": "../fonts/",
"format": (ttf, otf),
));
Get
$name
fromtheme
.
theme Β» default Β» category Β» color
theme Β» default Β» category Β» gradient
// π scss
.co-m1 {color: co(m1);}
// π output
.co-m1 {color: #0EF7D0;}
// π scss
.co-m1-t80 {color: coTint(m1, 80);}
// π output
.co-m1-t80 {color: #cffdf6;}
// π scss
.co-m1-t80 {color: coShade(m1, 80);}
// π output
.co-m1-t80 {color: #03312a;}
// π scss
.grad-gra1 {background-color: gra(gra1);}
// π output
.grad-gra1 {background-color: linear-gradient(90deg, #0EF7D0 0%, #6f9 100%);}
Get
$media
frombreakpoint
.
// π scss
.fs-main {
font-size: 24px;
@include res(sm) {font-size: 20px;}
@include res(xs) {font-size: 16px;}
}
// π output
.fs-main {font-size: 24px;}
@media screen and (max-width: 800px) {
.fs-main {font-size: 20px;}
}
@media screen and (max-width: 600px) {
.fs-main {font-size: 18px;}
}
Copyright Β© 2023, VQH-cmd.