@matteusan/himig 1.7.4 → 1.8.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.
@@ -17,12 +17,13 @@
17
17
 
18
18
  &:has(.ms-select-field__label) {
19
19
  .ms-select-field__input {
20
- padding-top: calc(#{$top-padding} + 1rem) !important;
20
+ padding-block-start: calc(#{$top-padding} + 1rem) !important;
21
21
  }
22
22
  }
23
23
 
24
24
  &:has(.ms-select-field__input:focus),
25
- &:has(.ms-select-field__input:valid), {
25
+ &:has(.ms-select-field__input:valid),
26
+ &:has(.ms-select-field__input > option:checked),{
26
27
  .ms-select-field__label {
27
28
  top: math.div($top-label-distance, 2) !important;
28
29
  @include pintig.typography-bind('select-field-label', (
@@ -71,7 +72,7 @@
71
72
  resize: none;
72
73
  cursor: text;
73
74
  -webkit-appearance: caret;
74
- @include pintig.prefix(transition, all var(--ms-transition-time) ease);
75
+ @include pintig.prefix(transition, all pintig.token-get('time-short') pintig.token-get('easing'));
75
76
  }
76
77
 
77
78
  .ms-select-field__helper {
@@ -84,7 +85,7 @@
84
85
  weight: inherit,
85
86
  line-height: inherit,
86
87
  ));
87
- @include pintig.prefix(transition, all var(--ms-transition-time) ease);
88
+ @include pintig.prefix(transition, all pintig.token-get('time-short') pintig.token-get('easing'));
88
89
  }
89
90
  }
90
91
  }
@@ -20,112 +20,78 @@
20
20
 
21
21
  $resolve-padding: if(list.length(pintig.theme-get($struct, 'padding')) >= 2, list.nth(pintig.theme-get($struct, 'padding'), 2), list.nth(pintig.theme-get($struct, 'padding'), 1));
22
22
 
23
- @include base.init(
24
- pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
25
- pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
26
- pintig.primitive-token-switch('padding.#{list.nth(pintig.theme-get($struct, 'padding'), 1)}', list.nth(pintig.theme-get($struct, 'padding'), 1)),
27
- ) {
28
- @include pintig.color-bind('select-field-label', (
29
- ink: pintig.theme-get($color, 'ink'),
30
- ));
31
- @include pintig.typography-bind('select-field-label', (
32
- family: pintig.theme-get($typography, 'family'),
33
- size: pintig.theme-get($typography, 'size', 'label'),
34
- weight: pintig.theme-get($typography, 'weight'),
35
- line-height: pintig.theme-get($typography, 'height'),
36
- ));
37
-
38
- @include pintig.struct-bind('select-field', (
39
- width: pintig.theme-get($struct, 'width'),
40
- padding: pintig.theme-get($struct, 'padding'),
41
- radius: pintig.theme-get($struct, 'radius'),
42
- border-width: pintig.theme-get($struct, 'border-width'),
43
- border-style: pintig.theme-get($struct, 'border-style'),
44
- gap: pintig.theme-get($struct, 'gap'),
45
- ));
46
- @include pintig.typography-bind('select-field', (
47
- family: pintig.theme-get($typography, 'family'),
48
- size: pintig.theme-get($typography, 'size', 'default'),
49
- weight: pintig.theme-get($typography, 'weight'),
50
- line-height: pintig.theme-get($typography, 'height'),
51
- ));
52
-
53
- @include pintig.color-bind('select-field-helper', (
54
- ink: pintig.theme-get($color, 'ink', 'helper'),
55
- ));
56
- @include pintig.typography-bind('select-field-helper', (
57
- family: pintig.theme-get($typography, 'family'),
58
- size: pintig.theme-get($typography, 'size', 'helper'),
59
- weight: pintig.theme-get($typography, 'weight'),
60
- line-height: pintig.theme-get($typography, 'height'),
61
- ));
62
-
63
- &:has(.ms-select-field__input:not(:read-only):not(:disabled)) {
64
- .ms-select-field__label {
65
- @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink'), 'bind');
66
- }
67
-
68
- .ms-select-field__helper {
69
- @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'helper'), 'bind');
70
- }
71
- }
23
+ @layer components {
24
+ @include base.init(
25
+ pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
26
+ pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
27
+ pintig.primitive-token-switch('padding.#{list.nth(pintig.theme-get($struct, 'padding'), 1)}', list.nth(pintig.theme-get($struct, 'padding'), 1)),
28
+ ) {
29
+ @include pintig.typography-bind('select-field-label', (
30
+ family: pintig.theme-get($typography, 'family'),
31
+ size: pintig.theme-get($typography, 'size', 'label'),
32
+ weight: pintig.theme-get($typography, 'weight'),
33
+ line-height: pintig.theme-get($typography, 'height'),
34
+ ));
72
35
 
73
- &:has(.ms-select-field__input:read-only:disabled) {
74
- .ms-select-field__label {
75
- @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
76
- }
36
+ @include pintig.struct-bind('select-field', (
37
+ width: pintig.theme-get($struct, 'width'),
38
+ padding: pintig.theme-get($struct, 'padding'),
39
+ radius: pintig.theme-get($struct, 'radius'),
40
+ border-width: pintig.theme-get($struct, 'border-width'),
41
+ border-style: pintig.theme-get($struct, 'border-style'),
42
+ gap: pintig.theme-get($struct, 'gap'),
43
+ ));
44
+ @include pintig.typography-bind('select-field', (
45
+ family: pintig.theme-get($typography, 'family'),
46
+ size: pintig.theme-get($typography, 'size', 'default'),
47
+ weight: pintig.theme-get($typography, 'weight'),
48
+ line-height: pintig.theme-get($typography, 'height'),
49
+ ));
77
50
 
78
- .ms-select-field__helper {
79
- @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
80
- }
81
- }
51
+ @include pintig.color-bind('select-field-helper', (
52
+ ink: pintig.theme-get($color, 'ink', 'helper'),
53
+ ));
54
+ @include pintig.typography-bind('select-field-helper', (
55
+ family: pintig.theme-get($typography, 'family'),
56
+ size: pintig.theme-get($typography, 'size', 'helper'),
57
+ weight: pintig.theme-get($typography, 'weight'),
58
+ line-height: pintig.theme-get($typography, 'height'),
59
+ ));
82
60
 
83
- .ms-select-field__input {
84
- &:not(:disabled),
85
- &:not(:read-only) {
86
- @include pintig.color-bind('select-field', (
87
- fill: pintig.theme-get($color, 'fill'),
88
- ink: pintig.theme-get($color, 'ink'),
89
- border: pintig.theme-get($color, 'border'),
90
- ));
61
+ &:has(.ms-select-field__input:read-only),
62
+ &:has(.ms-select-field__input:disabled) {
63
+ .ms-select-field__label {
64
+ @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
65
+ }
91
66
 
92
- &:focus {
93
- @include pintig.color-bind('select-field', (
94
- fill: pintig.theme-get($color, 'fill', 'focus'),
95
- border: pintig.theme-get($color, 'border', 'focus'),
96
- ));
97
- @include pintig.struct-bind('select-field', (
98
- border-width: pintig.theme-get($struct, 'border-width', 'focus'),
99
- ));
67
+ .ms-select-field__helper {
68
+ @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
100
69
  }
101
70
  }
102
71
 
103
- &:disabled {
104
- @include pintig.color-bind('select-field', (
105
- fill: pintig.theme-get($color, 'fill', 'disabled'),
106
- ink: pintig.theme-get($color, 'ink', 'disabled'),
107
- border: pintig.theme-get($color, 'border', 'disabled'),
108
- ));
109
- cursor: not-allowed;
110
- }
111
- }
72
+ &:has(.ms-select-field__input:not(:read-only)),
73
+ &:has(.ms-select-field__input:not(:disabled)) {
74
+ .ms-select-field__label {
75
+ @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
76
+ }
112
77
 
113
- .ms-select-field__helper {
114
- padding: 0.3rem pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding) 0;
115
- }
78
+ .ms-select-field__helper {
79
+ @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'helper'), 'bind');
80
+ }
81
+ }
116
82
 
117
- &:where(.is-outlined) {
118
83
  .ms-select-field__input {
119
84
  &:not(:disabled),
120
85
  &:not(:read-only) {
121
86
  @include pintig.color-bind('select-field', (
122
- fill: transparent,
87
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill')) r g b / pintig.$color-fill-focus-opacity),
123
88
  ink: pintig.theme-get($color, 'ink'),
124
89
  border: pintig.theme-get($color, 'border'),
125
90
  ));
126
91
 
127
92
  &:focus {
128
93
  @include pintig.color-bind('select-field', (
94
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'focus')) r g b / pintig.$color-fill-focus-opacity),
129
95
  border: pintig.theme-get($color, 'border', 'focus'),
130
96
  ));
131
97
  @include pintig.struct-bind('select-field', (
@@ -136,58 +102,59 @@
136
102
 
137
103
  &:disabled {
138
104
  @include pintig.color-bind('select-field', (
139
- fill: transparent,
105
+ fill: pintig.theme-get($color, 'fill', 'disabled'),
140
106
  ink: pintig.theme-get($color, 'ink', 'disabled'),
141
- border: pintig.theme-get($color, 'fill', 'disabled'),
107
+ border: pintig.theme-get($color, 'border', 'disabled'),
142
108
  ));
109
+ cursor: not-allowed;
143
110
  }
144
111
  }
145
112
 
113
+ .ms-select-field__helper {
114
+ padding: 0.3rem pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding) 0;
115
+ }
116
+
146
117
  &:where(.is-error) {
118
+ .ms-select-field__label {
119
+ @include pintig.color-bind('select-field-label', (
120
+ ink: rgb(from pintig.token-switch(pintig.theme-get($color, 'ink', 'error')) r g b / 70%) !important,
121
+ ));
122
+ }
123
+
147
124
  .ms-select-field__input:not(:disabled),
148
125
  .ms-select-field__input:not(:read-only) {
149
126
  @include pintig.color-bind('select-field', (
150
- fill: rgba(0 0 0 / 0) !important,
151
- border: 'error-alpha-400',
127
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'error')) r g b / pintig.$color-fill-focus-opacity),
128
+ ink: pintig.theme-get($color, 'ink', 'error'),
129
+ border: pintig.theme-get($color, 'border', 'error'),
152
130
  ));
153
- }
154
- }
155
- }
156
131
 
157
- &:where(.is-error) {
158
- .ms-select-field__input:not(:disabled),
159
- .ms-select-field__input:not(:read-only) {
160
- @include pintig.color-bind('select-field', (
161
- fill: 'error-alpha-300',
162
- ink: 'error-400',
163
- border: 'error-alpha-400'
164
- ));
132
+ &:focus {
133
+ @include pintig.color-bind('select-field', (
134
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'error', 'focus')) r g b / pintig.$color-fill-focus-opacity),
135
+ border: pintig.theme-get($color, 'border', 'error', 'focus'),
136
+ ));
137
+ }
165
138
 
166
- &:focus {
167
- @include pintig.color-bind('select-field', (
168
- fill: 'error-alpha-300',
169
- border: 'error-400'
170
- ));
139
+ + .ms-select-field__helper {
140
+ @include pintig.color-bind('select-field-helper', (
141
+ ink: pintig.theme-get($color, 'ink', 'error'),
142
+ ));
143
+ }
171
144
  }
172
145
 
173
- + .ms-select-field__helper {
146
+ .ms-select-field__helper {
174
147
  @include pintig.color-bind('select-field-helper', (
175
- ink: 'error-400',
148
+ ink: pintig.theme-get($color, 'ink', 'helper'),
176
149
  ));
177
150
  }
178
151
  }
179
152
 
180
- .ms-select-field__helper {
181
- @include pintig.color-bind('select-field-helper', (
182
- ink: pintig.theme-get($color, 'ink', 'helper'),
153
+ &:where(.is-raised) {
154
+ @include pintig.struct-bind('select-field', (
155
+ shadow: 'xs',
183
156
  ));
184
157
  }
185
158
  }
186
-
187
- &:where(.is-raised) {
188
- @include pintig.struct-bind('select-field', (
189
- shadow: 'xs',
190
- ));
191
- }
192
159
  }
193
160
  }
@@ -4,12 +4,12 @@
4
4
 
5
5
  $init-color: (
6
6
  fill: (
7
- default: 'surface-alpha-800',
8
- focus: 'accent-alpha-300',
7
+ default: 'surface-400',
8
+ focus: 'accent-400',
9
9
  disabled: 'disabled',
10
10
  error: (
11
- default: 'error-alpha-300',
12
- focus: 'error-alpha-400'
11
+ default: 'error-800',
12
+ focus: 'error-800'
13
13
  )
14
14
  ),
15
15
  ink: (
@@ -23,7 +23,7 @@ $init-color: (
23
23
  focus: 'accent-400',
24
24
  disabled: 'disabled',
25
25
  error: (
26
- default: 'error-alpha-800',
26
+ default: 'error-800',
27
27
  focus: 'error-400'
28
28
  )
29
29
  ),
@@ -34,8 +34,8 @@ $init-struct: (
34
34
  padding: ('md', 'lg'),
35
35
  radius: 'small',
36
36
  border-width: (
37
- 'default': 2px,
38
- 'focus': 2px
37
+ 'default': 'xs',
38
+ 'focus': 'xs'
39
39
  ),
40
40
  border-style: solid,
41
41
  gap: 'sm'
@@ -11,7 +11,7 @@
11
11
  flex-flow: row nowrap;
12
12
  align-items: center;
13
13
  gap: pintig.key-create('tick-field-gap', 0.5rem);
14
- transition: all var(--ms-transition-time) ease;
14
+ transition: all pintig.token-get('time-short') pintig.token-get('easing');
15
15
 
16
16
  @content;
17
17
 
@@ -20,7 +20,7 @@
20
20
  place-content: center;
21
21
  @include pintig.struct-radius('tick-field-input', inherit);
22
22
  @include pintig.color-apply('tick-field-input', pintig.$color-inherit-template);
23
- transition: all var(--ms-transition-time) ease;
23
+ transition: all pintig.token-get('time-short') pintig.token-get('easing');
24
24
  @include pintig.prefix('appearance', none);
25
25
  outline: none;
26
26
 
@@ -18,74 +18,76 @@
18
18
  $typography: pintig.theme-merge(theme.$init-typography, $typography);
19
19
  $settings: pintig.theme-merge(theme.$init-settings, $settings);
20
20
 
21
- @include base.init() {
22
- @include pintig.color-apply('tick-field', (
23
- fill: pintig.theme-get($color, 'fill'),
24
- ink: pintig.theme-get($color, 'ink'),
25
- border: pintig.theme-get($color, 'border'),
26
- ));
27
- @include pintig.struct-apply('tick-field', $struct);
28
- @include pintig.typography-bind('tick-field', $typography);
29
- @include pintig.typography-bind('tick-field-helper', (
30
- family: pintig.theme-get($typography, 'family'),
31
- size: pintig.theme-get($typography, 'size', 'helper'),
32
- weight: pintig.theme-get($typography, 'weight'),
33
- line-height: pintig.theme-get($typography, 'line-height'),
34
- ));
35
-
36
- @include pintig.struct-bind('tick-field-text', (
37
- gap: pintig.theme-get($struct, 'gap', 'text'),
38
- ));
39
-
40
- &:hover,
41
- &:has(.ms-tick-field__input:focus) {
42
- @include pintig.color-bind('tick-field', (
43
- fill: pintig.theme-get($color, 'fill', 'hover'),
44
- border: pintig.theme-get($color, 'border', 'hover'),
21
+ @layer components {
22
+ @include base.init() {
23
+ @include pintig.color-apply('tick-field', (
24
+ fill: pintig.theme-get($color, 'fill'),
25
+ ink: pintig.theme-get($color, 'ink'),
26
+ border: pintig.theme-get($color, 'border'),
45
27
  ));
46
- }
47
-
48
- &:has(.ms-tick-field__input:checked) {
49
- @include pintig.color-bind('tick-field', (
50
- fill: pintig.theme-get($color, 'fill', 'checked'),
51
- border: pintig.theme-get($color, 'border', 'checked'),
28
+ @include pintig.struct-apply('tick-field', $struct);
29
+ @include pintig.typography-bind('tick-field', $typography);
30
+ @include pintig.typography-bind('tick-field-helper', (
31
+ family: pintig.theme-get($typography, 'family'),
32
+ size: pintig.theme-get($typography, 'size', 'helper'),
33
+ weight: pintig.theme-get($typography, 'weight'),
34
+ line-height: pintig.theme-get($typography, 'line-height'),
52
35
  ));
53
- }
54
36
 
55
- .ms-tick-field__input {
56
- @include pintig.struct-apply('tick-field-input', (
57
- width: 1.5rem,
58
- height: 1.5rem,
59
- margin: 0,
60
- border-width: 'sm',
61
- border-style: 'solid'
37
+ @include pintig.struct-bind('tick-field-text', (
38
+ gap: pintig.theme-get($struct, 'gap', 'text'),
62
39
  ));
63
- @include pintig.color-bind('tick-field-input', (
64
- fill: pintig.theme-get($color, 'fill', 'input'),
65
- ink: pintig.theme-get($color, 'ink', 'input'),
66
- border: pintig.theme-get($color, 'border', 'input'),
67
- ));
68
-
69
- &[type='checkbox'] {
70
- @include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'checkbox'), 'bind');
71
- }
72
40
 
73
- &[type='radio'] {
74
- @include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'radio'), 'bind');
41
+ &:hover,
42
+ &:has(.ms-tick-field__input:focus) {
43
+ @include pintig.color-bind('tick-field', (
44
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'hover')) r g b / pintig.$color-fill-focus-opacity),
45
+ border: rgb(from pintig.token-switch(pintig.theme-get($color, 'border', 'hover')) r g b / pintig.$color-fill-focus-opacity),
46
+ ));
75
47
  }
76
48
 
77
- &:hover,
78
- &:focus {
79
- @include pintig.color-fill('tick-field-input', pintig.theme-get($color, 'fill', 'input', 'hover'), 'bind');
80
- @include pintig.color-border('tick-field-input', pintig.theme-get($color, 'border', 'input', 'hover'), 'bind');
49
+ &:has(.ms-tick-field__input:checked) {
50
+ @include pintig.color-bind('tick-field', (
51
+ fill: rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'checked')) r g b / pintig.$color-fill-focus-opacity),
52
+ border: pintig.theme-get($color, 'border', 'checked'),
53
+ ));
81
54
  }
82
55
 
83
- &:checked {
56
+ .ms-tick-field__input {
57
+ @include pintig.struct-apply('tick-field-input', (
58
+ width: 1.5rem,
59
+ height: 1.5rem,
60
+ margin: 0,
61
+ border-width: 'sm',
62
+ border-style: 'solid'
63
+ ));
84
64
  @include pintig.color-bind('tick-field-input', (
85
- fill: pintig.theme-get($color, 'fill', 'input', 'checked'),
65
+ fill: pintig.theme-get($color, 'fill', 'input'),
86
66
  ink: pintig.theme-get($color, 'ink', 'input'),
87
- border: pintig.theme-get($color, 'border', 'input', 'checked'),
67
+ border: pintig.theme-get($color, 'border', 'input'),
88
68
  ));
69
+
70
+ &[type='checkbox'] {
71
+ @include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'checkbox'), 'bind');
72
+ }
73
+
74
+ &[type='radio'] {
75
+ @include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'radio'), 'bind');
76
+ }
77
+
78
+ &:hover,
79
+ &:focus {
80
+ @include pintig.color-fill('tick-field-input', rgb(from pintig.token-switch(pintig.theme-get($color, 'fill', 'input', 'hover')) r g b / pintig.$color-fill-focus-opacity), 'bind');
81
+ @include pintig.color-border('tick-field-input', rgb(from pintig.token-switch(pintig.theme-get($color, 'border', 'input', 'hover')) r g b / pintig.$color-fill-focus-opacity), 'bind');
82
+ }
83
+
84
+ &:checked {
85
+ @include pintig.color-bind('tick-field-input', (
86
+ fill: pintig.theme-get($color, 'fill', 'input', 'checked'),
87
+ ink: pintig.theme-get($color, 'ink', 'input'),
88
+ border: pintig.theme-get($color, 'border', 'input', 'checked'),
89
+ ));
90
+ }
89
91
  }
90
92
  }
91
93
  }
@@ -5,11 +5,11 @@
5
5
  $init-color: (
6
6
  fill: (
7
7
  default: rgba(0 0 0 / 0),
8
- hover: 'accent-alpha-300',
9
- checked: 'accent-alpha-300',
8
+ hover: 'accent-300',
9
+ checked: 'accent-300',
10
10
  input: (
11
11
  default: rgba(0 0 0 / 0),
12
- hover: 'accent-alpha-400',
12
+ hover: 'accent-400',
13
13
  checked: 'accent-400'
14
14
  ),
15
15
  ),
@@ -19,11 +19,11 @@ $init-color: (
19
19
  ),
20
20
  border: (
21
21
  default: 'surface-300',
22
- hover: 'accent-alpha-600',
22
+ hover: 'accent-600',
23
23
  checked: 'accent-400',
24
24
  input: (
25
25
  default: 'surface-300',
26
- hover: 'accent-alpha-600',
26
+ hover: 'accent-600',
27
27
  checked: 'accent-400',
28
28
  )
29
29
  ),
@@ -42,7 +42,7 @@ $init-struct: (
42
42
  radio: 'pill'
43
43
  )
44
44
  ),
45
- padding: ('md' 'lg'),
45
+ padding: ('lg'),
46
46
  gap: (
47
47
  default: 0.7rem,
48
48
  text: 0.3rem
@@ -20,56 +20,58 @@ $_tones: (200, 300, 400, 600, 800, 'ink');
20
20
  @mixin color($include: (), $exclude: ()) {
21
21
  $utils-to-render: helpers.handle-include-exclude(('fill', 'ink', 'border'), $include, $exclude);
22
22
 
23
- // Background color
24
- @if list.index($utils-to-render, 'fill') {
25
- @each $color in $_colors {
26
- @each $tone in $_tones {
27
- .fill-#{$color}-#{$tone} {
28
- background-color: pintig.token-get('#{$color}-#{$tone}');
29
- }
23
+ @layer utils {
24
+ // Background color
25
+ @if list.index($utils-to-render, 'fill') {
26
+ @each $color in $_colors {
27
+ @each $tone in $_tones {
28
+ .fill-#{$color}-#{$tone} {
29
+ background-color: pintig.token-get('#{$color}-#{$tone}');
30
+ }
30
31
 
31
- @each $breakpoint in $_breakpoints {
32
- .\@#{$breakpoint}\:fill-#{$color}-#{$tone} {
33
- @include pintig.breakpoint-create($breakpoint) {
34
- background-color: pintig.token-get('#{$color}-#{$tone}') !important;
32
+ @each $breakpoint in $_breakpoints {
33
+ .\@#{$breakpoint}\:fill-#{$color}-#{$tone} {
34
+ @include pintig.breakpoint-create($breakpoint) {
35
+ background-color: pintig.token-get('#{$color}-#{$tone}') !important;
36
+ }
35
37
  }
36
38
  }
37
39
  }
38
40
  }
39
41
  }
40
- }
41
42
 
42
- // Text color
43
- @if list.index($utils-to-render, 'ink') {
44
- @each $color in $_colors {
45
- @each $tone in $_tones {
46
- .ink-#{$color}-#{$tone} {
47
- color: pintig.token-get('#{$color}-#{$tone}');
48
- }
43
+ // Text color
44
+ @if list.index($utils-to-render, 'ink') {
45
+ @each $color in $_colors {
46
+ @each $tone in $_tones {
47
+ .ink-#{$color}-#{$tone} {
48
+ color: pintig.token-get('#{$color}-#{$tone}');
49
+ }
49
50
 
50
- @each $breakpoint in $_breakpoints {
51
- .\@#{$breakpoint}\:ink-#{$color}-#{$tone} {
52
- @include pintig.breakpoint-create($breakpoint) {
53
- color: pintig.token-get('#{$color}-#{$tone}') !important;
51
+ @each $breakpoint in $_breakpoints {
52
+ .\@#{$breakpoint}\:ink-#{$color}-#{$tone} {
53
+ @include pintig.breakpoint-create($breakpoint) {
54
+ color: pintig.token-get('#{$color}-#{$tone}') !important;
55
+ }
54
56
  }
55
57
  }
56
58
  }
57
59
  }
58
60
  }
59
- }
60
61
 
61
- // Border color
62
- @if list.index($utils-to-render, 'border') {
63
- @each $color in $_colors {
64
- @each $tone in $_tones {
65
- .border-#{$color}-#{$tone} {
66
- border-color: pintig.token-get('#{$color}-#{$tone}');
67
- }
62
+ // Border color
63
+ @if list.index($utils-to-render, 'border') {
64
+ @each $color in $_colors {
65
+ @each $tone in $_tones {
66
+ .border-#{$color}-#{$tone} {
67
+ border-color: pintig.token-get('#{$color}-#{$tone}');
68
+ }
68
69
 
69
- @each $breakpoint in $_breakpoints {
70
- .\@#{$breakpoint}\:border-#{$color}-#{$tone} {
71
- @include pintig.breakpoint-create($breakpoint) {
72
- border-color: pintig.token-get('#{$color}-#{$tone}') !important;
70
+ @each $breakpoint in $_breakpoints {
71
+ .\@#{$breakpoint}\:border-#{$color}-#{$tone} {
72
+ @include pintig.breakpoint-create($breakpoint) {
73
+ border-color: pintig.token-get('#{$color}-#{$tone}') !important;
74
+ }
73
75
  }
74
76
  }
75
77
  }