yummacss 3.0.2 → 3.0.3

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/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "yummacss",
3
- "version": "3.0.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
- "gulp",
11
- "lightningcss",
12
- "responsive-design",
13
- "responsive",
14
- "scss",
15
- "yummacss"
16
- ],
17
- "homepage": "https://yummacss.com",
18
- "license": "MIT",
19
- "author": "Renildo Pereira",
20
- "files": [
21
- "dist/cli",
22
- "src"
23
- ],
24
- "main": "./dist/cli/index.js",
25
- "type": "module",
26
- "exports": {
27
- ".": "./dist/cli/src/cli.js"
28
- },
29
- "bin": {
30
- "yummacss": "./dist/cli/src/cli.js",
31
- "yumma": "./dist/cli/src/cli.js"
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/yumma-lib/yumma-css.git"
36
- },
37
- "scripts": {
38
- "build:cli": "tsc -p tsconfig.cli.json",
39
- "build:css": "gulp build",
40
- "build": "pnpm build:css && pnpm build:cli",
41
- "dev": "tsc -p tsconfig.cli.json --watch",
42
- "format:cli": "pnpx prettier --write cli",
43
- "prepublishOnly": "pnpm build:cli"
44
- },
45
- "dependencies": {
46
- "chokidar": "^4.0.3",
47
- "commander": "^13.1.0",
48
- "globby": "^14.1.0",
49
- "lightningcss": "^1.29.3",
50
- "ora": "^8.2.0",
51
- "purgecss": "^7.0.2",
52
- "sass-embedded": "^1.85.1"
53
- },
54
- "devDependencies": {
55
- "@ianvs/prettier-plugin-sort-imports": "^4.5.1",
56
- "@types/node": "^22.13.10",
57
- "gulp-clean-css": "^4.3.0",
58
- "gulp-debug": "^5.0.1",
59
- "gulp-rename": "^2.0.0",
60
- "gulp-sass": "^6.0.0",
61
- "gulp": "^5.0.0",
62
- "sass": "^1.85.1",
63
- "typescript": "^5.8.2"
64
- }
1
+ {
2
+ "name": "yummacss",
3
+ "version": "3.0.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
+ "gulp",
11
+ "lightningcss",
12
+ "responsive-design",
13
+ "responsive",
14
+ "scss",
15
+ "yummacss"
16
+ ],
17
+ "homepage": "https://yummacss.com",
18
+ "license": "MIT",
19
+ "author": "Renildo Pereira",
20
+ "files": [
21
+ "dist/cli",
22
+ "src"
23
+ ],
24
+ "main": "./dist/cli/index.js",
25
+ "type": "module",
26
+ "exports": {
27
+ ".": "./dist/cli/src/cli.js"
28
+ },
29
+ "bin": {
30
+ "yummacss": "./dist/cli/src/cli.js",
31
+ "yumma": "./dist/cli/src/cli.js"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/yumma-lib/yumma-css.git"
36
+ },
37
+ "scripts": {
38
+ "build:cli": "tsc -p tsconfig.cli.json",
39
+ "build:css": "gulp build",
40
+ "build": "pnpm build:css && pnpm build:cli",
41
+ "dev": "tsc -p tsconfig.cli.json --watch",
42
+ "format:cli": "pnpx prettier --write cli",
43
+ "prepublishOnly": "pnpm build:cli"
44
+ },
45
+ "dependencies": {
46
+ "chokidar": "^4.0.3",
47
+ "commander": "^13.1.0",
48
+ "globby": "^14.1.0",
49
+ "lightningcss": "^1.29.3",
50
+ "ora": "^8.2.0",
51
+ "purgecss": "^7.0.2",
52
+ "sass-embedded": "^1.85.1"
53
+ },
54
+ "devDependencies": {
55
+ "@ianvs/prettier-plugin-sort-imports": "^4.5.1",
56
+ "@types/node": "^22.13.10",
57
+ "gulp-clean-css": "^4.3.0",
58
+ "gulp-debug": "^5.0.1",
59
+ "gulp-rename": "^2.0.0",
60
+ "gulp-sass": "^6.0.0",
61
+ "gulp": "^5.0.0",
62
+ "sass": "^1.85.1",
63
+ "typescript": "^5.8.2"
64
+ }
65
65
  }
@@ -1,6 +1,6 @@
1
1
  @use "sass:color";
2
2
 
3
- @mixin mod-color-scaling($property, $prefix, $k, $v) {
3
+ @mixin color-scaling($property, $prefix, $k, $v) {
4
4
  .#{$prefix}-#{$k} {
5
5
  #{$property}: $v;
6
6
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  @mixin shade-scaling($property, $prefix, $k, $v, $percentage) {
16
16
  @for $i from 1 through 13 {
17
- @if $i <= 6 {
17
+ @if $i <=6 {
18
18
  .#{$prefix}-#{$k}-#{$i} {
19
19
  #{$property}: color.mix(white, $v, (7 - $i) * $percentage);
20
20
  }
@@ -24,7 +24,9 @@
24
24
  #{$property}: color.mix(white, $v, (7 - $i) * $percentage);
25
25
  }
26
26
  }
27
- } @else if $i > 7 {
27
+ }
28
+
29
+ @else if $i >7 {
28
30
  .#{$prefix}-#{$k}-#{$i - 1} {
29
31
  #{$property}: color.mix(black, $v, ($i - 7) * $percentage);
30
32
  }
@@ -36,4 +38,4 @@
36
38
  }
37
39
  }
38
40
  }
39
- }
41
+ }
@@ -1,3 +1,2 @@
1
1
  @forward "create-colors";
2
2
  @forward "create-utilities";
3
- @forward "extend-utilities";
@@ -5,68 +5,55 @@
5
5
  @use "../abstracts/_theme" as theme;
6
6
 
7
7
  $yma-color-utils: (
8
- "accent-color": (
9
- "prefix": "ac",
8
+ "accent-color": ("prefix": "ac",
10
9
  "property": "accent-color",
11
10
  ),
12
11
 
13
- "background-color": (
14
- "prefix": "bg",
12
+ "background-color": ("prefix": "bg",
15
13
  "property": "background-color",
16
14
  ),
17
15
 
18
- "border-color": (
19
- "prefix": "bc",
16
+ "border-color": ("prefix": "bc",
20
17
  "property": "border-color",
21
18
  ),
22
19
 
23
- "border-bottom-color": (
24
- "prefix": "bc-b",
20
+ "border-bottom-color": ("prefix": "bc-b",
25
21
  "property": "border-bottom-color",
26
22
  ),
27
23
 
28
- "border-left-color": (
29
- "prefix": "bc-l",
24
+ "border-left-color": ("prefix": "bc-l",
30
25
  "property": "border-left-color",
31
26
  ),
32
27
 
33
- "border-right-color": (
34
- "prefix": "bc-r",
28
+ "border-right-color": ("prefix": "bc-r",
35
29
  "property": "border-right-color",
36
30
  ),
37
31
 
38
- "border-top-color": (
39
- "prefix": "bc-t",
32
+ "border-top-color": ("prefix": "bc-t",
40
33
  "property": "border-top-color",
41
34
  ),
42
35
 
43
- "caret-color": (
44
- "prefix": "cc",
36
+ "caret-color": ("prefix": "cc",
45
37
  "property": "caret-color",
46
38
  ),
47
39
 
48
- "color": (
49
- "prefix": "tc",
40
+ "color": ("prefix": "tc",
50
41
  "property": "color",
51
42
  ),
52
43
 
53
- "fill": (
54
- "prefix": "f",
44
+ "fill": ("prefix": "f",
55
45
  "property": "fill",
56
46
  ),
57
47
 
58
- "outline-color": (
59
- "prefix": "oc",
48
+ "outline-color": ("prefix": "oc",
60
49
  "property": "outline-color",
61
50
  ),
62
51
 
63
- "stroke": (
64
- "prefix": "s",
52
+ "stroke": ("prefix": "s",
65
53
  "property": "stroke",
66
54
  ),
67
55
 
68
- "text-decoration-color": (
69
- "prefix": "tdc",
56
+ "text-decoration-color": ("prefix": "tdc",
70
57
  "property": "text-decoration-color",
71
58
  ),
72
59
  );
@@ -76,10 +63,10 @@ $yma-color-utils: (
76
63
  $prefix: map.get($map, "prefix");
77
64
 
78
65
  @each $k, $v in theme.$yma-theme {
79
- @include mix.mod-color-scaling($property, $prefix, $k, $v);
66
+ @include mix.color-scaling($property, $prefix, $k, $v);
80
67
 
81
68
  @if (fun.ignore-neutral($v, theme.$yma-theme)) {
82
69
  @include mix.shade-scaling($property, $prefix, $k, $v, 14%);
83
70
  }
84
71
  }
85
- }
72
+ }
@@ -1,24 +0,0 @@
1
- @mixin extensions($map, $prefixes) {
2
- @each $k, $v in $map {
3
- @each $prefix, $property in $prefixes {
4
- // base styles
5
- .#{$prefix}-#{$k} {
6
- #{$property}: $v;
7
- }
8
-
9
- // hover styles
10
- .h\:#{$prefix}-#{$k}:hover {
11
- #{$property}: $v;
12
- }
13
-
14
- @each $bp, $bp-value in $yma-breakpoints {
15
- // responsive styles
16
- .#{$bp}\:#{$prefix}-#{$k} {
17
- @include breakpoint($bp-value) {
18
- #{$property}: $v;
19
- }
20
- }
21
- }
22
- }
23
- }
24
- }