matcha-theme 19.93.0 → 19.94.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.
|
@@ -94,6 +94,8 @@
|
|
|
94
94
|
brown: $brown,
|
|
95
95
|
grey: $grey,
|
|
96
96
|
blue-grey: $blue-grey,
|
|
97
|
+
light-grey: $light-grey,
|
|
98
|
+
dark-grey: $dark-grey,
|
|
97
99
|
primary: $primary,
|
|
98
100
|
accent: $accent,
|
|
99
101
|
warn: $warn
|
|
@@ -154,24 +156,39 @@
|
|
|
154
156
|
|
|
155
157
|
// Foreground
|
|
156
158
|
@function getForeground($theme){
|
|
157
|
-
$
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
@
|
|
162
|
-
|
|
163
|
-
$foreground-inverse: map.get($foreground, foreground-inverse);
|
|
164
|
-
@return $foreground-inverse;
|
|
159
|
+
$is-dark: map.get($theme, is-dark);
|
|
160
|
+
@if $is-dark {
|
|
161
|
+
@return $color-base-blue-grey-100; // Cor clara para tema light
|
|
162
|
+
} @else {
|
|
163
|
+
@return $color-base-blue-grey-900; // Cor escura para tema dark
|
|
164
|
+
}
|
|
165
165
|
}
|
|
166
|
+
|
|
166
167
|
@function getForegroundAlpha($theme){
|
|
167
|
-
$
|
|
168
|
-
$
|
|
169
|
-
|
|
168
|
+
$is-dark: map.get($theme, is-dark);
|
|
169
|
+
@if $is-dark {
|
|
170
|
+
@return rgba($color-base-blue-grey-100, 0.2); // Cor clara para tema light
|
|
171
|
+
} @else {
|
|
172
|
+
@return rgba($color-base-blue-grey-900, 0.2); // Cor escura para tema dark
|
|
173
|
+
}
|
|
170
174
|
}
|
|
175
|
+
|
|
176
|
+
@function getForegroundInverse($theme){
|
|
177
|
+
$is-dark: map.get($theme, is-dark);
|
|
178
|
+
@if $is-dark {
|
|
179
|
+
@return $color-base-blue-grey-900; // Cor clara para tema light
|
|
180
|
+
} @else {
|
|
181
|
+
@return $color-base-blue-grey-100; // Cor escura para tema dark
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
171
185
|
@function getForegroundAlphaInverse($theme){
|
|
172
|
-
$
|
|
173
|
-
$
|
|
174
|
-
|
|
186
|
+
$is-dark: map.get($theme, is-dark);
|
|
187
|
+
@if $is-dark {
|
|
188
|
+
@return rgba($color-base-blue-grey-900, 0.2); // Cor clara para tema light
|
|
189
|
+
} @else {
|
|
190
|
+
@return rgba($color-base-blue-grey-100, 0.2); // Cor escura para tema dark
|
|
191
|
+
}
|
|
175
192
|
}
|
|
176
193
|
|
|
177
194
|
|
|
@@ -83,25 +83,24 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
@mixin matcha-tooltip-theme($theme) {
|
|
86
|
-
$foreground: map-get($theme, foreground);
|
|
87
86
|
|
|
88
87
|
.matcha-tooltip-content {
|
|
89
|
-
background-color:
|
|
90
|
-
color:
|
|
88
|
+
background-color: getForeground($theme);
|
|
89
|
+
color: getForegroundInverse($theme);
|
|
91
90
|
&:not(.matcha-tooltip-content_below):not(.matcha-tooltip-content_left):not(.matcha-tooltip-content_right)::after {
|
|
92
|
-
border-color:
|
|
91
|
+
border-color: getForeground($theme) transparent transparent transparent;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
.matcha-tooltip-content_below::before {
|
|
97
|
-
border-color: transparent transparent
|
|
96
|
+
border-color: transparent transparent getForeground($theme) transparent;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
.matcha-tooltip-content_left::after {
|
|
101
|
-
border-color: transparent transparent transparent
|
|
100
|
+
border-color: transparent transparent transparent getForeground($theme);
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
.matcha-tooltip-content_right::after {
|
|
105
|
-
border-color: transparent
|
|
104
|
+
border-color: transparent getForeground($theme) transparent transparent;
|
|
106
105
|
}
|
|
107
106
|
}
|