@haiilo/catalyst 0.7.0 → 0.7.3

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 (99) hide show
  1. package/dist/catalyst/catalyst.css +2 -2
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/{p-4c9cd203.entry.js → p-4254363e.entry.js} +2 -2
  4. package/dist/catalyst/p-4254363e.entry.js.map +1 -0
  5. package/dist/catalyst/p-dda85567.entry.js +10 -0
  6. package/dist/catalyst/p-dda85567.entry.js.map +1 -0
  7. package/dist/catalyst/scss/_mixins.scss +9 -0
  8. package/dist/catalyst/scss/_variables.scss +64 -0
  9. package/dist/catalyst/scss/_variables.tokens.scss +84 -0
  10. package/dist/catalyst/scss/core/_base.scss +12 -0
  11. package/dist/catalyst/scss/core/_nav.scss +23 -0
  12. package/dist/catalyst/scss/core/_toast.scss +77 -0
  13. package/dist/catalyst/scss/core/_typography.scss +237 -0
  14. package/dist/catalyst/scss/fonts/_fonts.mixins.azeret.scss +14 -0
  15. package/dist/catalyst/scss/fonts/_fonts.mixins.dm.scss +53 -0
  16. package/dist/catalyst/scss/fonts/_fonts.mixins.lato.scss +185 -0
  17. package/dist/catalyst/scss/fonts/_fonts.mixins.scss +17 -0
  18. package/dist/catalyst/scss/index.scss +34 -0
  19. package/dist/catalyst/scss/utils/_color.scss +52 -0
  20. package/dist/catalyst/scss/utils/_disabled.mixins.scss +7 -0
  21. package/dist/catalyst/scss/utils/_display.scss +20 -0
  22. package/dist/catalyst/scss/utils/_elevation.mixins.scss +10 -0
  23. package/dist/catalyst/scss/utils/_elevation.scss +19 -0
  24. package/dist/catalyst/scss/utils/_layout.scss +78 -0
  25. package/dist/catalyst/scss/utils/_media.mixins.scss +37 -0
  26. package/dist/catalyst/scss/utils/_ratio.mixins.scss +12 -0
  27. package/dist/catalyst/scss/utils/_ratio.scss +20 -0
  28. package/dist/catalyst/scss/utils/_sizing.mixins.scss +15 -0
  29. package/dist/catalyst/scss/utils/_sizing.scss +16 -0
  30. package/dist/catalyst/scss/utils/_spacing.mixins.scss +5 -0
  31. package/dist/catalyst/scss/utils/_spacing.scss +49 -0
  32. package/dist/catalyst/scss/utils/_typography.mixins.scss +102 -0
  33. package/dist/catalyst/scss/utils/_typography.scss +34 -0
  34. package/dist/catalyst/scss/utils/_visibility.mixins.scss +29 -0
  35. package/dist/catalyst/scss/utils/_visibility.scss +13 -0
  36. package/dist/cjs/cat-alert_18.cjs.entry.js +9 -5
  37. package/dist/cjs/cat-alert_18.cjs.entry.js.map +1 -1
  38. package/dist/cjs/cat-textarea.cjs.entry.js +2 -1
  39. package/dist/cjs/cat-textarea.cjs.entry.js.map +1 -1
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js +2 -1
  41. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  42. package/dist/collection/components/cat-icon/cat-icon.css +4 -1
  43. package/dist/collection/components/cat-input/cat-input.js +2 -1
  44. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  45. package/dist/collection/components/cat-radio/cat-radio.js +2 -1
  46. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  47. package/dist/collection/components/cat-textarea/cat-textarea.js +2 -1
  48. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  49. package/dist/collection/components/cat-toggle/cat-toggle.js +2 -1
  50. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  51. package/dist/collection/scss/_mixins.scss +9 -0
  52. package/dist/collection/scss/_variables.scss +64 -0
  53. package/dist/collection/scss/_variables.tokens.scss +84 -0
  54. package/dist/collection/scss/core/_base.scss +12 -0
  55. package/dist/collection/scss/core/_nav.scss +23 -0
  56. package/dist/collection/scss/core/_toast.scss +77 -0
  57. package/dist/collection/scss/core/_typography.scss +237 -0
  58. package/dist/collection/scss/fonts/_fonts.mixins.azeret.scss +14 -0
  59. package/dist/collection/scss/fonts/_fonts.mixins.dm.scss +53 -0
  60. package/dist/collection/scss/fonts/_fonts.mixins.lato.scss +185 -0
  61. package/dist/collection/scss/fonts/_fonts.mixins.scss +17 -0
  62. package/dist/collection/scss/index.scss +34 -0
  63. package/dist/collection/scss/utils/_color.scss +52 -0
  64. package/dist/collection/scss/utils/_disabled.mixins.scss +7 -0
  65. package/dist/collection/scss/utils/_display.scss +20 -0
  66. package/dist/collection/scss/utils/_elevation.mixins.scss +10 -0
  67. package/dist/collection/scss/utils/_elevation.scss +19 -0
  68. package/dist/collection/scss/utils/_layout.scss +78 -0
  69. package/dist/collection/scss/utils/_media.mixins.scss +37 -0
  70. package/dist/collection/scss/utils/_ratio.mixins.scss +12 -0
  71. package/dist/collection/scss/utils/_ratio.scss +20 -0
  72. package/dist/collection/scss/utils/_sizing.mixins.scss +15 -0
  73. package/dist/collection/scss/utils/_sizing.scss +16 -0
  74. package/dist/collection/scss/utils/_spacing.mixins.scss +5 -0
  75. package/dist/collection/scss/utils/_spacing.scss +49 -0
  76. package/dist/collection/scss/utils/_typography.mixins.scss +102 -0
  77. package/dist/collection/scss/utils/_typography.scss +34 -0
  78. package/dist/collection/scss/utils/_visibility.mixins.scss +29 -0
  79. package/dist/collection/scss/utils/_visibility.scss +13 -0
  80. package/dist/components/cat-checkbox.js +2 -1
  81. package/dist/components/cat-checkbox.js.map +1 -1
  82. package/dist/components/cat-icon2.js +1 -1
  83. package/dist/components/cat-icon2.js.map +1 -1
  84. package/dist/components/cat-input.js +2 -1
  85. package/dist/components/cat-input.js.map +1 -1
  86. package/dist/components/cat-radio.js +2 -1
  87. package/dist/components/cat-radio.js.map +1 -1
  88. package/dist/components/cat-textarea.js +2 -1
  89. package/dist/components/cat-textarea.js.map +1 -1
  90. package/dist/components/cat-toggle.js +2 -1
  91. package/dist/components/cat-toggle.js.map +1 -1
  92. package/dist/esm/cat-alert_18.entry.js +9 -5
  93. package/dist/esm/cat-alert_18.entry.js.map +1 -1
  94. package/dist/esm/cat-textarea.entry.js +2 -1
  95. package/dist/esm/cat-textarea.entry.js.map +1 -1
  96. package/package.json +2 -2
  97. package/dist/catalyst/p-4c9cd203.entry.js.map +0 -1
  98. package/dist/catalyst/p-9d2eab4f.entry.js +0 -10
  99. package/dist/catalyst/p-9d2eab4f.entry.js.map +0 -1
@@ -0,0 +1,77 @@
1
+ @use '../variables' as *;
2
+ @use '../mixins' as *;
3
+
4
+ $-background-color: cat-token('color.base.neutral.0');
5
+ $-text-color: cat-token('color.base.neutral.900');
6
+ $-title-border: cat-token('color.base.neutral.300');
7
+ $-shadow: cat-token('color.ui.border.dark');
8
+ $-error-color: cat-token('color.theme.danger.text');
9
+ $-info-color: cat-token('color.theme.secondary.text');
10
+ $-success-color: cat-token('color.theme.success.text');
11
+
12
+ .cat-toastify {
13
+ background: $-background-color;
14
+ color: $-text-color;
15
+ padding: 0;
16
+ @include cat-elevation(1);
17
+
18
+ .toast-close {
19
+ float: right;
20
+ font-size: 20px;
21
+ margin-top: 0.5rem;
22
+ position: absolute;
23
+ top: 0;
24
+ right: 0;
25
+ z-index: 10;
26
+ }
27
+
28
+ .cat-toastify-wrapper {
29
+ display: block;
30
+ position: relative;
31
+
32
+ .cat-toastify-icon-wrapper {
33
+ position: absolute;
34
+ top: 6px;
35
+ left: 5px;
36
+
37
+ &.info {
38
+ color: $-info-color;
39
+ }
40
+
41
+ &.error {
42
+ color: $-error-color;
43
+ }
44
+
45
+ &.success {
46
+ color: $-success-color;
47
+ }
48
+ }
49
+
50
+ .cat-toastify-title-wrapper {
51
+ width: 100%;
52
+ padding: 0.5rem 0.5rem 0.5rem 2rem;
53
+
54
+ &.has-message {
55
+ border-bottom: 1px solid $-title-border;
56
+ }
57
+
58
+ .cat-toastify-title {
59
+ width: 100%;
60
+ padding-right: 25px;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ white-space: nowrap;
64
+ font-size: 15px;
65
+ line-height: 20px;
66
+ font-weight: 600;
67
+ color: $-text-color;
68
+ }
69
+ }
70
+
71
+ .cat-toastify-message {
72
+ width: 100%;
73
+ padding: 0.5rem;
74
+ color: $-text-color;
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,237 @@
1
+ @use '../variables' as *;
2
+ @use '../mixins' as *;
3
+
4
+ h1,
5
+ h2,
6
+ h3,
7
+ h4,
8
+ h5,
9
+ h6,
10
+ .cat-h1,
11
+ .cat-h2,
12
+ .cat-h3,
13
+ .cat-h4,
14
+ .cat-h5,
15
+ .cat-h6 {
16
+ margin-top: 0;
17
+ margin-bottom: $cat-head-margin-bottom;
18
+ font-weight: cat-token('font.weight.head');
19
+ }
20
+
21
+ // -- head styles
22
+ @each $key, $value in cat-token('size.font.head') {
23
+ h#{$key},
24
+ .cat-h#{$key} {
25
+ @include cat-head($key);
26
+ }
27
+ }
28
+
29
+ // -- body styles
30
+ @each $key, $value in cat-token('size.font.body') {
31
+ .cat-text-#{$key} {
32
+ @include cat-body($key);
33
+ }
34
+ }
35
+
36
+ // -- mono styles
37
+ @each $key, $value in cat-token('size.font.mono') {
38
+ .cat-mono-#{$key} {
39
+ @include cat-mono($key);
40
+ }
41
+ }
42
+
43
+ p {
44
+ margin-top: 0;
45
+ margin-bottom: $cat-body-margin-bottom;
46
+ }
47
+
48
+ hr,
49
+ .cat-hr {
50
+ display: block;
51
+ margin: $cat-body-margin-bottom 0;
52
+ border: 0;
53
+ height: 1px;
54
+ background-color: cat-token('color.ui.border.default');
55
+ overflow: hidden;
56
+ }
57
+
58
+ // ----- links
59
+
60
+ a {
61
+ color: cat-token('color.theme.primary.text');
62
+ text-decoration: $cat-link-text-decoration;
63
+ transition: color cat-token('time.transition.s') linear;
64
+
65
+ &:hover {
66
+ color: cat-token('color.theme.primary.textHover');
67
+ text-decoration: $cat-link-text-decoration-hover;
68
+ }
69
+
70
+ &:active {
71
+ color: cat-token('color.theme.primary.textActive');
72
+ }
73
+
74
+ &:focus-visible {
75
+ outline: 2px solid cat-token('color.ui.border.focus');
76
+ // outline-offset: -2px;
77
+ }
78
+ }
79
+
80
+ a[tabindex='-1']:focus {
81
+ outline: none;
82
+ }
83
+
84
+ // ----- emphasis
85
+
86
+ b,
87
+ strong,
88
+ .cat-strong {
89
+ font-weight: 600;
90
+ }
91
+
92
+ mark,
93
+ .cat-mark {
94
+ padding: 0.125rem 0.25rem;
95
+ background-color: $cat-mark-color;
96
+ }
97
+
98
+ small,
99
+ .cat-small {
100
+ font-size: 0.875em;
101
+ }
102
+
103
+ .cat-underline {
104
+ text-decoration: underline;
105
+ }
106
+
107
+ .cat-line-through {
108
+ text-decoration: line-through;
109
+ }
110
+
111
+ .cat-muted {
112
+ color: cat-token('color.ui.font.muted');
113
+ }
114
+
115
+ // ----- lists
116
+
117
+ ol,
118
+ ul {
119
+ padding-left: 2rem;
120
+ }
121
+
122
+ ol,
123
+ ul,
124
+ dl {
125
+ margin-top: 0;
126
+ margin-bottom: 1rem;
127
+
128
+ ol,
129
+ ul,
130
+ dl {
131
+ margin-bottom: 0;
132
+ }
133
+ }
134
+
135
+ nav {
136
+ ol,
137
+ ul {
138
+ list-style-type: none;
139
+ margin: 0;
140
+ padding: 0;
141
+ }
142
+ }
143
+
144
+ dt {
145
+ font-weight: 600;
146
+ }
147
+
148
+ dd {
149
+ margin-bottom: 0.5rem;
150
+ margin-left: 0;
151
+ }
152
+
153
+ // ----- lead
154
+
155
+ .cat-lead {
156
+ @include cat-body('xl', 300);
157
+ }
158
+
159
+ // ----- blockquotes & figures
160
+
161
+ blockquote {
162
+ margin: 0 0 $cat-body-margin-bottom;
163
+ font-style: italic;
164
+ @include cat-body('l');
165
+ color: cat-token('color.ui.font.quote');
166
+
167
+ > :last-child {
168
+ margin-bottom: 0;
169
+ }
170
+ }
171
+
172
+ figure {
173
+ margin: 0 0 $cat-body-margin-bottom;
174
+
175
+ figcaption {
176
+ margin-top: -$cat-body-margin-bottom * 0.5;
177
+ margin-bottom: 0;
178
+ @include cat-body('s');
179
+ color: cat-token('color.ui.font.muted');
180
+
181
+ &::before {
182
+ content: '\2014\00A0'; // em dash, nbsp
183
+ }
184
+ }
185
+ }
186
+
187
+ // ----- code
188
+
189
+ code,
190
+ samp,
191
+ kbd,
192
+ pre {
193
+ @include cat-mono('m');
194
+ font-weight: cat-token('font.weight.mono');
195
+ }
196
+
197
+ pre {
198
+ margin-top: 0;
199
+ margin-bottom: $cat-body-margin-bottom;
200
+ overflow: auto;
201
+
202
+ code {
203
+ margin: 0;
204
+ padding: 0;
205
+ color: inherit;
206
+ background: none;
207
+ box-shadow: none;
208
+ border-radius: 0;
209
+ word-wrap: normal;
210
+ word-break: normal;
211
+ }
212
+ }
213
+
214
+ kbd,
215
+ code {
216
+ margin: 0 0.125rem;
217
+ color: cat-token('color.ui.font.muted');
218
+ background: cat-token('color.ui.background.body');
219
+ box-shadow: 0 0 0 2px cat-token('color.ui.border.default');
220
+ border-radius: cat-border-radius('s');
221
+ }
222
+
223
+ kbd {
224
+ font-size: cat-mono-font-size('s');
225
+ display: inline-block;
226
+ min-width: 1.5rem;
227
+ line-height: cat-body-line-height('m');
228
+ padding: 0 0.375rem;
229
+ text-align: center;
230
+ vertical-align: top;
231
+ white-space: nowrap;
232
+ }
233
+
234
+ code {
235
+ @include cat-break-word;
236
+ padding: 0.0625rem 0.25rem;
237
+ }
@@ -0,0 +1,14 @@
1
+ @use 'sass:list';
2
+ @use '../variables' as *;
3
+
4
+ @mixin cat-font-azeret($path, $weights...) {
5
+ @if list.index($weights, 400) {
6
+ @font-face {
7
+ font-family: 'Azeret Mono';
8
+ src: url('#{$path}/#{cat-token("asset.font.azeretMono.woff2Regular")}') format('woff2');
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ @content;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,53 @@
1
+ @use 'sass:list';
2
+ @use '../variables' as *;
3
+
4
+ @mixin cat-font-dm-sans($path, $weights...) {
5
+ @if list.index($weights, 400) {
6
+ @font-face {
7
+ font-family: 'DM Sans';
8
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2Regular")}') format('woff2');
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ @content;
12
+ }
13
+ @font-face {
14
+ font-family: 'DM Sans';
15
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2Italic")}') format('woff2');
16
+ font-style: italic;
17
+ font-weight: 400;
18
+ @content;
19
+ }
20
+ }
21
+ @if list.index($weights, 500) {
22
+ @font-face {
23
+ font-family: 'DM Sans';
24
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2Medium")}') format('woff2');
25
+ font-style: normal;
26
+ font-weight: 500;
27
+ @content;
28
+ }
29
+ @font-face {
30
+ font-family: 'DM Sans';
31
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2MediumItalic")}') format('woff2');
32
+ font-style: italic;
33
+ font-weight: 500;
34
+ @content;
35
+ }
36
+ }
37
+ @if list.index($weights, 700) {
38
+ @font-face {
39
+ font-family: 'DM Sans';
40
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2Bold")}') format('woff2');
41
+ font-style: normal;
42
+ font-weight: 700;
43
+ font-display: swap;
44
+ }
45
+ @font-face {
46
+ font-family: 'DM Sans';
47
+ src: url('#{$path}/#{cat-token("asset.font.dmSans.woff2BoldItalic")}') format('woff2');
48
+ font-style: italic;
49
+ font-weight: 700;
50
+ font-display: swap;
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,185 @@
1
+ @use 'sass:list';
2
+ @use '../variables' as *;
3
+
4
+ @mixin cat-font-lato($path, $weights...) {
5
+ @if list.index($weights, 100) {
6
+ @font-face {
7
+ font-family: Lato;
8
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Hairline")}') format('woff2'),
9
+ url('#{$path}/#{cat-token("asset.font.lato.woffHairline")}') format('woff');
10
+ font-style: normal;
11
+ font-weight: 100;
12
+ text-rendering: optimizeLegibility;
13
+ @content;
14
+ }
15
+ @font-face {
16
+ font-family: Lato;
17
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2HairlineItalic")}') format('woff2'),
18
+ url('#{$path}/#{cat-token("asset.font.lato.woffHairlineItalic")}') format('woff');
19
+ font-style: italic;
20
+ font-weight: 100;
21
+ text-rendering: optimizeLegibility;
22
+ @content;
23
+ }
24
+ }
25
+ @if list.index($weights, 200) {
26
+ @font-face {
27
+ font-family: Lato;
28
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Thin")}') format('woff2'),
29
+ url('#{$path}/#{cat-token("asset.font.lato.woffThin")}') format('woff');
30
+ font-style: normal;
31
+ font-weight: 200;
32
+ text-rendering: optimizeLegibility;
33
+ @content;
34
+ }
35
+ @font-face {
36
+ font-family: Lato;
37
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2ThinItalic")}') format('woff2'),
38
+ url('#{$path}/#{cat-token("asset.font.lato.woffThinItalic")}') format('woff');
39
+ font-style: italic;
40
+ font-weight: 200;
41
+ text-rendering: optimizeLegibility;
42
+ @content;
43
+ }
44
+ }
45
+ @if list.index($weights, 300) {
46
+ @font-face {
47
+ font-family: Lato;
48
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Light")}') format('woff2'),
49
+ url('#{$path}/#{cat-token("asset.font.lato.woffLight")}') format('woff');
50
+ font-style: normal;
51
+ font-weight: 300;
52
+ text-rendering: optimizeLegibility;
53
+ @content;
54
+ }
55
+ @font-face {
56
+ font-family: Lato;
57
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2LightItalic")}') format('woff2'),
58
+ url('#{$path}/#{cat-token("asset.font.lato.woffLightItalic")}') format('woff');
59
+ font-style: italic;
60
+ font-weight: 300;
61
+ text-rendering: optimizeLegibility;
62
+ @content;
63
+ }
64
+ }
65
+ @if list.index($weights, 400) {
66
+ @font-face {
67
+ font-family: Lato;
68
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Regular")}') format('woff2'),
69
+ url('#{$path}/#{cat-token("asset.font.lato.woffRegular")}') format('woff');
70
+ font-style: normal;
71
+ font-weight: 400;
72
+ text-rendering: optimizeLegibility;
73
+ @content;
74
+ }
75
+ @font-face {
76
+ font-family: Lato;
77
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Italic")}') format('woff2'),
78
+ url('#{$path}/#{cat-token("asset.font.lato.woffItalic")}') format('woff');
79
+ font-style: italic;
80
+ font-weight: 400;
81
+ text-rendering: optimizeLegibility;
82
+ @content;
83
+ }
84
+ }
85
+ @if list.index($weights, 500) {
86
+ @font-face {
87
+ font-family: Lato;
88
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Medium")}') format('woff2'),
89
+ url('#{$path}/#{cat-token("asset.font.lato.woffMedium")}') format('woff');
90
+ font-style: normal;
91
+ font-weight: 500;
92
+ text-rendering: optimizeLegibility;
93
+ @content;
94
+ }
95
+ @font-face {
96
+ font-family: Lato;
97
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2MediumItalic")}') format('woff2'),
98
+ url('#{$path}/#{cat-token("asset.font.lato.woffMediumItalic")}') format('woff');
99
+ font-style: italic;
100
+ font-weight: 500;
101
+ text-rendering: optimizeLegibility;
102
+ @content;
103
+ }
104
+ }
105
+ @if list.index($weights, 600) {
106
+ @font-face {
107
+ font-family: Lato;
108
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Semibold")}') format('woff2'),
109
+ url('#{$path}/#{cat-token("asset.font.lato.woffSemibold")}') format('woff');
110
+ font-style: normal;
111
+ font-weight: 600;
112
+ text-rendering: optimizeLegibility;
113
+ @content;
114
+ }
115
+ @font-face {
116
+ font-family: Lato;
117
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2SemiboldItalic")}') format('woff2'),
118
+ url('#{$path}/#{cat-token("asset.font.lato.woffSemiboldItalic")}') format('woff');
119
+ font-style: italic;
120
+ font-weight: 600;
121
+ text-rendering: optimizeLegibility;
122
+ @content;
123
+ }
124
+ }
125
+ @if list.index($weights, 700) {
126
+ @font-face {
127
+ font-family: Lato;
128
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Bold")}') format('woff2'),
129
+ url('#{$path}/#{cat-token("asset.font.lato.woffBold")}') format('woff');
130
+ font-style: normal;
131
+ font-weight: 700;
132
+ text-rendering: optimizeLegibility;
133
+ @content;
134
+ }
135
+ @font-face {
136
+ font-family: Lato;
137
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2BoldItalic")}') format('woff2'),
138
+ url('#{$path}/#{cat-token("asset.font.lato.woffBoldItalic")}') format('woff');
139
+ font-style: italic;
140
+ font-weight: 700;
141
+ text-rendering: optimizeLegibility;
142
+ @content;
143
+ }
144
+ }
145
+ @if list.index($weights, 800) {
146
+ @font-face {
147
+ font-family: Lato;
148
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Heavy")}') format('woff2'),
149
+ url('#{$path}/#{cat-token("asset.font.lato.woffHeavy")}') format('woff');
150
+ font-style: normal;
151
+ font-weight: 800;
152
+ text-rendering: optimizeLegibility;
153
+ @content;
154
+ }
155
+ @font-face {
156
+ font-family: Lato;
157
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2HeavyItalic")}') format('woff2'),
158
+ url('#{$path}/#{cat-token("asset.font.lato.woffHeavyItalic")}') format('woff');
159
+ font-style: italic;
160
+ font-weight: 800;
161
+ text-rendering: optimizeLegibility;
162
+ @content;
163
+ }
164
+ }
165
+ @if list.index($weights, 900) {
166
+ @font-face {
167
+ font-family: Lato;
168
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2Black")}') format('woff2'),
169
+ url('#{$path}/#{cat-token("asset.font.lato.woffBlack")}') format('woff');
170
+ font-style: normal;
171
+ font-weight: 900;
172
+ text-rendering: optimizeLegibility;
173
+ @content;
174
+ }
175
+ @font-face {
176
+ font-family: Lato;
177
+ src: url('#{$path}/#{cat-token("asset.font.lato.woff2BlackItalic")}') format('woff2'),
178
+ url('#{$path}/#{cat-token("asset.font.lato.woffBlackItalic")}') format('woff');
179
+ font-style: italic;
180
+ font-weight: 900;
181
+ text-rendering: optimizeLegibility;
182
+ @content;
183
+ }
184
+ }
185
+ }
@@ -0,0 +1,17 @@
1
+ @forward 'fonts.mixins.azeret';
2
+ @forward 'fonts.mixins.dm';
3
+ @forward 'fonts.mixins.lato';
4
+
5
+ @mixin cat-fonts($path) {
6
+ @include cat-font-dm-sans($path, 500) {
7
+ font-display: swap;
8
+ }
9
+
10
+ @include cat-font-lato($path, 300, 400, 500, 700) {
11
+ font-display: fallback;
12
+ }
13
+
14
+ @include cat-font-azeret($path, 400) {
15
+ font-display: fallback;
16
+ }
17
+ }
@@ -0,0 +1,34 @@
1
+ // -- Reset
2
+
3
+ @import '~sanitize.css/sanitize.css';
4
+ @import '~sanitize.css/assets.css';
5
+ @import '~sanitize.css/reduce-motion.css';
6
+
7
+ // -- Vendor
8
+
9
+ @import '~toastify-js/src/toastify.css';
10
+
11
+ // -- Fonts
12
+
13
+ @import 'fonts/fonts.mixins';
14
+ $cat-font-path: 'assets/fonts' !default;
15
+ @include cat-fonts($cat-font-path);
16
+
17
+ // -- Core
18
+
19
+ @import 'core/base';
20
+ @import 'core/nav';
21
+ @import 'core/toast';
22
+ @import 'core/typography';
23
+
24
+ // -- Utils
25
+
26
+ @import 'utils/color';
27
+ @import 'utils/display';
28
+ @import 'utils/elevation';
29
+ @import 'utils/layout';
30
+ @import 'utils/sizing';
31
+ @import 'utils/spacing';
32
+ @import 'utils/typography';
33
+ @import 'utils/visibility';
34
+ @import 'utils/ratio';
@@ -0,0 +1,52 @@
1
+ @use '../variables' as *;
2
+
3
+ @each $name, $theme in cat-token('color.theme') {
4
+ .cat-bg-#{$name} {
5
+ background-color: cat-token('color.theme.#{$name}.bg') !important;
6
+ color: cat-token('color.theme.#{$name}.fill') !important;
7
+ }
8
+
9
+ .cat-bg-#{$name}-hover {
10
+ transition: background-color cat-token('time.transition.s'), color cat-token('time.transition.s');
11
+
12
+ &:hover {
13
+ background-color: cat-token('color.theme.#{$name}.bgHover') !important;
14
+ color: cat-token('color.theme.#{$name}.fillHover') !important;
15
+ }
16
+ }
17
+
18
+ .cat-text-#{$name},
19
+ .cat-link-#{$name} {
20
+ color: cat-token('color.theme.#{$name}.text') !important;
21
+ }
22
+
23
+ .cat-link-#{$name},
24
+ .cat-text-#{$name}-hover {
25
+ transition: color cat-token('time.transition.s');
26
+
27
+ &:hover {
28
+ color: cat-token('color.theme.#{$name}.textHover') !important;
29
+ }
30
+
31
+ &:active {
32
+ color: cat-token('color.theme.#{$name}.textActive') !important;
33
+ }
34
+ }
35
+ }
36
+
37
+ .cat-active {
38
+ color: cat-token('color.theme.primary.text') !important;
39
+ }
40
+
41
+ .cat-muted {
42
+ color: cat-token('color.ui.font.muted') !important;
43
+ }
44
+
45
+ .cat-text-reset {
46
+ color: inherit !important;
47
+ }
48
+
49
+ .cat-link-reset {
50
+ color: inherit !important;
51
+ text-decoration: inherit !important;
52
+ }
@@ -0,0 +1,7 @@
1
+ @use '../variables' as *;
2
+
3
+ @mixin cat-disabled() {
4
+ cursor: not-allowed;
5
+ opacity: cat-token('opacity.disabled');
6
+ filter: grayscale(100%);
7
+ }
@@ -0,0 +1,20 @@
1
+ @use '../variables' as *;
2
+ @use 'media.mixins' as *;
3
+
4
+ $-display-props: none, inline, inline-block, block, grid, flex, inline-flex;
5
+
6
+ @each $prop in $-display-props {
7
+ .cat-#{$prop} {
8
+ display: $prop !important;
9
+ }
10
+ }
11
+
12
+ @each $key, $value in cat-token('size.screen') {
13
+ @include from($key) {
14
+ @each $prop in $-display-props {
15
+ .cat-#{$prop}\:#{$key} {
16
+ display: $prop !important;
17
+ }
18
+ }
19
+ }
20
+ }