yummacss 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/package.json +60 -58
- package/src/{reset/_stylecent.scss → _base.scss} +6 -6
- package/src/_fonts.scss +6 -6
- package/src/abstracts/_breakpoints.scss +6 -6
- package/src/abstracts/_theme.scss +18 -17
- package/src/abstracts/_variables.scss +69 -68
- package/src/abstracts/functions/_ignore-neutral.scss +4 -3
- package/src/abstracts/mixins/_create-colors.scss +0 -3
- package/src/abstracts/mixins/_create-utilities.scss +1 -1
- package/src/{yummacss.scss → index.scss} +1 -1
- package/src/utilities/_background.scss +2 -2
- package/src/utilities/_border.scss +138 -137
- package/src/utilities/_box-model.scss +33 -33
- package/src/utilities/_color.scss +4 -4
- package/src/utilities/_effect.scss +30 -30
- package/src/utilities/_flexbox.scss +3 -3
- package/src/utilities/_grid.scss +5 -5
- package/src/utilities/_interactivity.scss +20 -20
- package/src/utilities/_outline.scss +12 -12
- package/src/utilities/_positioning.scss +121 -121
- package/src/utilities/_svg.scss +2 -2
- package/src/utilities/_table.scss +2 -2
- package/src/utilities/_transform.scss +2 -2
- package/src/utilities/_typography.scss +20 -20
- package/src/utilities/maps/box-model/_dimension.scss +12 -2
- package/src/utilities/maps/box-model/_height.scss +12 -2
- package/src/utilities/maps/box-model/_margin.scss +3 -2
- package/src/utilities/maps/box-model/_padding.scss +3 -2
- package/src/utilities/maps/box-model/_width.scss +12 -2
- package/src/utilities/maps/flexbox/_flex-basis.scss +2 -2
- package/src/utilities/maps/grid/_gap.scss +1 -1
- package/dist/cli/commands/build.js +0 -43
- package/dist/cli/commands/init.js +0 -17
- package/dist/cli/commands/watch.js +0 -48
- package/dist/cli/config/defaultConfig.js +0 -9
- package/dist/cli/lib/cli-lang.js +0 -23
- package/dist/cli/lib/cli-ui.js +0 -14
- package/dist/cli/services/configLoader.js +0 -16
- package/dist/cli/services/minifyService.js +0 -16
- package/dist/cli/services/purgeService.js +0 -12
- package/dist/cli/services/scssCompiler.js +0 -34
- package/dist/cli/src/cli.js +0 -16
- /package/src/{yummacss-core.scss → core.scss} +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Command as rt}from"commander";import{writeFileSync as V}from"fs";var x={};function k(){return x}function F(t){x=t}function B(t){let o=JSON.stringify(t);return x.configHash!==o}import{existsSync as E}from"fs";import{dirname as S,join as p}from"path";import*as v from"sass-embedded";import{fileURLToPath as N}from"url";function H(){let t=N(import.meta.url),o=S(t);for(;o!==S(o);){let i=p(o,"package.json");if(E(i))return o;o=S(o)}return o}var b=H();async function O(t){let o=t.buildOptions.reset?"index.scss":"core.scss",i=await v.compileAsync(p(b,"src",o),{style:"expanded",loadPaths:[p(b,"src")],importers:[{findFileUrl(e){return new URL(e,`file://${p(b,"src/")}`)}}]});return{css:i.css,dependencies:i.loadedUrls.filter(e=>e.protocol==="file:").map(e=>N(e))}}import{existsSync as _}from"fs";import{join as A}from"path";import{pathToFileURL as Z}from"url";import{z as q}from"zod";import{z as c}from"zod";var a="yumma.config.js",u=c.object({source:c.array(c.string()).default([""]),output:c.string().default(""),buildOptions:c.object({reset:c.boolean().default(!0),minify:c.boolean().default(!1)}).default({reset:!0,minify:!1})});var r={build:{start:"Building...",success:(t,o)=>`Build done in ${t}ms. (${o})`,fail:"Build failed."},init:{fail:"Config failed.",invalid:"Invalid config.",notFound:"Config not found.",success:"Config created."},watch:{start:"Watching...",fail:"Watch failed."},common:{unknownError:"Something went wrong, and we don't know what."}};import f from"ora";var R=t=>f({spinner:"sand",color:"white"}).start(t),D=t=>f().fail(t),L=t=>f().info(t),M=t=>f().succeed(t),W=t=>f().warn(t),s={error:D,info:L,progress:R,success:M,warn:W};async function g(){let t=A(process.cwd(),a),o=Z(t).href;try{let{default:i}=await import(o);return u.parse(i)}catch(i){throw _(a)?i instanceof q.ZodError&&(s.progress(r.init.invalid).fail(r.init.invalid),process.exit(1)):(s.progress(r.init.notFound).warn(r.init.notFound),process.exit(1)),i}}import{transform as G}from"lightningcss";function T(t,o){return G({filename:"style.css",code:Buffer.from(t),minify:o.buildOptions.minify,sourceMap:!1}).code.toString()}import{globby as K}from"globby";import{PurgeCSS as Q}from"purgecss";async function z(t,o){return(await new Q().purge({content:await K(o.source),css:[{raw:t}],defaultExtractor:e=>e.match(/[\w-/\\:]+/g)||[]}))[0].css}async function m(t,o=!1){let i=s.progress(r.build.start),e=Date.now();try{let n=t||await g(),y=k(),I=B(n),w;if(o||I||!y.css){let C=await O(n);w=C.css,F({configHash:JSON.stringify(n),css:C.css,dependencies:C.dependencies})}else w=y.css;let U=await z(w,n),$=T(U,n);V(n.output,$),i.succeed(r.build.success(Date.now()-e,n.output))}catch{i.fail(r.build.fail),process.exit(1)}}import{existsSync as X,readFileSync as Y,writeFileSync as tt}from"fs";function ot(){try{if(X("package.json"))return JSON.parse(Y("package.json","utf-8")).type==="module"?"esm":"cjs"}catch{s.error(r.common.unknownError)}return"cjs"}function it(){let t=u.parse({});return ot()==="esm"?{filename:a,content:`export default ${JSON.stringify(t,null,2)};`}:{filename:a,content:`module.exports = ${JSON.stringify(t,null,2)};`}}function J(){let t=s.progress("Initializing config...");try{let{filename:o,content:i}=it();tt(o,i),t.succeed(r.init.success)}catch{t.fail(r.init.fail),process.exit(1)}}import et from"chokidar";import{globby as nt}from"globby";var d,h=null,j=new Set;async function P(){try{let e=function(n,y){j.add(n),h&&clearTimeout(h),h=setTimeout(async()=>{j.size>0&&(await m(d,!0),j.clear()),h=null},500)};var t=e;d=await g(),await m(d,!0),s.info(r.watch.start);let o=await nt(d.source);et.watch(o,{awaitWriteFinish:{pollInterval:50,stabilityThreshold:200},ignored:/(^|[/\\])\../,ignoreInitial:!0,persistent:!0}).on("add",n=>e(n,"added")).on("change",n=>e(n,"changed")).on("unlink",n=>e(n,"removed"))}catch{s.error(r.watch.fail),process.exit(1)}}var l=new rt;l.name("yummacss").description("Main command");l.command("init").description("Initialize config").action(J);l.command("build").action(()=>m().catch(()=>process.exit(1))).alias("b").description("Build styles once");l.command("watch").action(()=>P().catch(()=>process.exit(1))).alias("w").description("Build styles continuously");l.parse(process.argv);
|
package/package.json
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yummacss",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"css-framework",
|
|
7
|
-
"css",
|
|
8
|
-
"design-system",
|
|
9
|
-
"framework",
|
|
10
|
-
"lightningcss",
|
|
11
|
-
"responsive-design",
|
|
12
|
-
"responsive",
|
|
13
|
-
"scss",
|
|
14
|
-
"typescript",
|
|
15
|
-
"yummacss"
|
|
16
|
-
],
|
|
17
|
-
"homepage": "https://yummacss.com",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"author": "Renildo Pereira",
|
|
20
|
-
"files": [
|
|
21
|
-
"dist
|
|
22
|
-
"src"
|
|
23
|
-
],
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "yummacss",
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css-framework",
|
|
7
|
+
"css",
|
|
8
|
+
"design-system",
|
|
9
|
+
"framework",
|
|
10
|
+
"lightningcss",
|
|
11
|
+
"responsive-design",
|
|
12
|
+
"responsive",
|
|
13
|
+
"scss",
|
|
14
|
+
"typescript",
|
|
15
|
+
"yummacss"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://yummacss.com",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Renildo Pereira",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"yummacss": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/yumma-lib/yumma-css.git"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsup",
|
|
37
|
+
"dev": "tsup --watch",
|
|
38
|
+
"format:cli": "prettier --write cli",
|
|
39
|
+
"format": "prettier --write .",
|
|
40
|
+
"prepublishOnly": "pnpm build"
|
|
41
|
+
},
|
|
42
|
+
"packageManager": "pnpm@10.14.0",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"chokidar": "^4.0.3",
|
|
45
|
+
"commander": "^14.0.0",
|
|
46
|
+
"globby": "^14.1.0",
|
|
47
|
+
"lightningcss": "^1.30.1",
|
|
48
|
+
"ora": "^8.2.0",
|
|
49
|
+
"purgecss": "^7.0.2",
|
|
50
|
+
"sass-embedded": "^1.90.0",
|
|
51
|
+
"zod": "^4.0.17"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "^24.2.0",
|
|
55
|
+
"prettier": "^3.6.2",
|
|
56
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
57
|
+
"tsup": "^8.5.0",
|
|
58
|
+
"typescript": "^5.9.2"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "
|
|
1
|
+
@use "abstracts/variables" as vars;
|
|
2
2
|
|
|
3
3
|
/** -- Box sizing --
|
|
4
4
|
* 1. Use a more intuitive box-sizing model to make the design consistent.
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
body {
|
|
28
28
|
-webkit-font-smoothing: antialiased; /* 1 */
|
|
29
|
-
font-family: vars.$
|
|
29
|
+
font-family: vars.$ycss-font-system; /* 2 */
|
|
30
30
|
line-height: 1.5; /* 3 */
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -55,7 +55,7 @@ input,
|
|
|
55
55
|
optgroup,
|
|
56
56
|
select,
|
|
57
57
|
textarea {
|
|
58
|
-
background-color: vars.$
|
|
58
|
+
background-color: vars.$ycss-color-transparent; /* 1 */
|
|
59
59
|
font-family: inherit; /* 2 */
|
|
60
60
|
padding: 0.5rem; /* 3 */
|
|
61
61
|
}
|
|
@@ -69,7 +69,7 @@ input:not([class]),
|
|
|
69
69
|
optgroup:not([class]),
|
|
70
70
|
select:not([class]),
|
|
71
71
|
textarea:not([class]) {
|
|
72
|
-
border: 1px solid vars.$
|
|
72
|
+
border: 1px solid vars.$ycss-color-silver; /* 1 */
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -83,7 +83,7 @@ select,
|
|
|
83
83
|
summary,
|
|
84
84
|
textarea {
|
|
85
85
|
&:focus {
|
|
86
|
-
outline: 2px solid vars.$
|
|
86
|
+
outline: 2px solid vars.$ycss-color-transparent;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -213,7 +213,7 @@ th {
|
|
|
213
213
|
*/
|
|
214
214
|
|
|
215
215
|
hr {
|
|
216
|
-
border-top: 1px solid vars.$
|
|
216
|
+
border-top: 1px solid vars.$ycss-color-silver; /* 2 */
|
|
217
217
|
height: 0; /* 1 */
|
|
218
218
|
margin: 1em 0; /* 3 */
|
|
219
219
|
}
|
package/src/_fonts.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@use "abstracts/variables" as vars;
|
|
2
2
|
|
|
3
3
|
.ff-c {
|
|
4
|
-
font-family: vars.$
|
|
5
|
-
font-weight: vars.$
|
|
4
|
+
font-family: vars.$ycss-font-charter;
|
|
5
|
+
font-weight: vars.$ycss-font-weight;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.ff-m {
|
|
9
|
-
font-family: vars.$
|
|
10
|
-
font-weight: vars.$
|
|
9
|
+
font-family: vars.$ycss-font-mono;
|
|
10
|
+
font-weight: vars.$ycss-font-weight;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ff-s {
|
|
14
|
-
font-family: vars.$
|
|
15
|
-
font-weight: vars.$
|
|
14
|
+
font-family: vars.$ycss-font-system;
|
|
15
|
+
font-weight: vars.$ycss-font-weight;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
|
|
3
|
-
$
|
|
3
|
+
$ycss-breakpoints: (
|
|
4
4
|
"sm": 40rem,
|
|
5
5
|
"md": 48rem,
|
|
6
6
|
"lg": 64rem,
|
|
@@ -9,31 +9,31 @@ $yma-breakpoints: (
|
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
@mixin sm {
|
|
12
|
-
@media (min-width: map.get($
|
|
12
|
+
@media (min-width: map.get($ycss-breakpoints, "sm")) {
|
|
13
13
|
@content;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@mixin md {
|
|
18
|
-
@media (min-width: map.get($
|
|
18
|
+
@media (min-width: map.get($ycss-breakpoints, "md")) {
|
|
19
19
|
@content;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@mixin lg {
|
|
24
|
-
@media (min-width: map.get($
|
|
24
|
+
@media (min-width: map.get($ycss-breakpoints, "lg")) {
|
|
25
25
|
@content;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@mixin xl {
|
|
30
|
-
@media (min-width: map.get($
|
|
30
|
+
@media (min-width: map.get($ycss-breakpoints, "xl")) {
|
|
31
31
|
@content;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@mixin xxl {
|
|
36
|
-
@media (min-width: map.get($
|
|
36
|
+
@media (min-width: map.get($ycss-breakpoints, "xxl")) {
|
|
37
37
|
@content;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "variables" as vars;
|
|
3
3
|
|
|
4
|
-
$
|
|
5
|
-
"red": vars.$
|
|
6
|
-
"orange": vars.$
|
|
7
|
-
"yellow": vars.$
|
|
8
|
-
"green": vars.$
|
|
9
|
-
"teal": vars.$
|
|
10
|
-
"cyan": vars.$
|
|
11
|
-
"blue": vars.$
|
|
12
|
-
"indigo": vars.$
|
|
13
|
-
"violet": vars.$
|
|
14
|
-
"pink": vars.$
|
|
15
|
-
"
|
|
16
|
-
"gray": vars.$
|
|
17
|
-
"
|
|
18
|
-
"black": vars.$
|
|
19
|
-
"white": vars.$
|
|
20
|
-
"
|
|
4
|
+
$ycss-theme: (
|
|
5
|
+
"red": vars.$ycss-color-red,
|
|
6
|
+
"orange": vars.$ycss-color-orange,
|
|
7
|
+
"yellow": vars.$ycss-color-yellow,
|
|
8
|
+
"green": vars.$ycss-color-green,
|
|
9
|
+
"teal": vars.$ycss-color-teal,
|
|
10
|
+
"cyan": vars.$ycss-color-cyan,
|
|
11
|
+
"blue": vars.$ycss-color-blue,
|
|
12
|
+
"indigo": vars.$ycss-color-indigo,
|
|
13
|
+
"violet": vars.$ycss-color-violet,
|
|
14
|
+
"pink": vars.$ycss-color-pink,
|
|
15
|
+
"slate": vars.$ycss-color-slate,
|
|
16
|
+
"gray": vars.$ycss-color-gray,
|
|
17
|
+
"silver": vars.$ycss-color-silver,
|
|
18
|
+
"black": vars.$ycss-color-black,
|
|
19
|
+
"white": vars.$ycss-color-white,
|
|
20
|
+
"current": vars.$ycss-color-current,
|
|
21
|
+
"transparent": vars.$ycss-color-transparent,
|
|
21
22
|
);
|
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
//
|
|
2
|
-
$
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$yma-color-green: #1fb155 !default;
|
|
6
|
-
$yma-color-teal: #12a695 !default;
|
|
7
|
-
$yma-color-cyan: #05a4bf !default;
|
|
8
|
-
$yma-color-blue: #3575dd !default;
|
|
9
|
-
$yma-color-indigo: #595cd9 !default;
|
|
10
|
-
$yma-color-violet: #7d53dd !default;
|
|
11
|
-
$yma-color-pink: #d4418a !default;
|
|
12
|
-
$yma-color-lead: #3f3f4e !default;
|
|
13
|
-
$yma-color-gray: #606773 !default;
|
|
14
|
-
$yma-color-silver: #bfc2c7 !default;
|
|
15
|
-
$yma-color-black: black !default;
|
|
16
|
-
$yma-color-white: white !default;
|
|
17
|
-
$yma-color-transparent: transparent !default;
|
|
1
|
+
// borders
|
|
2
|
+
$ycss-border: 1px !default;
|
|
3
|
+
$ycss-border-radius: 0.25rem !default;
|
|
4
|
+
$ycss-border-spacing: 0.25rem !default;
|
|
18
5
|
|
|
19
|
-
//
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$yma-border-spacing: 0.25rem !default;
|
|
6
|
+
// outlines
|
|
7
|
+
$ycss-outline-offset: 1px !default;
|
|
8
|
+
$ycss-outline-width: 1px !default;
|
|
23
9
|
|
|
24
|
-
//
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
10
|
+
// colors
|
|
11
|
+
$ycss-color-red: #d73d3d !default;
|
|
12
|
+
$ycss-color-orange: #e06814 !default;
|
|
13
|
+
$ycss-color-yellow: #d3a107 !default;
|
|
14
|
+
$ycss-color-green: #1fb155 !default;
|
|
15
|
+
$ycss-color-teal: #12a695 !default;
|
|
16
|
+
$ycss-color-cyan: #05a4bf !default;
|
|
17
|
+
$ycss-color-blue: #3575dd !default;
|
|
18
|
+
$ycss-color-indigo: #595cd9 !default;
|
|
19
|
+
$ycss-color-violet: #7d53dd !default;
|
|
20
|
+
$ycss-color-pink: #d4418a !default;
|
|
21
|
+
$ycss-color-slate: #3f3f4e !default;
|
|
22
|
+
$ycss-color-gray: #606773 !default;
|
|
23
|
+
$ycss-color-silver: #bfc2c7 !default;
|
|
24
|
+
$ycss-color-black: black !default;
|
|
25
|
+
$ycss-color-white: white !default;
|
|
26
|
+
$ycss-color-current: currentColor !default;
|
|
27
|
+
$ycss-color-transparent: transparent !default;
|
|
31
28
|
|
|
32
|
-
//
|
|
33
|
-
$
|
|
29
|
+
// box model
|
|
30
|
+
$ycss-dimension: 0.25rem !default;
|
|
31
|
+
$ycss-height: 0.25rem !default;
|
|
32
|
+
$ycss-width: 0.25rem !default;
|
|
33
|
+
$ycss-padding: 0.25rem !default;
|
|
34
|
+
$ycss-margin: 0.25rem !default;
|
|
35
|
+
$ycss-spacing: 0.25rem !default;
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
// flexbox
|
|
38
|
+
$ycss-flex-basis: 0.25rem !default;
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
$
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
$yma-box-shadow-xs: 1px 3px 5px -3px #0000001a !default;
|
|
40
|
+
// grid
|
|
41
|
+
$ycss-gap: 0.25rem !default;
|
|
42
|
+
$ycss-column-gap: 0.25rem !default;
|
|
43
|
+
$ycss-row-gap: 0.25rem !default;
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
// effect
|
|
46
|
+
$ycss-backdrop-blur: 4px !default;
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
$yma-flex-basis: 0.25rem !default;
|
|
48
|
+
$ycss-blur: 4px !default;
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
$
|
|
50
|
-
$
|
|
51
|
-
$
|
|
50
|
+
$ycss-box-shadow-lg: 1px 3px 5px 1px #0000001a !default;
|
|
51
|
+
$ycss-box-shadow-md: 1px 3px 5px -1px #0000001a !default;
|
|
52
|
+
$ycss-box-shadow-sm: 1px 3px 5px -2px #0000001a !default;
|
|
53
|
+
$ycss-box-shadow-xl: 1px 3px 5px 2px #0000001a !default;
|
|
54
|
+
$ycss-box-shadow-xs: 1px 3px 5px -3px #0000001a !default;
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
$yma-outline-offset: 1px !default;
|
|
55
|
-
$yma-outline-width: 1px !default;
|
|
56
|
+
$ycss-grayscale: 10% !default;
|
|
56
57
|
|
|
57
58
|
// positioning
|
|
58
|
-
$
|
|
59
|
-
|
|
60
|
-
// text
|
|
61
|
-
$yma-decoration-thickness: 1px !default;
|
|
59
|
+
$ycss-bottom-left-top-right: 0.25rem !default;
|
|
62
60
|
|
|
63
61
|
// font
|
|
64
|
-
$
|
|
65
|
-
|
|
66
|
-
$
|
|
67
|
-
$
|
|
68
|
-
$yma-font-size-xl: 1.25rem !default;
|
|
69
|
-
$yma-font-size-2xl: 1.5rem !default;
|
|
70
|
-
$yma-font-size-3xl: 1.875rem !default;
|
|
71
|
-
$yma-font-size-4xl: 2.25rem !default;
|
|
72
|
-
$yma-font-size-5xl: 3rem !default;
|
|
73
|
-
$yma-font-size-6xl: 3.75rem !default;
|
|
74
|
-
$yma-font-size-7xl: 4.5rem !default;
|
|
75
|
-
$yma-font-size-8xl: 6rem !default;
|
|
76
|
-
$yma-font-size-9xl: 8rem !default;
|
|
62
|
+
$ycss-font-charter:
|
|
63
|
+
Charter, "Bitstream Charter", "Sitka Text", Cambria, serif !default;
|
|
64
|
+
$ycss-font-mono: "Nimbus Mono PS", "Courier New", monospace !default;
|
|
65
|
+
$ycss-font-system: system-ui, sans-serif !default;
|
|
77
66
|
|
|
78
|
-
$
|
|
67
|
+
$ycss-font-size-xs: 0.75rem !default;
|
|
68
|
+
$ycss-font-size-sm: 0.875rem !default;
|
|
69
|
+
$ycss-font-size-md: 1rem !default;
|
|
70
|
+
$ycss-font-size-lg: 1.125rem !default;
|
|
71
|
+
$ycss-font-size-xl: 1.25rem !default;
|
|
72
|
+
$ycss-font-size-2xl: 1.5rem !default;
|
|
73
|
+
$ycss-font-size-3xl: 1.875rem !default;
|
|
74
|
+
$ycss-font-size-4xl: 2.25rem !default;
|
|
75
|
+
$ycss-font-size-5xl: 3rem !default;
|
|
76
|
+
$ycss-font-size-6xl: 3.75rem !default;
|
|
77
|
+
$ycss-font-size-7xl: 4.5rem !default;
|
|
78
|
+
$ycss-font-size-8xl: 6rem !default;
|
|
79
|
+
$ycss-font-size-9xl: 8rem !default;
|
|
79
80
|
|
|
80
|
-
$
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$
|
|
81
|
+
$ycss-font-weight: 500 !default;
|
|
82
|
+
|
|
83
|
+
// text
|
|
84
|
+
$ycss-decoration-thickness: 1px !default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@use "../theme" as *;
|
|
2
2
|
@use "sass:map";
|
|
3
3
|
|
|
4
|
-
@function ignore-neutral($v, $
|
|
5
|
-
@return $v != map.get($
|
|
6
|
-
map.get($
|
|
4
|
+
@function ignore-neutral($v, $ycss-theme) {
|
|
5
|
+
@return $v != map.get($ycss-theme, "black") and $v !=
|
|
6
|
+
map.get($ycss-theme, "white") and $v != map.get($ycss-theme, "transparent")
|
|
7
|
+
and $v != map.get($ycss-theme, "current");
|
|
7
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
2
|
|
|
3
3
|
@mixin color-scaling($property, $prefix, $k, $v) {
|
|
4
|
-
|
|
5
4
|
// base styles
|
|
6
5
|
.#{$prefix}-#{$k} {
|
|
7
6
|
#{$property}: $v;
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
@mixin shade-scaling($property, $prefix, $k, $v, $percentage) {
|
|
33
32
|
@for $i from 1 through 13 {
|
|
34
33
|
@if $i <=6 {
|
|
35
|
-
|
|
36
34
|
// base styles
|
|
37
35
|
.#{$prefix}-#{$k}-#{$i} {
|
|
38
36
|
#{$property}: color.mix(white, $v, (7 - $i) * $percentage);
|
|
@@ -59,7 +57,6 @@
|
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
} @else if $i >7 {
|
|
62
|
-
|
|
63
60
|
// base styles
|
|
64
61
|
.#{$prefix}-#{$k}-#{$i - 1} {
|
|
65
62
|
#{$property}: color.mix(black, $v, ($i - 7) * $percentage);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../abstracts/variables" as vars;
|
|
4
4
|
@use "../abstracts/mixins/" as mix;
|
|
5
5
|
|
|
6
|
-
$
|
|
6
|
+
$ycss-background-utils: (
|
|
7
7
|
"background-attachment": (
|
|
8
8
|
"prefix": "ba",
|
|
9
9
|
"properties": (
|
|
@@ -87,7 +87,7 @@ $yma-background-utils: (
|
|
|
87
87
|
),
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
-
@each $properties, $map in $
|
|
90
|
+
@each $properties, $map in $ycss-background-utils {
|
|
91
91
|
$prefix: map.get($map, "prefix");
|
|
92
92
|
$properties: map.get($map, "properties");
|
|
93
93
|
|