yummacss 3.2.2 → 3.3.1

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/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright (c) 2023-present Yumma CSS maintained by Renildo Pereira.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1
+ Copyright (c) 2023-present Yumma CSS maintained by Renildo Pereira.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
20
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -7,7 +7,7 @@ A CSS framework for the web with abbreviated styles.
7
7
 
8
8
  ## Getting started
9
9
 
10
- Yumma CSS is a CSS framework packed with a set of abbreviated utility classes for building faster and more maintainable UIs.
10
+ Yumma CSS is a CLI-first CSS framework packed with a set of non-opinionated, atomic utility classes designed to minimize and scale your codebase.
11
11
 
12
12
  ### Installing
13
13
 
@@ -30,7 +30,7 @@ Our [framework guides](https://www.yummacss.com/docs/installation#framework-guid
30
30
  The Yumma CSS CLI provides several commands to help you work with your Yumma CSS files.
31
31
 
32
32
  > [!IMPORTANT]
33
- > Make sure you have a `yumma.config.js` file set up before running these commands. If you haven’t, run `npx yummacss init` first.
33
+ > Make sure you have a `yumma.config.mjs` file set up before running these commands. If you haven’t, run `npx yummacss init` first.
34
34
 
35
35
  ### Building styles
36
36
 
package/dist/index.js CHANGED
@@ -1 +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").action(J).alias("i").description("Initialize config");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);
1
+ import{Command as e}from"commander";import{existsSync as t,writeFileSync as n}from"fs";import{dirname as r,join as i}from"path";import*as a from"sass-embedded";import{fileURLToPath as o,pathToFileURL as s}from"url";import{z as c}from"zod";import l from"ora";import{transform as u}from"lightningcss";import{globby as d}from"globby";import{PurgeCSS as f}from"purgecss";import p from"stringify-object";import m from"chokidar";let h={};function g(){return h}function _(e){h=e}function v(e){let t=JSON.stringify(e);return h.configHash!==t}function y(){let e=o(import.meta.url),n=r(e);for(;n!==r(n);){let e=i(n,`package.json`);if(t(e))return n;n=r(n)}return n}const b=y();async function x(e){let t=e.buildOptions.reset?`index.scss`:`core.scss`,n=await a.compileAsync(i(b,`src`,t),{style:`expanded`,loadPaths:[i(b,`src`)],importers:[{findFileUrl(e){return new URL(e,`file://${i(b,`src/`)}`)}}]});return{css:n.css,dependencies:n.loadedUrls.filter(e=>e.protocol===`file:`).map(e=>o(e))}}const S=`yumma.config.mjs`,C=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})}),w={build:{start:`Building...`,success:(e,t)=>`Build done in ${e}ms. (${t})`,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.`}},T={error:e=>l().fail(e),info:e=>l().info(e),progress:e=>l({spinner:`sand`,color:`white`}).start(e),success:e=>l().succeed(e),warn:e=>l().warn(e)};async function E(){let e=i(process.cwd(),S),n=s(e).href;try{let{default:e}=await import(n);return C.parse(e)}catch(e){throw t(S)?e instanceof c.ZodError&&(T.progress(w.init.invalid).fail(w.init.invalid),process.exit(1)):(T.progress(w.init.notFound).warn(w.init.notFound),process.exit(1)),e}}function D(e,t){return u({filename:`style.css`,code:Buffer.from(e),minify:t.buildOptions.minify,sourceMap:!1}).code.toString()}async function O(e,t){return(await new f().purge({content:await d(t.source),css:[{raw:e}],defaultExtractor:e=>e.match(/[\w-/\\:]+/g)||[]}))[0].css}async function k(e,t=!1){let r=T.progress(w.build.start),i=Date.now();try{let a=e||await E(),o=g(),s=v(a),c;if(t||s||!o.css){let e=await x(a);c=e.css,_({configHash:JSON.stringify(a),css:e.css,dependencies:e.dependencies})}else c=o.css;let l=await O(c,a),u=D(l,a);n(a.output,u),r.succeed(w.build.success(Date.now()-i,a.output))}catch{r.fail(w.build.fail),process.exit(1)}}function A(){let e=C.parse({});return{filename:S,content:`export default ${p(e,{indent:` `,singleQuotes:!1})};`}}function j(){let e=T.progress(`Initializing config...`);try{let{filename:t,content:r}=A();n(t,r),e.succeed(w.init.success)}catch{e.fail(w.init.fail),process.exit(1)}}let M,N=null,P=new Set;async function F(){try{M=await E(),await k(M,!0),T.info(w.watch.start);let e=await d(M.source);m.watch(e,{awaitWriteFinish:{pollInterval:50,stabilityThreshold:200},ignored:/(^|[/\\])\../,ignoreInitial:!0,persistent:!0}).on(`add`,e=>t(e,`added`)).on(`change`,e=>t(e,`changed`)).on(`unlink`,e=>t(e,`removed`));function t(e,t){P.add(e),N&&clearTimeout(N),N=setTimeout(async()=>{P.size>0&&(await k(M,!0),P.clear()),N=null},500)}}catch{T.error(w.watch.fail),process.exit(1)}}const I=new e;I.name(`yummacss`).description(`Main command`),I.command(`init`).action(j).alias(`i`).description(`Initialize config`),I.command(`build`).action(()=>k().catch(()=>process.exit(1))).alias(`b`).description(`Build styles once`),I.command(`watch`).action(()=>F().catch(()=>process.exit(1))).alias(`w`).description(`Build styles continuously`),I.parse(process.argv);export{};
package/package.json CHANGED
@@ -1,60 +1,58 @@
1
- {
2
- "name": "yummacss",
3
- "version": "3.2.2",
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.15.1",
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
+ {
2
+ "name": "yummacss",
3
+ "version": "3.3.1",
4
+ "description": "A CSS framework for the web with abbreviated styles.",
5
+ "keywords": [
6
+ "css-framework",
7
+ "scss",
8
+ "typescript",
9
+ "yummacss"
10
+ ],
11
+ "homepage": "https://yummacss.com",
12
+ "license": "MIT",
13
+ "author": "Renildo Pereira",
14
+ "files": [
15
+ "dist",
16
+ "src"
17
+ ],
18
+ "type": "module",
19
+ "exports": {
20
+ ".": "./dist/index.js"
21
+ },
22
+ "bin": {
23
+ "yummacss": "./dist/index.js"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/yumma-lib/yumma-css.git"
28
+ },
29
+ "dependencies": {
30
+ "chokidar": "^4.0.3",
31
+ "commander": "^14.0.0",
32
+ "globby": "^14.1.0",
33
+ "lightningcss": "^1.30.1",
34
+ "ora": "^8.2.0",
35
+ "purgecss": "^7.0.2",
36
+ "sass-embedded": "^1.90.0",
37
+ "stringify-object": "^6.0.0",
38
+ "zod": "^4.0.17"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^24.2.0",
42
+ "@types/stringify-object": "^4.0.5",
43
+ "prettier": "^3.6.2",
44
+ "prettier-plugin-organize-imports": "^4.2.0",
45
+ "tsdown": "^0.15.0",
46
+ "typescript": "^5.9.2"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "provenance": true
51
+ },
52
+ "scripts": {
53
+ "build": "tsdown",
54
+ "dev": "tsdown --watch",
55
+ "format:cli": "prettier --write cli",
56
+ "format": "prettier --write ."
57
+ }
58
+ }
package/src/_base.scss CHANGED
@@ -1,150 +1,150 @@
1
- @use "abstracts/variables" as vars;
2
-
3
- *,
4
- *::before,
5
- *::after {
6
- box-sizing: border-box;
7
- border: 0 solid;
8
- }
9
-
10
- * {
11
- margin: 0;
12
- padding: 0;
13
- }
14
-
15
- html {
16
- font-family: vars.$ycss-font-system;
17
- }
18
-
19
- body {
20
- -webkit-font-smoothing: antialiased;
21
- font-family: inherit;
22
- line-height: 1.5;
23
- }
24
-
25
- canvas,
26
- img,
27
- picture,
28
- svg,
29
- video {
30
- display: block;
31
- max-width: 100%;
32
- }
33
-
34
- button,
35
- input,
36
- optgroup,
37
- select,
38
- textarea {
39
- background-color: vars.$ycss-color-transparent;
40
- font-family: inherit;
41
- padding: 0.5rem;
42
- }
43
-
44
- button:not([class]),
45
- input:not([class]),
46
- optgroup:not([class]),
47
- select:not([class]),
48
- textarea:not([class]) {
49
- border: 1px solid vars.$ycss-color-silver;
50
- }
51
-
52
- a,
53
- button,
54
- input,
55
- select,
56
- summary,
57
- textarea {
58
- &:focus {
59
- outline: 2px solid vars.$ycss-color-transparent;
60
- }
61
- }
62
-
63
- textarea:not([rows]) {
64
- min-height: 10em;
65
- }
66
-
67
- button {
68
- cursor: pointer;
69
- }
70
-
71
- button:disabled,
72
- input:disabled,
73
- select:disabled,
74
- textarea:disabled {
75
- cursor: not-allowed;
76
- opacity: 0.5;
77
- }
78
-
79
- h1,
80
- h2,
81
- h3,
82
- h4,
83
- h5,
84
- h6,
85
- p {
86
- overflow-wrap: break-word;
87
- }
88
-
89
- h1,
90
- h2,
91
- h3,
92
- h4,
93
- h5,
94
- h6 {
95
- font-size: 1rem;
96
- font-weight: 600;
97
- text-wrap: balance;
98
- }
99
-
100
- p {
101
- text-wrap: pretty;
102
- }
103
-
104
- b,
105
- strong {
106
- font-weight: 700;
107
- }
108
-
109
- small {
110
- font-size: 80%;
111
- line-height: 1.4;
112
- }
113
-
114
- pre,
115
- code,
116
- kbd,
117
- samp {
118
- font-family: monospace, monospace;
119
- font-size: 1em;
120
- }
121
-
122
- a {
123
- color: inherit;
124
- text-decoration: none;
125
- }
126
-
127
- ol,
128
- ul {
129
- list-style: none;
130
- padding: 0;
131
- }
132
-
133
- th {
134
- font-size: 1rem;
135
- font-weight: 600;
136
- }
137
-
138
- hr {
139
- border-top: 1px solid vars.$ycss-color-silver;
140
- height: 0;
141
- margin: 1em 0;
142
- }
143
-
144
- details {
145
- display: block;
146
- }
147
-
148
- summary {
149
- display: list-item;
150
- }
1
+ @use "abstracts/variables" as vars;
2
+
3
+ *,
4
+ *::before,
5
+ *::after {
6
+ box-sizing: border-box;
7
+ border: 0 solid;
8
+ }
9
+
10
+ * {
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+
15
+ html {
16
+ font-family: vars.$ycss-font-system;
17
+ }
18
+
19
+ body {
20
+ -webkit-font-smoothing: antialiased;
21
+ font-family: inherit;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ canvas,
26
+ img,
27
+ picture,
28
+ svg,
29
+ video {
30
+ display: block;
31
+ max-width: 100%;
32
+ }
33
+
34
+ button,
35
+ input,
36
+ optgroup,
37
+ select,
38
+ textarea {
39
+ background-color: vars.$ycss-color-transparent;
40
+ font-family: inherit;
41
+ padding: 0.5rem;
42
+ }
43
+
44
+ button:not([class]),
45
+ input:not([class]),
46
+ optgroup:not([class]),
47
+ select:not([class]),
48
+ textarea:not([class]) {
49
+ border: 1px solid vars.$ycss-color-silver;
50
+ }
51
+
52
+ a,
53
+ button,
54
+ input,
55
+ select,
56
+ summary,
57
+ textarea {
58
+ &:focus {
59
+ outline: 2px solid vars.$ycss-color-transparent;
60
+ }
61
+ }
62
+
63
+ textarea:not([rows]) {
64
+ min-height: 10em;
65
+ }
66
+
67
+ button {
68
+ cursor: pointer;
69
+ }
70
+
71
+ button:disabled,
72
+ input:disabled,
73
+ select:disabled,
74
+ textarea:disabled {
75
+ cursor: not-allowed;
76
+ opacity: 0.5;
77
+ }
78
+
79
+ h1,
80
+ h2,
81
+ h3,
82
+ h4,
83
+ h5,
84
+ h6,
85
+ p {
86
+ overflow-wrap: break-word;
87
+ }
88
+
89
+ h1,
90
+ h2,
91
+ h3,
92
+ h4,
93
+ h5,
94
+ h6 {
95
+ font-size: 1rem;
96
+ font-weight: 600;
97
+ text-wrap: balance;
98
+ }
99
+
100
+ p {
101
+ text-wrap: pretty;
102
+ }
103
+
104
+ b,
105
+ strong {
106
+ font-weight: 700;
107
+ }
108
+
109
+ small {
110
+ font-size: 80%;
111
+ line-height: 1.4;
112
+ }
113
+
114
+ pre,
115
+ code,
116
+ kbd,
117
+ samp {
118
+ font-family: monospace, monospace;
119
+ font-size: 1em;
120
+ }
121
+
122
+ a {
123
+ color: inherit;
124
+ text-decoration: none;
125
+ }
126
+
127
+ ol,
128
+ ul {
129
+ list-style: none;
130
+ padding: 0;
131
+ }
132
+
133
+ th {
134
+ font-size: 1rem;
135
+ font-weight: 600;
136
+ }
137
+
138
+ hr {
139
+ border-top: 1px solid vars.$ycss-color-silver;
140
+ height: 0;
141
+ margin: 1em 0;
142
+ }
143
+
144
+ details {
145
+ display: block;
146
+ }
147
+
148
+ summary {
149
+ display: list-item;
150
+ }
@@ -1,2 +1,2 @@
1
- @forward "ignore-neutral";
2
- @forward "create-values";
1
+ @forward "ignore-neutral";
2
+ @forward "create-values";
package/src/index.scss CHANGED
@@ -1,2 +1,2 @@
1
1
  @use "base";
2
- @use "core";
2
+ @use "core";
@@ -1,26 +1,26 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
- @use "../../../abstracts/_breakpoints.scss" as bp;
5
-
6
- $ycss-dimension-map: map.merge(
7
- (
8
- "auto": auto,
9
- "dvh": 100dvh,
10
- "dvw": 100dvw,
11
- "fc": fit-content,
12
- "full": 100%,
13
- "half": 50%,
14
- "max": max-content,
15
- "min": min-content,
16
- "px": 1px,
17
- "vh": 100vh,
18
- "vw": 100vw,
19
- "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
- "md": map.get(bp.$ycss-breakpoints, "md"),
21
- "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
- "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
- "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
- ),
25
- fun.create-values(vars.$ycss-dimension)
26
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+ @use "../../../abstracts/_breakpoints.scss" as bp;
5
+
6
+ $ycss-dimension-map: map.merge(
7
+ (
8
+ "auto": auto,
9
+ "dvh": 100dvh,
10
+ "dvw": 100dvw,
11
+ "fc": fit-content,
12
+ "full": 100%,
13
+ "half": 50%,
14
+ "max": max-content,
15
+ "min": min-content,
16
+ "px": 1px,
17
+ "vh": 100vh,
18
+ "vw": 100vw,
19
+ "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
+ "md": map.get(bp.$ycss-breakpoints, "md"),
21
+ "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
+ "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
+ "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
+ ),
25
+ fun.create-values(vars.$ycss-dimension)
26
+ );
@@ -1,26 +1,26 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
- @use "../../../abstracts/_breakpoints.scss" as bp;
5
-
6
- $ycss-height-map: map.merge(
7
- (
8
- "auto": auto,
9
- "dvh": 100dvh,
10
- "dvw": 100dvw,
11
- "fc": fit-content,
12
- "full": 100%,
13
- "half": 50%,
14
- "max": max-content,
15
- "min": min-content,
16
- "px": 1px,
17
- "vh": 100vh,
18
- "vw": 100vw,
19
- "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
- "md": map.get(bp.$ycss-breakpoints, "md"),
21
- "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
- "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
- "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
- ),
25
- fun.create-values(vars.$ycss-height)
26
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+ @use "../../../abstracts/_breakpoints.scss" as bp;
5
+
6
+ $ycss-height-map: map.merge(
7
+ (
8
+ "auto": auto,
9
+ "dvh": 100dvh,
10
+ "dvw": 100dvw,
11
+ "fc": fit-content,
12
+ "full": 100%,
13
+ "half": 50%,
14
+ "max": max-content,
15
+ "min": min-content,
16
+ "px": 1px,
17
+ "vh": 100vh,
18
+ "vw": 100vw,
19
+ "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
+ "md": map.get(bp.$ycss-breakpoints, "md"),
21
+ "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
+ "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
+ "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
+ ),
25
+ fun.create-values(vars.$ycss-height)
26
+ );
@@ -1,11 +1,11 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
-
5
- $ycss-margin-map: map.merge(
6
- (
7
- "auto": auto,
8
- "px": 1px,
9
- ),
10
- fun.create-values(vars.$ycss-margin)
11
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+
5
+ $ycss-margin-map: map.merge(
6
+ (
7
+ "auto": auto,
8
+ "px": 1px,
9
+ ),
10
+ fun.create-values(vars.$ycss-margin)
11
+ );
@@ -1,11 +1,11 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
-
5
- $ycss-padding-map: map.merge(
6
- (
7
- "auto": auto,
8
- "px": 1px,
9
- ),
10
- fun.create-values(vars.$ycss-padding)
11
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+
5
+ $ycss-padding-map: map.merge(
6
+ (
7
+ "auto": auto,
8
+ "px": 1px,
9
+ ),
10
+ fun.create-values(vars.$ycss-padding)
11
+ );
@@ -1,26 +1,26 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
- @use "../../../abstracts/_breakpoints.scss" as bp;
5
-
6
- $ycss-width-map: map.merge(
7
- (
8
- "auto": auto,
9
- "dvh": 100dvh,
10
- "dvw": 100dvw,
11
- "fc": fit-content,
12
- "full": 100%,
13
- "half": 50%,
14
- "max": max-content,
15
- "min": min-content,
16
- "px": 1px,
17
- "vh": 100vh,
18
- "vw": 100vw,
19
- "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
- "md": map.get(bp.$ycss-breakpoints, "md"),
21
- "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
- "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
- "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
- ),
25
- fun.create-values(vars.$ycss-width)
26
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+ @use "../../../abstracts/_breakpoints.scss" as bp;
5
+
6
+ $ycss-width-map: map.merge(
7
+ (
8
+ "auto": auto,
9
+ "dvh": 100dvh,
10
+ "dvw": 100dvw,
11
+ "fc": fit-content,
12
+ "full": 100%,
13
+ "half": 50%,
14
+ "max": max-content,
15
+ "min": min-content,
16
+ "px": 1px,
17
+ "vh": 100vh,
18
+ "vw": 100vw,
19
+ "sm": map.get(bp.$ycss-breakpoints, "sm"),
20
+ "md": map.get(bp.$ycss-breakpoints, "md"),
21
+ "lg": map.get(bp.$ycss-breakpoints, "lg"),
22
+ "xl": map.get(bp.$ycss-breakpoints, "xl"),
23
+ "xxl": map.get(bp.$ycss-breakpoints, "xxl"),
24
+ ),
25
+ fun.create-values(vars.$ycss-width)
26
+ );
@@ -1,12 +1,12 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
-
5
- $ycss-flex-basis-map: map.merge(
6
- (
7
- "auto": auto,
8
- "full": 100%,
9
- "half": 50%,
10
- ),
11
- fun.create-values(vars.$ycss-flex-basis)
12
- );
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+
5
+ $ycss-flex-basis-map: map.merge(
6
+ (
7
+ "auto": auto,
8
+ "full": 100%,
9
+ "half": 50%,
10
+ ),
11
+ fun.create-values(vars.$ycss-flex-basis)
12
+ );
@@ -1,5 +1,5 @@
1
- @use "sass:map";
2
- @use "../../../abstracts/functions/create-values" as fun;
3
- @use "../../../abstracts/variables" as vars;
4
-
5
- $ycss-gap-map: fun.create-values(vars.$ycss-gap);
1
+ @use "sass:map";
2
+ @use "../../../abstracts/functions/create-values" as fun;
3
+ @use "../../../abstracts/variables" as vars;
4
+
5
+ $ycss-gap-map: fun.create-values(vars.$ycss-gap);