@maggioli-design-system/styles 12.0.0 → 13.0.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.
@@ -0,0 +1,9 @@
1
+ @keyframes focus-bounce {
2
+ 0%, 75%, 100% {
3
+ outline-offset: var(--magma-outline-focus-offset);
4
+ }
5
+
6
+ 50% {
7
+ outline-offset: var(--magma-outline-blur-offset);
8
+ }
9
+ }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 23 Oct 2023 12:32:01 GMT
4
+ Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -9,10 +9,13 @@
9
9
  --magma-dropdown-z-index: 4000;
10
10
  --magma-header-z-index: 1000;
11
11
  --magma-modal-z-index: 2000;
12
+ --magma-outline-animation-duration: 1.5s;
12
13
  --magma-outline-blur-offset: 6px;
13
- --magma-outline-blur: 2px solid transparent;
14
+ --magma-outline-blur-color: transparent;
15
+ --magma-outline-blur: 2px solid var(--magma-outline-blur-color);
14
16
  --magma-outline-focus-offset: 2px;
15
- --magma-outline-focus: 2px solid rgb(var(--tone-neutral-05));
17
+ --magma-outline-focus-color: rgb(var(--tone-neutral-05));
18
+ --magma-outline-focus: 2px solid var(--magma-outline-focus-color);
16
19
  --magma-overlay-blur: var(--magma-backdrop-blur);
17
20
  --magma-overlay-color: var(--magma-backdrop-color);
18
21
  --magma-overlay-opacity: 0.5;
@@ -1,29 +1,46 @@
1
1
  @tailwind components;
2
2
 
3
3
  @layer components {
4
- .focus-off,
5
- .focusable,
6
- .focusable-light,
7
- .focusable-light-off {
4
+ .focus-bounce {
5
+ animation-duration: var(--magma-outline-animation-duration, 1s);
6
+ animation-fill-mode: forwards;
7
+ animation-iteration-count: infinite;
8
+ animation-name: focus-bounce;
9
+ animation-play-state: paused;
10
+ animation-timing-function: theme('transitionTimingFunction.out');
11
+ outline: var(--magma-outline-blur);
12
+ transition-duration: 200ms;
13
+ transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
14
+ transition-timing-function: ease-in-out;
15
+ }
16
+
17
+ .focus-bounce--focused,
18
+ .focus-bounce:focus-visible {
19
+
20
+ --magma-outline-blur: var(--magma-outline-focus);
21
+
22
+ animation-play-state: running;
23
+ }
24
+
25
+ .focus-zoom {
8
26
  @apply
9
27
  duration-200
10
28
  ease-out;
11
29
 
12
- outline-offset: var(--magma-outline-blur-offset);
13
30
  outline: var(--magma-outline-blur);
31
+ outline-offset: var(--magma-outline-blur-offset);
14
32
  transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
15
33
  }
16
34
 
17
- .focus-on,
18
- .focusable-light:focus-visible,
19
- .focusable:focus-visible {
35
+ .focus-zoom--focused,
36
+ .focus-zoom:focus-visible {
20
37
 
21
38
  --magma-outline-blur-offset: var(--magma-outline-focus-offset);
22
39
  --magma-outline-blur: var(--magma-outline-focus);
23
40
  }
24
41
 
25
- .focus-light-on,
26
- .focusable-light:focus-visible {
42
+ .focus-zoom--light.focus-zoom--focused,
43
+ .focus-zoom--light:focus-visible {
27
44
 
28
45
  --magma-outline-blur: 2px solid rgb(var(--tone-neutral));
29
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/styles",
3
- "version": "12.0.0",
3
+ "version": "13.0.1",
4
4
  "description": "This module contains SCSS and CSS styles used by Maggioli Design System, it also makes available a Tailwind config based on Maggioli design tokens.",
5
5
  "main": "./tailwind.config.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "files": [
16
16
  "/postcss.config.js",
17
17
  "/tailwind.config.js",
18
- "/dist/**/*"
18
+ "/dist/"
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
@@ -45,7 +45,7 @@
45
45
  "@fontsource/merriweather": "5.0.8",
46
46
  "@fontsource/roboto": "5.0.8",
47
47
  "@fontsource/roboto-mono": "5.0.14",
48
- "@maggioli-design-system/design-tokens": "11.0.0",
48
+ "@maggioli-design-system/design-tokens": "11.0.1",
49
49
  "normalize.css": "8.0.1"
50
50
  },
51
51
  "devDependencies": {
@@ -55,4 +55,4 @@
55
55
  "postcss-import": "15.1.0",
56
56
  "tailwindcss": "3.3.3"
57
57
  }
58
- }
58
+ }