@maggioli-design-system/styles 15.11.0 → 16.0.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.
Files changed (45) hide show
  1. package/README.md +58 -7
  2. package/dist/css/animations.css +3 -1
  3. package/dist/css/base.css +109 -67
  4. package/dist/css/colors-hex-brand-rnd.css +39 -37
  5. package/dist/css/colors-hex-brand.css +72 -70
  6. package/dist/css/colors-hex-default.css +732 -664
  7. package/dist/css/colors-hex-label.css +402 -334
  8. package/dist/css/colors-hex-status.css +138 -136
  9. package/dist/css/colors-hex-tones.css +171 -169
  10. package/dist/css/colors-hex.css +897 -2230
  11. package/dist/css/colors-rgb-brand-rnd.css +34 -32
  12. package/dist/css/colors-rgb-brand.css +65 -63
  13. package/dist/css/colors-rgb-default.css +692 -624
  14. package/dist/css/colors-rgb-label.css +399 -331
  15. package/dist/css/colors-rgb-status.css +124 -122
  16. package/dist/css/colors-rgb-tones.css +166 -164
  17. package/dist/css/colors-rgb.css +852 -2185
  18. package/dist/css/globals.css +222 -7
  19. package/dist/css/hydrated.css +7 -0
  20. package/dist/css/layer.css +1 -0
  21. package/dist/css/reset.css +123 -115
  22. package/dist/css/tailwind-theme-color.css +306 -0
  23. package/dist/css/tailwind-theme-typography.css +251 -0
  24. package/dist/css/transitions.css +45 -0
  25. package/dist/css/typography.css +218 -129
  26. package/dist/tailwind/base.css +88 -41
  27. package/dist/tailwind/reset.css +116 -99
  28. package/dist/tailwind/theme.css +5 -0
  29. package/dist/tailwind/typography.css +137 -157
  30. package/dist/tailwind/utilities.css +97 -0
  31. package/dist/tailwind3/base.css +51 -0
  32. package/dist/{tailwind → tailwind3}/components.css +5 -4
  33. package/dist/tailwind3/reset.css +114 -0
  34. package/dist/tailwind3/typography.css +140 -0
  35. package/package.json +22 -13
  36. package/postcss.config.js +2 -7
  37. package/tailwind.config.js +11 -10
  38. package/dist/css/colors-hex-brand-apk.css +0 -281
  39. package/dist/css/colors-hex-brand-mindy.css +0 -50
  40. package/dist/css/colors-hex-brand-synbee.css +0 -83
  41. package/dist/css/colors-hex-synbee-v1.css +0 -1025
  42. package/dist/css/colors-rgb-brand-apk.css +0 -281
  43. package/dist/css/colors-rgb-brand-mindy.css +0 -50
  44. package/dist/css/colors-rgb-brand-synbee.css +0 -83
  45. package/dist/css/colors-rgb-synbee-v1.css +0 -1025
@@ -1,115 +1,132 @@
1
- html {
2
- color-scheme: dark light;
3
- hanging-punctuation: first last;
4
- interpolate-size: allow-keywords;
5
- transition-duration: theme('transitionDuration.200');
6
- transition-timing-function: theme('transitionTimingFunction.out');
7
- }
1
+ @reference "tailwindcss";
2
+ @reference "@maggioli-design-system/design-tokens/dist/css/tailwind-theme-typography.css";
8
3
 
9
- *,
10
- *::before,
11
- *::after {
12
- box-sizing: border-box;
13
- overflow-wrap: anywhere;
14
- }
4
+ @layer reset {
5
+ :root {
6
+ @media (prefers-reduced-motion: no-preference) {
7
+ interpolate-size: allow-keywords;
8
+ }
9
+ }
15
10
 
16
- body,
17
- html {
18
- margin: 0;
19
- }
11
+ html {
12
+ @apply ease-out;
20
13
 
21
- body {
22
- -moz-osx-font-smoothing: grayscale;
23
- -webkit-font-smoothing: antialiased;
24
- min-height: 100svh;
25
- -webkit-tap-highlight-color: transparent;
26
- text-rendering: optimizelegibility;
27
- text-size-adjust: 100%;
28
- }
14
+ hanging-punctuation: first last;
15
+ interpolate-size: allow-keywords;
16
+ scrollbar-gutter: stable;
17
+ transition-duration: 200ms;
18
+ }
29
19
 
30
- input,
31
- textarea {
32
- appearance: none;
33
- font-family: inherit;
34
- }
20
+ *,
21
+ *::before,
22
+ *::after {
23
+ box-sizing: border-box;
24
+ overflow-wrap: anywhere;
25
+ }
35
26
 
36
- a {
37
- font-family: inherit;
38
- font-size: inherit;
39
- font-weight: inherit;
40
- }
27
+ body,
28
+ html {
29
+ margin: 0;
30
+ }
41
31
 
42
- a,
43
- aside,
44
- body,
45
- code,
46
- div,
47
- datalist,
48
- footer,
49
- form,
50
- h1,
51
- h2,
52
- h3,
53
- h4,
54
- h5,
55
- h6,
56
- header,
57
- hr,
58
- html,
59
- input,
60
- li,
61
- main,
62
- section,
63
- span,
64
- ul,
65
- textarea {
66
- box-sizing: border-box;
67
- }
32
+ body {
33
+ -moz-osx-font-smoothing: grayscale;
34
+ -webkit-font-smoothing: antialiased;
68
35
 
69
- h1,
70
- h2,
71
- h3,
72
- h4,
73
- h5,
74
- h6 {
75
- margin: 0;
76
- max-width: theme('spacing.title');
77
- text-wrap: balance;
78
- }
36
+ /* min-block-size: 100svh; */
37
+ min-height: 100svh;
38
+ -webkit-tap-highlight-color: transparent;
39
+ text-rendering: optimizelegibility;
40
+ text-size-adjust: 100%;
41
+ }
79
42
 
80
- p {
81
- margin: 0;
82
- max-width: theme('spacing.text');
83
- text-wrap: pretty;
84
- }
43
+ input,
44
+ textarea {
45
+ appearance: none;
46
+ font-family: inherit;
47
+ }
85
48
 
86
- li,
87
- figcaption {
88
- max-width: theme('spacing.text');
89
- text-wrap: pretty;
90
- }
49
+ a {
50
+ font-family: inherit;
51
+ font-size: inherit;
52
+ font-weight: inherit;
53
+ }
91
54
 
92
- header,
93
- footer,
94
- section,
95
- article {
96
- container-type: inline-size;
97
- }
55
+ a,
56
+ aside,
57
+ body,
58
+ code,
59
+ div,
60
+ datalist,
61
+ footer,
62
+ form,
63
+ h1,
64
+ h2,
65
+ h3,
66
+ h4,
67
+ h5,
68
+ h6,
69
+ header,
70
+ hr,
71
+ html,
72
+ input,
73
+ li,
74
+ main,
75
+ section,
76
+ span,
77
+ ul,
78
+ textarea {
79
+ box-sizing: border-box;
80
+ }
98
81
 
99
- img,
100
- picture,
101
- svg,
102
- video {
103
- display: block;
104
- max-width: 100%;
105
- }
82
+ h1,
83
+ h2,
84
+ h3,
85
+ h4,
86
+ h5,
87
+ h6 {
88
+ @apply max-w-title;
106
89
 
107
- @media (prefers-reduced-motion: no-preference) {
108
- html {
109
- scroll-behavior: smooth;
90
+ margin: 0;
91
+ text-wrap: balance;
92
+ }
93
+
94
+ p {
95
+ @apply max-w-text;
96
+
97
+ margin: 0;
98
+ text-wrap: pretty;
110
99
  }
111
100
 
112
- :has(:target) {
113
- scroll-behavior: smooth;
101
+ li,
102
+ figcaption {
103
+ @apply max-w-text;
104
+
105
+ text-wrap: pretty;
106
+ }
107
+
108
+ header,
109
+ footer,
110
+ section,
111
+ article {
112
+ container-type: inline-size;
113
+ }
114
+
115
+ img,
116
+ picture,
117
+ svg,
118
+ video {
119
+ display: block;
120
+ max-width: 100%;
121
+ }
122
+
123
+ @media (prefers-reduced-motion: no-preference) {
124
+ html {
125
+ scroll-behavior: smooth;
126
+ }
127
+
128
+ :has(:target) {
129
+ scroll-behavior: smooth;
130
+ }
114
131
  }
115
132
  }
@@ -0,0 +1,5 @@
1
+ /* @import "tailwindcss"; */
2
+
3
+ /* @import "./dark-mode.css"; */
4
+ @import '@maggioli-design-system/design-tokens/dist/css/tailwind-theme-color.css' layer(theme);
5
+ @import '@maggioli-design-system/design-tokens/dist/css/tailwind-theme-typography.css';
@@ -1,158 +1,138 @@
1
- @layer components {
2
- .text-title-h1 {
3
- @apply
4
- antialiased
5
- font-black
6
- font-title
7
- min-h-1200
8
- text-size-title-h1;
9
- }
10
-
11
- .text-title-h2 {
12
- @apply
13
- antialiased
14
- font-black
15
- font-title
16
- min-h-1000
17
- text-size-title-h2;
18
- }
19
-
20
- .text-title-h3 {
21
- @apply
22
- antialiased
23
- font-black
24
- font-title
25
- min-h-900
26
- text-size-title-h3;
27
- }
28
-
29
- .text-title-h4 {
30
- @apply
31
- antialiased
32
- font-bold
33
- font-title
34
- min-h-800
35
- text-size-title-h4;
36
- }
37
-
38
- .text-title-h5 {
39
- @apply
40
- antialiased
41
- font-bold
42
- font-title
43
- min-h-700
44
- text-size-title-h5;
45
- }
46
-
47
- .text-title-h6 {
48
- @apply
49
- antialiased
50
- font-bold
51
- font-title
52
- min-h-600
53
- text-size-title-h6;
54
- }
55
-
56
- .text-title-action {
57
- @apply
58
- antialiased
59
- font-medium
60
- font-title
61
- min-h-600
62
- text-size-title-action;
63
- }
64
-
65
- .text-info-paragraph {
66
- @apply
67
- antialiased
68
- font-info
69
- min-h-800
70
- text-size-info-paragraph;
71
- }
72
-
73
- .text-info-detail {
74
- @apply
75
- antialiased
76
- font-info
77
- min-h-600
78
- text-size-info-detail;
79
- }
80
-
81
- .text-info-caption {
82
- @apply
83
- antialiased
84
- font-info
85
- min-h-500
86
- text-size-info-caption;
87
- }
88
-
89
- .text-info-label {
90
- @apply
91
- antialiased
92
- font-bold
93
- font-info
94
- min-h-400
95
- text-size-info-label
96
- uppercase;
97
- }
98
-
99
- .text-info-option {
100
- @apply
101
- antialiased
102
- font-bold
103
- font-info
104
- min-h-250
105
- text-size-info-option
106
- uppercase;
107
- }
108
-
109
- .text-info-tip {
110
- @apply
111
- antialiased
112
- font-info
113
- min-h-400
114
- text-size-info-tip;
115
- }
116
-
117
- .text-read-paragraph {
118
- @apply
119
- antialiased
120
- font-light
121
- font-read
122
- min-h-800
123
- text-size-read-paragraph;
124
- }
125
-
126
- .text-read-detail {
127
- @apply
128
- antialiased
129
- font-light
130
- font-read
131
- min-h-600
132
- text-size-read-detail;
133
- }
134
-
135
- .text-read-caption {
136
- @apply
137
- antialiased
138
- font-read
139
- min-h-500
140
- text-size-read-caption;
141
- }
142
-
143
- .text-code-snippet {
144
- @apply
145
- antialiased
146
- font-code
147
- min-h-600
148
- text-size-code-snippet;
149
- }
150
-
151
- .text-code-hack {
152
- @apply
153
- antialiased
154
- font-code
155
- min-h-500
156
- text-size-code-hack;
157
- }
1
+ @utility text-title-h1 {
2
+ @apply antialiased
3
+ font-black
4
+ font-title
5
+ text-box-vertical-margin
6
+ text-size-title-h1;
7
+ }
8
+
9
+ @utility text-title-h2 {
10
+ @apply antialiased
11
+ font-black
12
+ font-title
13
+ text-box-vertical-margin
14
+ text-size-title-h2;
15
+ }
16
+
17
+ @utility text-title-h3 {
18
+ @apply antialiased
19
+ font-black
20
+ font-title
21
+ text-box-vertical-margin
22
+ text-size-title-h3;
23
+ }
24
+
25
+ @utility text-title-h4 {
26
+ @apply antialiased
27
+ font-black
28
+ font-title
29
+ text-box-vertical-margin
30
+ text-size-title-h4;
31
+ }
32
+
33
+ @utility text-title-h5 {
34
+ @apply antialiased
35
+ font-black
36
+ font-title
37
+ text-box-vertical-margin
38
+ text-size-title-h5;
39
+ }
40
+
41
+ @utility text-title-h6 {
42
+ @apply antialiased
43
+ font-bold
44
+ font-title
45
+ text-box-vertical-margin
46
+ text-size-title-h6;
47
+ }
48
+
49
+ @utility text-title-action {
50
+ @apply antialiased
51
+ font-medium
52
+ font-title
53
+ text-box-vertical-margin
54
+ text-size-title-action;
55
+ }
56
+
57
+ @utility text-info-paragraph {
58
+ @apply antialiased
59
+ font-info
60
+ text-box-vertical-margin
61
+ text-size-info-paragraph;
62
+ }
63
+
64
+ @utility text-info-detail {
65
+ @apply antialiased
66
+ font-info
67
+ text-box-vertical-margin
68
+ text-size-info-detail;
69
+ }
70
+
71
+ @utility text-info-caption {
72
+ @apply antialiased
73
+ font-info
74
+ text-box-vertical-margin
75
+ text-size-info-caption;
76
+ }
77
+
78
+ @utility text-info-label {
79
+ @apply antialiased
80
+ font-bold
81
+ font-info
82
+ text-size-info-label
83
+ text-box-uppercase
84
+ uppercase;
85
+ }
86
+
87
+ @utility text-info-option {
88
+ @apply antialiased
89
+ font-bold
90
+ font-info
91
+ text-size-info-option
92
+ text-box-uppercase
93
+ uppercase;
94
+ }
95
+
96
+ @utility text-info-tip {
97
+ @apply antialiased
98
+ font-info
99
+ text-box-vertical-margin
100
+ text-size-info-tip;
101
+ }
102
+
103
+ @utility text-read-paragraph {
104
+ @apply antialiased
105
+ font-light
106
+ font-read
107
+ text-box-vertical-margin
108
+ text-size-read-paragraph;
109
+ }
110
+
111
+ @utility text-read-detail {
112
+ @apply antialiased
113
+ font-light
114
+ font-read
115
+ text-box-vertical-margin
116
+ text-size-read-detail;
117
+ }
118
+
119
+ @utility text-read-caption {
120
+ @apply antialiased
121
+ font-read
122
+ text-box-vertical-margin
123
+ text-size-read-caption;
124
+ }
125
+
126
+ @utility text-code-snippet {
127
+ @apply antialiased
128
+ font-code
129
+ text-box-vertical-margin
130
+ text-size-code-snippet;
131
+ }
132
+
133
+ @utility text-code-hack {
134
+ @apply antialiased
135
+ font-code
136
+ text-box-vertical-margin
137
+ text-size-code-hack;
158
138
  }
@@ -0,0 +1,97 @@
1
+ @utility focus-bounce {
2
+ animation-duration: var(--magma-outline-animation-duration, 1s);
3
+ animation-fill-mode: forwards;
4
+ animation-iteration-count: infinite;
5
+ animation-name: focus-bounce;
6
+ animation-play-state: paused;
7
+ animation-timing-function: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
8
+ outline: var(--magma-outline-blur, 2px solid var(--magma-outline-blur-color, rgb(0 0 0 / 0)));
9
+ transition-duration: 200ms;
10
+ transition-property:
11
+ background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
12
+ transition-timing-function: ease-in-out;
13
+ }
14
+
15
+ @utility focus-bounce--focused {
16
+ --magma-outline-blur: var(--magma-outline-focus);
17
+
18
+ animation-play-state: running;
19
+ }
20
+
21
+ @utility text-box-uppercase {
22
+ min-height: auto;
23
+ text-box: trim-both cap alphabetic;
24
+ }
25
+
26
+ @utility text-box-vertical-margin {
27
+ min-height: auto;
28
+ text-box: trim-both text;
29
+ }
30
+
31
+ @utility text-box-vertical-align {
32
+ min-height: auto;
33
+ text-box: trim-both cap alphabetic;
34
+ }
35
+
36
+ @utility hide-scrollbar {
37
+ -webkit-overflow-scrolling: touch;
38
+ -ms-overflow-style: none;
39
+ scrollbar-width: none;
40
+
41
+ &::-webkit-scrollbar {
42
+ display: none;
43
+ }
44
+ }
45
+
46
+ @utility focus-bounce {
47
+ &:focus-visible {
48
+ --magma-outline-blur: var(--magma-outline-focus);
49
+
50
+ animation-play-state: running;
51
+ }
52
+ }
53
+
54
+ @utility not-hydrated {
55
+ animation-duration: 0s;
56
+ opacity: 0;
57
+ transition-delay: 0.1s;
58
+ transition-duration: 0s;
59
+ visibility: hidden;
60
+ }
61
+
62
+ @layer utilities {
63
+ /* .focus-bounce:focus-visible {
64
+ --magma-outline-blur: var(--magma-outline-focus);
65
+
66
+ animation-play-state: running;
67
+ } */
68
+
69
+ .focus-zoom {
70
+ @apply duration-200
71
+ ease-out;
72
+
73
+ outline: var(--magma-outline-blur);
74
+ outline-offset: var(--magma-outline-blur-offset);
75
+ transition-property:
76
+ background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
77
+ }
78
+
79
+ .focus-zoom--focused,
80
+ .focus-zoom:focus-visible {
81
+ --magma-outline-blur-offset: var(--magma-outline-focus-offset);
82
+ --magma-outline-blur: var(--magma-outline-focus);
83
+ }
84
+
85
+ .focus-zoom--light.focus-zoom--focused,
86
+ .focus-zoom--light:focus-visible {
87
+ --magma-outline-blur: 2px solid rgb(var(--tone-neutral));
88
+ }
89
+
90
+ /* .not-hydrated {
91
+ animation-duration: 0s;
92
+ opacity: 0;
93
+ transition-delay: 0.1s;
94
+ transition-duration: 0s;
95
+ visibility: hidden;
96
+ } */
97
+ }
@@ -0,0 +1,51 @@
1
+ body {
2
+ @apply font-info
3
+ text-info-detail;
4
+
5
+ background-color: rgb(var(--tone-neutral, theme('colors.tone-neutral')));
6
+ color: rgb(var(--tone-neutral-03, theme('colors.tone-neutral-03')));
7
+ }
8
+
9
+ :root.pref-contrast-high body {
10
+ color: rgb(var(--tone-neutral-01, theme('colors.tone-neutral-01')));
11
+ }
12
+
13
+ @media (prefers-contrast: more) {
14
+ :root.pref-contrast-system body {
15
+ color: rgb(var(--tone-neutral-01, theme('colors.tone-neutral-01')));
16
+ }
17
+ }
18
+
19
+ ::selection {
20
+ background-color: var(--magma-selection-background, theme('colors.label-sky-09'));
21
+ color: var(--magma-selection-color, theme('colors.label-sky-01'));
22
+ }
23
+
24
+ button,
25
+ optgroup,
26
+ select {
27
+ @apply text-title-action;
28
+ }
29
+
30
+ b,
31
+ strong {
32
+ @apply font-semibold
33
+ tracking-tight;
34
+ }
35
+
36
+ a {
37
+ color: rgb(var(--theme-default-02-primary-text, theme('colors.theme-default-02-primary-text')));
38
+ }
39
+
40
+ h1,
41
+ h2,
42
+ h3,
43
+ h4,
44
+ h5,
45
+ h6 {
46
+ max-width: theme('spacing.title');
47
+ }
48
+
49
+ p {
50
+ max-width: theme('spacing.text');
51
+ }