@volverjs/style 0.1.23 → 0.1.24-beta.2

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.
Files changed (140) hide show
  1. package/README.md +30 -0
  2. package/dist/base.css +1 -1
  3. package/dist/components/vv-accordion.css +1 -1
  4. package/dist/components/vv-alert.css +1 -1
  5. package/dist/components/vv-badge.css +1 -1
  6. package/dist/components/vv-button.css +1 -1
  7. package/dist/components/vv-card.css +1 -1
  8. package/dist/components/vv-checkbox.css +1 -1
  9. package/dist/components/vv-dialog.css +1 -1
  10. package/dist/components/vv-dropdown-action.css +1 -1
  11. package/dist/components/vv-dropdown-option.css +1 -1
  12. package/dist/components/vv-dropdown.css +1 -1
  13. package/dist/components/vv-input-file.css +1 -1
  14. package/dist/components/vv-input-text.css +1 -1
  15. package/dist/components/vv-nav.css +1 -1
  16. package/dist/components/vv-radio.css +1 -1
  17. package/dist/components/vv-select.css +1 -1
  18. package/dist/components/vv-text.css +1 -1
  19. package/dist/components/vv-tooltip.css +1 -1
  20. package/dist/components.css +1 -1
  21. package/dist/export.css +1 -1
  22. package/dist/props/breakpoints.css +1 -1
  23. package/dist/props/colors.css +1 -1
  24. package/dist/props/effects.css +1 -1
  25. package/dist/props/spacing.css +1 -1
  26. package/dist/props/transitions.css +1 -1
  27. package/dist/props/typography.css +1 -1
  28. package/dist/props.css +1 -1
  29. package/dist/themes/dark/components.css +1 -1
  30. package/dist/themes/dark/props.css +1 -1
  31. package/dist/themes/dark/volver.css +1 -1
  32. package/dist/utilities/borders.css +1 -1
  33. package/dist/utilities/colors.css +1 -1
  34. package/dist/utilities/effects.css +1 -1
  35. package/dist/utilities/flexbox.css +1 -1
  36. package/dist/utilities/grid.css +1 -1
  37. package/dist/utilities/layout.css +1 -1
  38. package/dist/utilities/sizing.css +1 -1
  39. package/dist/utilities/typography.css +1 -1
  40. package/dist/utilities.css +1 -1
  41. package/dist/volver.css +1 -1
  42. package/package.json +17 -17
  43. package/src/_config.scss +12 -0
  44. package/src/_layers.scss +4 -0
  45. package/src/_preflight.scss +2 -0
  46. package/src/components/vv-accordion-group.scss +4 -1
  47. package/src/components/vv-accordion.scss +4 -1
  48. package/src/components/vv-alert-group.scss +4 -1
  49. package/src/components/vv-alert.scss +4 -1
  50. package/src/components/vv-avatar-group.scss +4 -1
  51. package/src/components/vv-avatar.scss +4 -1
  52. package/src/components/vv-badge.scss +4 -1
  53. package/src/components/vv-breadcrumb.scss +4 -1
  54. package/src/components/vv-button-group.scss +4 -1
  55. package/src/components/vv-button.scss +5 -2
  56. package/src/components/vv-card.scss +4 -1
  57. package/src/components/vv-checkbox-group.scss +4 -1
  58. package/src/components/vv-checkbox.scss +4 -1
  59. package/src/components/vv-dialog.scss +4 -1
  60. package/src/components/vv-dropdown-action.scss +4 -1
  61. package/src/components/vv-dropdown-optgroup.scss +4 -1
  62. package/src/components/vv-dropdown-option.scss +4 -1
  63. package/src/components/vv-dropdown.scss +4 -1
  64. package/src/components/vv-input-file.scss +4 -1
  65. package/src/components/vv-input-text.scss +4 -1
  66. package/src/components/vv-nav.scss +4 -1
  67. package/src/components/vv-progress.scss +4 -1
  68. package/src/components/vv-radio-group.scss +4 -1
  69. package/src/components/vv-radio.scss +4 -1
  70. package/src/components/vv-select.scss +4 -1
  71. package/src/components/vv-skeleton.scss +4 -1
  72. package/src/components/vv-tab.scss +4 -1
  73. package/src/components/vv-table.scss +4 -1
  74. package/src/components/vv-text.scss +4 -1
  75. package/src/components/vv-textarea.scss +4 -1
  76. package/src/components/vv-tooltip.scss +6 -8
  77. package/src/export.scss +0 -1
  78. package/src/props/background.scss +5 -3
  79. package/src/props/borders.scss +5 -3
  80. package/src/props/breakpoints.scss +11 -9
  81. package/src/props/colors.scss +4 -2
  82. package/src/props/effects.scss +5 -3
  83. package/src/props/filters.scss +6 -4
  84. package/src/props/input.scss +4 -2
  85. package/src/props/layout.scss +5 -3
  86. package/src/props/sizing.scss +5 -3
  87. package/src/props/spacing.scss +18 -16
  88. package/src/props/transitions.scss +150 -118
  89. package/src/props/typography.scss +26 -24
  90. package/src/reset.scss +4 -0
  91. package/src/settings/_colors.scss +80 -50
  92. package/src/settings/_effects.scss +7 -7
  93. package/src/settings/components/_vv-badge.scss +2 -10
  94. package/src/settings/components/_vv-button.scss +1 -1
  95. package/src/settings/components/_vv-card.scss +3 -17
  96. package/src/settings/components/_vv-dialog.scss +1 -0
  97. package/src/settings/components/_vv-nav.scss +1 -6
  98. package/src/settings/components/_vv-text.scss +1 -0
  99. package/src/themes/dark/components/_vv-alert.scss +15 -10
  100. package/src/themes/dark/components/_vv-avatar.scss +15 -10
  101. package/src/themes/dark/components/_vv-badge.scss +15 -10
  102. package/src/themes/dark/components/_vv-button.scss +15 -10
  103. package/src/themes/dark/components/_vv-dropdown-action.scss +15 -10
  104. package/src/themes/dark/components/_vv-dropdown-option.scss +15 -10
  105. package/src/themes/dark/components/_vv-nav.scss +15 -10
  106. package/src/themes/dark/components/_vv-select.scss +15 -10
  107. package/src/themes/dark/props/_background.scss +3 -0
  108. package/src/themes/dark/props/_colors.scss +3 -0
  109. package/src/themes/dark/props/_input.scss +3 -0
  110. package/src/themes/dark/settings/_colors.scss +42 -28
  111. package/src/themes/dark/settings/components/_vv-alert.scss +23 -0
  112. package/src/themes/dark/settings/components/_vv-avatar.scss +3 -0
  113. package/src/themes/dark/settings/components/_vv-button.scss +0 -1
  114. package/src/tools/_breakpoints.scss +20 -4
  115. package/src/tools/_functions.scss +157 -0
  116. package/src/tools/_mixins.scss +5 -1216
  117. package/src/tools/mixin-modules/_attrs.scss +178 -0
  118. package/src/tools/mixin-modules/_bem.scss +751 -0
  119. package/src/tools/mixin-modules/_helpers.scss +23 -0
  120. package/src/tools/mixin-modules/_index.scss +25 -0
  121. package/src/tools/mixin-modules/_layers.scss +42 -0
  122. package/src/tools/mixin-modules/_props.scss +41 -0
  123. package/src/tools/mixin-modules/_theme.scss +373 -0
  124. package/src/tools/mixin-modules/_utilities.scss +121 -0
  125. package/src/utilities/backgrounds.scss +3 -0
  126. package/src/utilities/borders.scss +3 -0
  127. package/src/utilities/colors.scss +3 -0
  128. package/src/utilities/effects.scss +3 -0
  129. package/src/utilities/filters.scss +3 -0
  130. package/src/utilities/flexbox.scss +3 -0
  131. package/src/utilities/grid.scss +3 -0
  132. package/src/utilities/interactivity.scss +3 -0
  133. package/src/utilities/layout.scss +3 -0
  134. package/src/utilities/sizing.scss +3 -0
  135. package/src/utilities/spacing.scss +3 -0
  136. package/src/utilities/tables.scss +3 -0
  137. package/src/utilities/transforms.scss +11 -6
  138. package/src/utilities/transitions.scss +3 -0
  139. package/src/utilities/typography.scss +3 -0
  140. package/src/volver.scss +2 -1
@@ -1,13 +1,16 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(components, $use-css-layers, $layer-prefix) {
4
5
  $component-name: map.get($components-names, vv-table);
5
6
  $component-map: $vv-table;
6
7
 
7
8
  @include spread-map-into-bem(
8
9
  $map: $component-map,
9
10
  $block: $component-name,
10
- $props: $use-custom-props-for-components,
11
+ $use-custom-props: $use-custom-props-for-components,
11
12
  $zero-specificity: $zero-specificity-for-components,
12
13
  $bps: $breakpoints
13
14
  );
15
+
16
+ }
@@ -1,13 +1,16 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(components, $use-css-layers, $layer-prefix) {
4
5
  $component-name: map.get($components-names, vv-text);
5
6
  $component-map: $vv-text;
6
7
 
7
8
  @include spread-map-into-bem(
8
9
  $map: $component-map,
9
10
  $block: $component-name,
10
- $props: $use-custom-props-for-components,
11
+ $use-custom-props: $use-custom-props-for-components,
11
12
  $zero-specificity: $zero-specificity-for-components,
12
13
  $bps: $breakpoints
13
14
  );
15
+
16
+ }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:list';
3
3
  @use '../context' as *;
4
4
 
5
+ @include layer(components, $use-css-layers, $layer-prefix) {
5
6
  $component-name: map.get($components-names, vv-textarea);
6
7
  $component-map: $vv-textarea;
7
8
  $component-selector: '.#{ $component-name}';
@@ -9,7 +10,7 @@ $component-selector: '.#{ $component-name}';
9
10
  @include spread-map-into-bem(
10
11
  $map: $component-map,
11
12
  $block: $component-name,
12
- $props: $use-custom-props-for-components,
13
+ $use-custom-props: $use-custom-props-for-components,
13
14
  $zero-specificity: $zero-specificity-for-components,
14
15
  $bps: $breakpoints
15
16
  );
@@ -96,3 +97,5 @@ $component-selector: '.#{ $component-name}';
96
97
  }
97
98
  }
98
99
  }
100
+
101
+ }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(components, $use-css-layers, $layer-prefix) {
4
5
  $component-name: map.get($components-names, vv-tooltip);
5
6
  $component-map: $vv-tooltip;
6
7
  $component-selector: '.#{ $component-name}';
@@ -8,7 +9,7 @@ $component-selector: '.#{ $component-name}';
8
9
  @include spread-map-into-bem(
9
10
  $map: $component-map,
10
11
  $block: $component-name,
11
- $props: $use-custom-props-for-components,
12
+ $use-custom-props: $use-custom-props-for-components,
12
13
  $zero-specificity: $zero-specificity-for-components,
13
14
  $bps: $breakpoints
14
15
  );
@@ -21,13 +22,10 @@ $component-selector: '.#{ $component-name}';
21
22
  }
22
23
 
23
24
  @include wrap-with-where(
24
- $selector: '*:has(> #{$component-selector})',
25
+ $selector: '*:has(> #{$component-selector}):hover > #{$component-selector}, *:has(> #{$component-selector}):focus-visible > #{$component-selector}, *:has(> #{$component-selector}).hover > #{$component-selector}, *:has(> #{$component-selector}).focus-visible > #{$component-selector}',
25
26
  $enabled: $zero-specificity-for-components
26
27
  ) {
27
- &:hover,
28
- &:focus-visible,
29
- &.hover,
30
- &.focus-visible {
31
- @extend %vv-tooltip--visible !optional;
32
- }
28
+ @extend %vv-tooltip--visible !optional;
29
+ }
30
+
33
31
  }
package/src/export.scss CHANGED
@@ -541,7 +541,6 @@
541
541
  // translate
542
542
  @each $key, $value in $translate {
543
543
  $name: meta.inspect($key);
544
- $name: str-replace($name, '\\/', '/');
545
544
 
546
545
  #{'translate__' + $name}: $value;
547
546
  }
@@ -1,6 +1,8 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($background-image, $prefix: bg);
5
- @include spread-map-into-props($gradient, $prefix: gradient);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($background-image, $prefix: bg);
6
+ @include spread-map-into-props($gradient, $prefix: gradient);
7
+ }
6
8
  }
@@ -1,6 +1,8 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($border-radius, $prefix: rounded);
5
- @include spread-map-into-props($border-width, $prefix: border);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($border-radius, $prefix: rounded);
6
+ @include spread-map-into-props($border-width, $prefix: border);
7
+ }
6
8
  }
@@ -1,16 +1,18 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
- :where(:host, :root, .theme) {
5
- @include spread-map-into-props(
6
- $map: map.remove($breakpoints, 'xxs'),
7
- $prefix: breakpoint
8
- );
4
+ @include layer(props, $use-css-layers, $layer-prefix) {
5
+ :where(:host, :root, .theme) {
6
+ @include spread-map-into-props(
7
+ $map: map.remove($breakpoints, 'xxs'),
8
+ $prefix: breakpoint
9
+ );
9
10
 
10
- @each $breakpoint, $breakpoint-value in $breakpoints {
11
- @media screen and (min-width: $breakpoint-value) {
12
- --breakpoint-key: #{$breakpoint};
13
- --breakpoint-value: #{$breakpoint-value};
11
+ @each $breakpoint, $breakpoint-value in $breakpoints {
12
+ @media screen and (min-width: $breakpoint-value) {
13
+ --breakpoint-key: #{$breakpoint};
14
+ --breakpoint-value: #{$breakpoint-value};
15
+ }
14
16
  }
15
17
  }
16
18
  }
@@ -1,5 +1,7 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($colors, $prefix: color);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($colors, $prefix: color);
6
+ }
5
7
  }
@@ -1,6 +1,8 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($box-shadow, $prefix: shadow);
5
- @include spread-map-into-props($opacity, $prefix: opacity);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($box-shadow, $prefix: shadow);
6
+ @include spread-map-into-props($opacity, $prefix: opacity);
7
+ }
6
8
  }
@@ -1,7 +1,9 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($blur, $prefix: blur);
5
- @include spread-map-into-props($brightness, $prefix: brightness);
6
- @include spread-map-into-props($saturation, $prefix: saturate);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($blur, $prefix: blur);
6
+ @include spread-map-into-props($brightness, $prefix: brightness);
7
+ @include spread-map-into-props($saturation, $prefix: saturate);
8
+ }
7
9
  }
@@ -1,5 +1,7 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($map: $input, $prefix: input);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($map: $input, $prefix: input);
6
+ }
5
7
  }
@@ -1,6 +1,8 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($map: $aspect-ratio, $prefix: aspect);
5
- @include spread-map-into-props($map: $z-index, $prefix: z);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($map: $aspect-ratio, $prefix: aspect);
6
+ @include spread-map-into-props($map: $z-index, $prefix: z);
7
+ }
6
8
  }
@@ -1,6 +1,8 @@
1
1
  @use '../context' as *;
2
2
 
3
- :where(:host, :root, .theme) {
4
- @include spread-map-into-props($width, $prefix: w);
5
- @include spread-map-into-props($height, $prefix: h);
3
+ @include layer(props, $use-css-layers, $layer-prefix) {
4
+ :where(:host, :root, .theme) {
5
+ @include spread-map-into-props($width, $prefix: w);
6
+ @include spread-map-into-props($height, $prefix: h);
7
+ }
6
8
  }
@@ -1,25 +1,27 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
- :where(:host, :root, .theme) {
5
- // static
6
- @each $size, $value in $spacing {
7
- --spacing-#{$size}: #{$value};
8
- }
4
+ @include layer(props, $use-css-layers, $layer-prefix) {
5
+ :where(:host, :root, .theme) {
6
+ // static
7
+ @each $size, $value in $spacing {
8
+ --spacing-#{$size}: #{$value};
9
+ }
9
10
 
10
- // dynamic
11
- @each $name, $sizes in $spacing-dynamic {
12
- @each $breakpoint, $size in $sizes {
13
- @if map.has-key($breakpoints, $breakpoint) {
14
- @include media-breakpoint-up($breakpoint, $breakpoints) {
15
- $var: $size;
11
+ // dynamic
12
+ @each $name, $sizes in $spacing-dynamic {
13
+ @each $breakpoint, $size in $sizes {
14
+ @if map.has-key($breakpoints, $breakpoint) {
15
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
16
+ $var: $size;
16
17
 
17
- // if is a static spacing
18
- @if map.has-key($spacing, $size) {
19
- $var: var(--spacing-#{$size});
20
- }
18
+ // if is a static spacing
19
+ @if map.has-key($spacing, $size) {
20
+ $var: var(--spacing-#{$size});
21
+ }
21
22
 
22
- --spacing-#{$name}: #{$var};
23
+ --spacing-#{$name}: #{$var};
24
+ }
23
25
  }
24
26
  }
25
27
  }
@@ -1,167 +1,199 @@
1
1
  @use '../context' as *;
2
2
  @use 'sass:string';
3
3
 
4
- :where(:host, :root, .theme) {
5
- // animation
6
- @media (prefers-reduced-motion: no-preference) {
7
- // transition-property
8
- @include spread-map-into-props(
9
- $transition-property,
10
- $prefix: transition-property
11
- );
12
-
13
- // duration
14
- @include spread-map-into-props(
15
- $transition-duration-delay,
16
- $prefix: duration
17
- );
4
+ @include layer(props, $use-css-layers, $layer-prefix) {
5
+ :where(:host, :root, .theme) {
6
+ // Default values for reduced-motion users
7
+ // These ensure variables are always defined but with no animation
8
+
9
+ // duration - set all to 0s for reduced motion
10
+ @each $key, $value in $transition-duration-delay {
11
+ --duration-#{$key}: 0s;
12
+ }
18
13
 
19
- // ease
14
+ // ease - keep timing functions but they won't matter with 0s duration
20
15
  @include spread-map-into-props(
21
16
  $transition-timing-function,
22
17
  $prefix: ease
23
18
  );
24
19
 
25
- // animation
26
- @include spread-map-into-props($animation, animation);
20
+ // transition-property - define properties but transitions will be none
21
+ @include spread-map-into-props(
22
+ $transition-property,
23
+ $prefix: transition-property
24
+ );
27
25
 
28
- // transition
26
+ // transition - set all to none for reduced motion
29
27
  @each $property, $value in $transition-property {
30
- @if $property != 'none' {
31
- $transition: '';
32
-
33
- @each $prop in str-split($value, ', ') {
34
- $transition: $transition +
35
- $prop +
36
- ' var(--duration-300) var(--ease-in-out), ';
37
- }
28
+ --transition-#{$property}: none;
29
+ }
38
30
 
39
- $transition: string.slice($transition, 1, -3);
31
+ // animation - set all to none for reduced motion
32
+ @each $key, $value in $animation {
33
+ --animation-#{$key}: none;
34
+ }
40
35
 
41
- --transition-#{$property}: #{$transition};
42
- } @else {
43
- --transition-#{$property}: none;
36
+ // animation
37
+ @media (prefers-reduced-motion: no-preference) {
38
+ // transition-property
39
+ @include spread-map-into-props(
40
+ $transition-property,
41
+ $prefix: transition-property
42
+ );
43
+
44
+ // duration
45
+ @include spread-map-into-props(
46
+ $transition-duration-delay,
47
+ $prefix: duration
48
+ );
49
+
50
+ // ease
51
+ @include spread-map-into-props(
52
+ $transition-timing-function,
53
+ $prefix: ease
54
+ );
55
+
56
+ // animation
57
+ @include spread-map-into-props($animation, animation);
58
+
59
+ // transition
60
+ @each $property, $value in $transition-property {
61
+ @if $property != 'none' {
62
+ $transition: '';
63
+
64
+ @each $prop in str-split($value, ', ') {
65
+ $transition: $transition +
66
+ $prop +
67
+ ' var(--duration-300) var(--ease-in-out), ';
68
+ }
69
+
70
+ $transition: string.slice($transition, 1, -3);
71
+
72
+ --transition-#{$property}: #{$transition};
73
+ } @else {
74
+ --transition-#{$property}: none;
75
+ }
44
76
  }
45
77
  }
46
78
  }
47
- }
48
79
 
49
- // keyframes
50
- @keyframes indeterminate {
51
- 0% {
52
- scale: 0 1;
53
- }
80
+ // keyframes
81
+ @keyframes indeterminate {
82
+ 0% {
83
+ scale: 0 1;
84
+ }
54
85
 
55
- 50% {
56
- scale: 1;
57
- transform-origin: left;
58
- }
86
+ 50% {
87
+ scale: 1;
88
+ transform-origin: left;
89
+ }
59
90
 
60
- 51% {
61
- scale: 1;
62
- transform-origin: center right;
63
- }
91
+ 51% {
92
+ scale: 1;
93
+ transform-origin: center right;
94
+ }
64
95
 
65
- 100% {
66
- scale: 0 1;
67
- transform-origin: center right;
96
+ 100% {
97
+ scale: 0 1;
98
+ transform-origin: center right;
99
+ }
68
100
  }
69
- }
70
101
 
71
- @keyframes spin {
72
- from {
73
- rotate: 0deg;
74
- }
102
+ @keyframes spin {
103
+ from {
104
+ rotate: 0deg;
105
+ }
75
106
 
76
- to {
77
- rotate: 360deg;
107
+ to {
108
+ rotate: 360deg;
109
+ }
78
110
  }
79
- }
80
111
 
81
- @keyframes ping {
82
- 75%,
83
- 100% {
84
- scale: 2;
85
- opacity: 0;
112
+ @keyframes ping {
113
+ 75%,
114
+ 100% {
115
+ scale: 2;
116
+ opacity: 0;
117
+ }
86
118
  }
87
- }
88
119
 
89
- @keyframes pulse {
90
- 0%,
91
- 100% {
92
- opacity: 1;
93
- }
120
+ @keyframes pulse {
121
+ 0%,
122
+ 100% {
123
+ opacity: 1;
124
+ }
94
125
 
95
- 50% {
96
- opacity: 0.5;
126
+ 50% {
127
+ opacity: 0.5;
128
+ }
97
129
  }
98
- }
99
130
 
100
- @keyframes bounce {
101
- 0%,
102
- 100% {
103
- translate: 0 -25%;
104
- animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
105
- }
131
+ @keyframes bounce {
132
+ 0%,
133
+ 100% {
134
+ translate: 0 -25%;
135
+ animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
136
+ }
106
137
 
107
- 50% {
108
- translate: 0;
109
- animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
138
+ 50% {
139
+ translate: 0;
140
+ animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
141
+ }
110
142
  }
111
- }
112
143
 
113
- @keyframes progress-indeterminate {
114
- 0% {
115
- background-position: 200% 0;
116
- }
144
+ @keyframes progress-indeterminate {
145
+ 0% {
146
+ background-position: 200% 0;
147
+ }
117
148
 
118
- 100% {
119
- background-position: -200% 0;
149
+ 100% {
150
+ background-position: -200% 0;
151
+ }
120
152
  }
121
- }
122
153
 
123
- @keyframes pie-masks {
124
- 0% {
125
- opacity: 1;
126
- }
154
+ @keyframes pie-masks {
155
+ 0% {
156
+ opacity: 1;
157
+ }
127
158
 
128
- 50%,
129
- 100% {
130
- opacity: 0;
159
+ 50%,
160
+ 100% {
161
+ opacity: 0;
162
+ }
131
163
  }
132
- }
133
164
 
134
- @keyframes fade-out {
135
- 95% {
136
- opacity: 1;
137
- }
165
+ @keyframes fade-out {
166
+ 95% {
167
+ opacity: 1;
168
+ }
138
169
 
139
- 100% {
140
- opacity: 0;
170
+ 100% {
171
+ opacity: 0;
172
+ }
141
173
  }
142
- }
143
174
 
144
- @keyframes shine {
145
- to {
146
- background-position-x: -200%;
175
+ @keyframes shine {
176
+ to {
177
+ background-position-x: -200%;
178
+ }
147
179
  }
148
- }
149
180
 
150
- @keyframes clippath {
151
- 0%,
152
- 100% {
153
- clip-path: inset(0 0 95% 0);
154
- }
181
+ @keyframes clippath {
182
+ 0%,
183
+ 100% {
184
+ clip-path: inset(0 0 95% 0);
185
+ }
155
186
 
156
- 25% {
157
- clip-path: inset(0 95% 0 0);
158
- }
187
+ 25% {
188
+ clip-path: inset(0 95% 0 0);
189
+ }
159
190
 
160
- 50% {
161
- clip-path: inset(95% 0 0 0);
162
- }
191
+ 50% {
192
+ clip-path: inset(95% 0 0 0);
193
+ }
163
194
 
164
- 75% {
165
- clip-path: inset(0 0 0 95%);
195
+ 75% {
196
+ clip-path: inset(0 0 0 95%);
197
+ }
166
198
  }
167
199
  }
@@ -1,37 +1,39 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
- :where(:host, :root, .theme) {
5
- // font-family
6
- @include spread-map-into-props($font-family, $prefix: font);
4
+ @include layer(props, $use-css-layers, $layer-prefix) {
5
+ :where(:host, :root, .theme) {
6
+ // font-family
7
+ @include spread-map-into-props($font-family, $prefix: font);
7
8
 
8
- // font-weight
9
- @include spread-map-into-props($font-weight, $prefix: font);
9
+ // font-weight
10
+ @include spread-map-into-props($font-weight, $prefix: font);
10
11
 
11
- // line-height
12
- @include spread-map-into-props($line-height, $prefix: leading);
12
+ // line-height
13
+ @include spread-map-into-props($line-height, $prefix: leading);
13
14
 
14
- // letter-spacing
15
- @include spread-map-into-props($letter-spacing, $prefix: tracking);
15
+ // letter-spacing
16
+ @include spread-map-into-props($letter-spacing, $prefix: tracking);
16
17
 
17
- // font-size
18
- @each $size, $value in $font-size {
19
- --text-#{$size}: #{$value};
20
- }
18
+ // font-size
19
+ @each $size, $value in $font-size {
20
+ --text-#{$size}: #{$value};
21
+ }
21
22
 
22
- // font-size dynamic
23
- @each $name, $sizes in $font-size-dynamic {
24
- @each $breakpoint, $size in $sizes {
25
- @if map.has-key($breakpoints, $breakpoint) {
26
- @include media-breakpoint-up($breakpoint, $breakpoints) {
27
- $var: $size;
23
+ // font-size dynamic
24
+ @each $name, $sizes in $font-size-dynamic {
25
+ @each $breakpoint, $size in $sizes {
26
+ @if map.has-key($breakpoints, $breakpoint) {
27
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
28
+ $var: $size;
28
29
 
29
- // if is a static font-size
30
- @if map.has-key($font-size, $size) {
31
- $var: var(--text-#{$size});
32
- }
30
+ // if is a static font-size
31
+ @if map.has-key($font-size, $size) {
32
+ $var: var(--text-#{$size});
33
+ }
33
34
 
34
- --text-#{$name}: #{$var};
35
+ --text-#{$name}: #{$var};
36
+ }
35
37
  }
36
38
  }
37
39
  }
package/src/reset.scss CHANGED
@@ -1,3 +1,6 @@
1
+ @use 'context' as *;
2
+
3
+ @include layer(reset, $use-css-layers, $layer-prefix) {
1
4
  /*
2
5
  Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
3
6
  - The "symbol *" part is to solve Firefox SVG sprite bug
@@ -95,3 +98,4 @@
95
98
  scrollbar-color: initial;
96
99
  font-family: initial;
97
100
  }
101
+ }