yummacss 1.1.0 → 1.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.
@@ -1,72 +1,94 @@
1
- // base colors
2
- $base-colors: (
3
- "red": rgb(242, 109, 80),
4
- "orange": rgb(246, 142, 85),
5
- "yellow": rgb(255, 244, 103),
6
- "green": rgb(59, 184, 120),
7
- "teal": rgb(26, 187, 180),
8
- "aqua": rgb(0, 191, 243),
9
- "blue": rgb(67, 140, 202),
10
- "violet": rgb(133, 95, 168),
11
- "magenta": rgb(168, 99, 168),
12
- "pink": rgb(240, 110, 169),
13
- "gray": rgb(153, 153, 153),
14
- "lead": rgb(63, 63, 78),
15
- "black": black,
16
- "white": white
17
- ) !default;
1
+ // colors
2
+ $ym-colors-red: rgb(215, 61, 61);
3
+ $ym-colors-orange: rgb(224, 104, 20);
4
+ $ym-colors-yellow: rgb(211, 161, 7);
5
+ $ym-colors-green: rgb(31, 177, 85);
6
+ $ym-colors-teal: rgb(18, 166, 149);
7
+ $ym-colors-cyan: rgb(5, 164, 191);
8
+ $ym-colors-blue: rgb(53, 117, 221);
9
+ $ym-colors-indigo: rgb(89, 92, 217);
10
+ $ym-colors-violet: rgb(125, 83, 221);
11
+ $ym-colors-pink: rgb(212, 65, 138);
12
+ $ym-colors-gray: rgb(96, 103, 115);
13
+ $ym-colors-lead: rgb(63, 63, 78);
14
+ $ym-colors-black: rgb(0, 0, 0);
15
+ $ym-colors-white: rgb(255, 255, 255);
16
+ $ym-colors-transparent: rgba(255, 255, 255, 0);
18
17
 
19
- //borders & background
20
- $base-border: 1px !default;
21
- $base-border-radius: 8px !default;
22
- $base-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1) !default;
18
+ // borders & background
19
+ $yma-border: 1px;
20
+ $yma-border-radius: 4px;
21
+ $yma-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
23
22
 
24
23
  // box model
25
- $base-height: 0.25rem !default;
26
- $base-width: 0.25rem !default;
27
- $base-padding: 0.75rem !default;
28
- $base-margin: 0.75rem !default;
29
- $base-flex-basis: 1rem !default;
30
- $base-flex-grow: 1 !default;
31
- $base-flex-shrink: 1 !default;
24
+ $yma-height: 0.25rem;
25
+ $yma-width: 0.25rem;
26
+ $yma-padding: 0.75rem;
27
+ $yma-margin: 0.75rem;
28
+ $yma-flex-basis: 1rem;
29
+ $yma-flex-grow: 1;
30
+ $yma-flex-shrink: 1;
32
31
 
33
32
  // flexbox & grid
34
- $base-column-gap: 0.25rem !default;
35
- $base-flex: 1 !default;
36
- $base-template-columns: 0.25rem !default;
37
- $base-template-rows: 0.25rem !default;
38
- $base-row-gap: 0.25rem !default;
33
+ $yma-column-gap: 0.25rem;
34
+ $yma-flex: 1;
35
+ $yma-row-gap: 0.25rem;
39
36
 
40
37
  // positioning
41
- $base-columns: 1 !default;
42
- $base-direction: 1px !default;
38
+ $yma-columns: 1;
39
+ $yma-direction: 1px;
43
40
 
44
41
  // typography & text
45
- $base-font-size: 1rem !default;
46
- $base-font-weight: 500 !default;
47
- $base-font-size-xs: $base-font-size * 0.6 !default;
48
- $base-font-size-sm: $base-font-size * 0.75 !default;
49
- $base-font-size-md: $base-font-size * 1.75 !default;
50
- $base-font-size-lg: $base-font-size * 2 !default;
51
- $base-font-size-xl: $base-font-size * 3 !default;
52
- $base-system-fonts: system-ui, sans-serif;
53
- $base-charter-fonts: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
54
- $base-inter-fonts: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
55
- $base-monospace-fonts: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
42
+ $yma-font-size: 16px;
43
+ $yma-font-weight: 500;
44
+ $yma-font-size-xs: $yma-font-size * 0.75;
45
+ $yma-font-size-sm: $yma-font-size * 0.9;
46
+ $yma-font-size-md: $yma-font-size;
47
+ $yma-font-size-lg: $yma-font-size * 1.2;
48
+ $yma-font-size-xl: $yma-font-size * 1.44;
49
+ $yma-font-size-2xl: $yma-font-size * 1.88;
50
+ $yma-font-size-3xl: $yma-font-size * 2.22;
51
+ $yma-font-size-6xl: $yma-font-size * 3.66;
56
52
 
57
- // custom values
58
- $custom-values: (
53
+ $yma-system-fonts: system-ui, sans-serif;
54
+ $yma-charter-fonts: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
55
+ $yma-inter-fonts: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
56
+ $yma-monospace-fonts: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
57
+
58
+ // additional values map
59
+ $additional-classes: (
59
60
  "auto": auto,
61
+ "fc": fit-content,
60
62
  "full": 100%,
61
63
  "half": 50%
62
64
  );
63
65
 
64
- $custom-height-values: (
65
- "1\\/1": 100vh,
66
- "1\\/2": 50vh
66
+ //dynamic values map
67
+ $dynamic-height-values: (
68
+ "1\\/1": 100dvh,
69
+ "1\\/2": 50dvh
70
+ );
71
+
72
+ $dynamic-width-values: (
73
+ "1\\/1": 100dvw,
74
+ "2\\/1": 50dvw
67
75
  );
68
76
 
69
- $custom-width-values: (
70
- "1\\/1": 100vw,
71
- "2\\/1": 50vw
77
+ // colors map
78
+ $yma-colors: (
79
+ "red": $ym-colors-red,
80
+ "orange": $ym-colors-orange,
81
+ "yellow": $ym-colors-yellow,
82
+ "green": $ym-colors-green,
83
+ "teal": $ym-colors-teal,
84
+ "cyan": $ym-colors-cyan,
85
+ "blue": $ym-colors-blue,
86
+ "indigo": $ym-colors-indigo,
87
+ "violet": $ym-colors-violet,
88
+ "pink": $ym-colors-pink,
89
+ "gray": $ym-colors-gray,
90
+ "lead": $ym-colors-lead,
91
+ "black": $ym-colors-black,
92
+ "white": $ym-colors-white,
93
+ "transparent": $ym-colors-transparent
72
94
  );
@@ -1,10 +1,10 @@
1
1
  @use "sass:math";
2
2
 
3
- @mixin badge($bg-color: map-get($base-colors, "white")) {
4
- border-radius: $base-border-radius * 4;
3
+ @mixin badge($bg-color: map-get($yma-colors, "white")) {
4
+ border-radius: $yma-border-radius * 4;
5
5
  background-color: $bg-color;
6
- padding: math.div($base-padding, 4) math.div($base-padding, 2);
7
- font-size: $base-font-size-sm;
6
+ padding: math.div($yma-padding, 4) math.div($yma-padding, 2);
7
+ font-size: $yma-font-size-sm;
8
8
  font-weight: normal;
9
9
  }
10
10
 
@@ -12,7 +12,7 @@
12
12
  @include badge;
13
13
  }
14
14
 
15
- @each $k, $v in $base-colors {
15
+ @each $k, $v in $yma-colors {
16
16
  .badge-#{$k} {
17
17
  @include badge($v);
18
18
  }
@@ -2,8 +2,8 @@
2
2
  text-decoration: none;
3
3
  display: inline-block;
4
4
  border: 0;
5
- padding: $base-padding $base-padding * 2;
6
- border-radius: $base-border-radius;
5
+ padding: 0.625rem 0.875rem;
6
+ border-radius: $yma-border-radius * 2;
7
7
  background-color: $bg-color;
8
8
  transition: background-color 0.3s ease;
9
9
  cursor: pointer;
@@ -13,8 +13,7 @@
13
13
  @include btn;
14
14
  }
15
15
 
16
- @each $k,
17
- $v in $base-colors {
16
+ @each $k, $v in $yma-colors {
18
17
  .btn-#{$k} {
19
18
  @include btn($v);
20
19
 
@@ -23,7 +22,7 @@ $v in $base-colors {
23
22
  }
24
23
  }
25
24
 
26
- @if($v !=black and $v !=white) {
25
+ @if ($v !=black and $v !=white) {
27
26
  @for $i from 1 through 6 {
28
27
  .btn-l-#{$k}-#{$i} {
29
28
  @include btn(mix(white, $v, $i * 10%));
@@ -47,20 +46,10 @@ $v in $base-colors {
47
46
 
48
47
  .btn-otl-#{$k} {
49
48
  @include btn(#fff);
50
- border: $base-border solid $v;
49
+ border: $yma-border solid $v;
51
50
 
52
51
  &:hover {
53
52
  background-color: $v;
54
53
  }
55
54
  }
56
-
57
- .btn-cmp-#{$k} {
58
- @include btn($v);
59
- color: light-comp($v);
60
-
61
- &:hover {
62
- color: $v;
63
- background-color: light-comp($v);
64
- }
65
- }
66
- }
55
+ }
@@ -1,23 +1,23 @@
1
- @use 'sass:math';
1
+ @use "sass:math";
2
2
 
3
3
  .card {
4
4
  display: block;
5
- padding: $base-padding;
6
- border: $base-border solid #ddd;
7
- box-shadow: $base-box-shadow;
8
- border-radius: math.div($base-border-radius, 2);
5
+ padding: $yma-padding;
6
+ border: $yma-border solid #ddd;
7
+ box-shadow: $yma-box-shadow;
8
+ border-radius: math.div($yma-border-radius, 2);
9
9
 
10
10
  .card-t {
11
- font-size: $base-font-size;
12
- padding-bottom: $base-padding;
11
+ font-size: $yma-font-size;
12
+ padding-bottom: $yma-padding;
13
13
  font-weight: bold;
14
14
  }
15
15
 
16
16
  .card-b {
17
- font-size: $base-font-size;
17
+ font-size: $yma-font-size;
18
18
  }
19
19
 
20
20
  a {
21
21
  text-decoration: underline;
22
22
  }
23
- }
23
+ }
@@ -8,18 +8,16 @@
8
8
 
9
9
  .nav {
10
10
  @extend %flex-layout;
11
- padding: $base-padding $base-padding * 2;
12
- box-shadow: $base-box-shadow;
11
+ padding: $yma-padding $yma-padding * 2;
13
12
 
14
13
  .cnn {
15
14
  @extend %flex-layout;
16
15
  }
17
16
  }
18
17
 
19
- @each $k, $v in $base-colors {
18
+ @each $k, $v in $yma-colors {
20
19
  .nav-#{$k} {
21
20
  @extend .nav;
22
21
  background-color: $v;
23
22
  }
24
23
  }
25
-
@@ -1,5 +1,4 @@
1
- // functions & variables
2
- @import "functions";
1
+ // variables
3
2
  @import "variables";
4
3
 
5
4
  // base, layouts & breakpoints
@@ -1,5 +0,0 @@
1
- @function light-comp($color) {
2
- $complement: complement($color);
3
- $light-complement: lighten($complement, 30%);
4
- @return $light-complement;
5
- }