yummacss 1.0.3 → 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,68 +1,94 @@
1
- // default 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-thickness: 1px !default;
21
- $base-border: 1px !default;
22
- $base-border-radius: 8px !default;
23
- $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);
24
22
 
25
23
  // box model
26
- $base-height: 0.25rem !default;
27
- $base-width: 0.25rem !default;
28
- $base-padding: 0.75rem !default;
29
- $base-margin: 0.75rem !default;
30
- $base-flex-basis: 1rem !default;
31
- $base-flex-grow: 1 !default;
32
- $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;
33
31
 
34
32
  // flexbox & grid
35
- $base-column-gap: 0.25rem !default;
36
- $base-flex: 1 !default;
37
- $base-template-columns: 0.25rem !default;
38
- $base-template-rows: 0.25rem !default;
39
- $base-row-gap: 0.25rem !default;
33
+ $yma-column-gap: 0.25rem;
34
+ $yma-flex: 1;
35
+ $yma-row-gap: 0.25rem;
40
36
 
41
37
  // positioning
42
- $base-columns: 1 !default;
43
- $base-direction: 1px !default;
38
+ $yma-columns: 1;
39
+ $yma-direction: 1px;
44
40
 
45
41
  // typography & text
46
- $base-font-size: 1rem !default;
47
- $base-font: normal !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-xlg: $base-font-size * 3 !default;
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;
52
52
 
53
- // custom values
54
- $custom-values: (
55
- "auto": auto,
56
- "full": 100%,
57
- "half": 50%
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: (
60
+ "auto": auto,
61
+ "fc": fit-content,
62
+ "full": 100%,
63
+ "half": 50%
64
+ );
65
+
66
+ //dynamic values map
67
+ $dynamic-height-values: (
68
+ "1\\/1": 100dvh,
69
+ "1\\/2": 50dvh
58
70
  );
59
71
 
60
- $custom-height-values: (
61
- "1\\/1": 100vh,
62
- "1\\/2": 50vh,
72
+ $dynamic-width-values: (
73
+ "1\\/1": 100dvw,
74
+ "2\\/1": 50dvw
63
75
  );
64
76
 
65
- $custom-width-values: (
66
- "1\\/1": 100vw,
67
- "2\\/1": 50vw,
68
- );
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
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
  }
@@ -1,19 +1,19 @@
1
1
  @mixin btn($bg-color: #e2e2e2) {
2
2
  text-decoration: none;
3
- cursor: pointer;
4
3
  display: inline-block;
5
4
  border: 0;
6
- padding: $base-padding $base-padding * 2;
7
- border-radius: $base-border-radius;
5
+ padding: 0.625rem 0.875rem;
6
+ border-radius: $yma-border-radius * 2;
8
7
  background-color: $bg-color;
8
+ transition: background-color 0.3s ease;
9
+ cursor: pointer;
9
10
  }
10
11
 
11
12
  .btn {
12
13
  @include btn;
13
14
  }
14
15
 
15
- @each $k,
16
- $v in $base-colors {
16
+ @each $k, $v in $yma-colors {
17
17
  .btn-#{$k} {
18
18
  @include btn($v);
19
19
 
@@ -22,7 +22,7 @@ $v in $base-colors {
22
22
  }
23
23
  }
24
24
 
25
- @if($v !=black and $v !=white) {
25
+ @if ($v !=black and $v !=white) {
26
26
  @for $i from 1 through 6 {
27
27
  .btn-l-#{$k}-#{$i} {
28
28
  @include btn(mix(white, $v, $i * 10%));
@@ -46,20 +46,10 @@ $v in $base-colors {
46
46
 
47
47
  .btn-otl-#{$k} {
48
48
  @include btn(#fff);
49
- border: $base-border-thickness solid $v;
49
+ border: $yma-border solid $v;
50
50
 
51
51
  &:hover {
52
52
  background-color: $v;
53
53
  }
54
54
  }
55
-
56
- .btn-cmp-#{$k} {
57
- @include btn($v);
58
- color: light-comp($v);
59
-
60
- &:hover {
61
- color: $v;
62
- background-color: light-comp($v);
63
- }
64
- }
65
- }
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-thickness 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,22 +1,21 @@
1
- // functions & variables
2
- @import 'functions';
3
- @import 'variables';
1
+ // variables
2
+ @import "variables";
4
3
 
5
4
  // base, layouts & breakpoints
6
- @import 'base';
7
- @import 'breakpoints';
8
- @import 'grid';
9
- @import 'layout';
5
+ @import "base";
6
+ @import "breakpoints";
7
+ @import "grid";
8
+ @import "layout";
10
9
 
11
10
  // colors
12
- @import 'colors';
11
+ @import "colors";
13
12
 
14
13
  // components
15
- @import 'components/card';
16
- @import 'components/button';
17
- @import 'components/navbar';
18
- @import 'components/badge';
14
+ @import "components/card";
15
+ @import "components/button";
16
+ @import "components/navbar";
17
+ @import "components/badge";
19
18
 
20
19
  // utilities
21
- @import 'utilities';
22
- @import 'fonts';
20
+ @import "utils";
21
+ @import "fonts";
@@ -1,5 +0,0 @@
1
- @function light-comp($color){
2
- $complement: complement($color);
3
- $light-complement: lighten($complement, 30%);
4
- @return $light-complement;
5
- }