@ptsecurity/mosaic 14.6.2 → 14.7.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.
Files changed (225) hide show
  1. package/_theming.scss +1916 -173
  2. package/_visual.scss +341 -0
  3. package/button/button.component.d.ts +2 -0
  4. package/card/card.component.d.ts +2 -0
  5. package/checkbox/checkbox.d.ts +1 -0
  6. package/code-block/README.md +32 -0
  7. package/code-block/actionbar.component.d.ts +22 -0
  8. package/code-block/code-block.component.d.ts +74 -0
  9. package/code-block/code-block.module.d.ts +14 -0
  10. package/code-block/code-block.types.d.ts +16 -0
  11. package/code-block/index.d.ts +1 -0
  12. package/code-block/public-api.d.ts +3 -0
  13. package/core/formatters/date/formatter.d.ts +55 -1
  14. package/core/option/action.d.ts +2 -0
  15. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +1 -0
  16. package/datepicker/calendar-body.component.d.ts +3 -11
  17. package/datepicker/calendar-header.component.d.ts +45 -0
  18. package/datepicker/calendar.component.d.ts +10 -81
  19. package/datepicker/datepicker-input.directive.d.ts +4 -3
  20. package/datepicker/datepicker-module.d.ts +8 -8
  21. package/datepicker/datepicker.component.d.ts +2 -12
  22. package/datepicker/month-view.component.d.ts +7 -26
  23. package/datepicker/public-api.d.ts +1 -2
  24. package/design-tokens/legacy-2017/tokens/components/code-block.json5 +704 -0
  25. package/design-tokens/legacy-2017/tokens.d.ts +341 -0
  26. package/design-tokens/pt-2022/tokens/components/code-block.json5 +697 -0
  27. package/design-tokens/pt-2022/tokens.d.ts +341 -0
  28. package/design-tokens/style-dictionary/configs/index.js +6 -8
  29. package/dropdown/dropdown-item.component.d.ts +1 -0
  30. package/esm2020/autocomplete/autocomplete.component.mjs +2 -2
  31. package/esm2020/button/button.component.mjs +3 -3
  32. package/esm2020/card/card.component.mjs +3 -3
  33. package/esm2020/checkbox/checkbox.mjs +2 -2
  34. package/esm2020/code-block/actionbar.component.mjs +67 -0
  35. package/esm2020/code-block/code-block.component.mjs +157 -0
  36. package/esm2020/code-block/code-block.module.mjs +60 -0
  37. package/esm2020/code-block/code-block.types.mjs +2 -0
  38. package/esm2020/code-block/index.mjs +2 -0
  39. package/esm2020/code-block/ptsecurity-mosaic-code-block.mjs +5 -0
  40. package/esm2020/code-block/public-api.mjs +4 -0
  41. package/esm2020/core/formatters/date/formatter.mjs +77 -1
  42. package/esm2020/core/formatters/date/templates/en-US.mjs +56 -1
  43. package/esm2020/core/formatters/date/templates/ru-RU.mjs +92 -1
  44. package/esm2020/core/option/action.mjs +3 -2
  45. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
  46. package/esm2020/core/version.mjs +2 -2
  47. package/esm2020/datepicker/calendar-body.component.mjs +9 -28
  48. package/esm2020/datepicker/calendar-header.component.mjs +135 -0
  49. package/esm2020/datepicker/calendar.component.mjs +25 -212
  50. package/esm2020/datepicker/datepicker-input.directive.mjs +65 -56
  51. package/esm2020/datepicker/datepicker-module.mjs +13 -17
  52. package/esm2020/datepicker/datepicker.component.mjs +10 -21
  53. package/esm2020/datepicker/month-view.component.mjs +32 -131
  54. package/esm2020/datepicker/public-api.mjs +2 -3
  55. package/esm2020/design-tokens/legacy-2017/tokens.mjs +342 -1
  56. package/esm2020/design-tokens/pt-2022/tokens.mjs +342 -1
  57. package/esm2020/dropdown/dropdown-item.component.mjs +2 -2
  58. package/esm2020/form-field/form-field.mjs +3 -2
  59. package/esm2020/form-field/hint.mjs +3 -2
  60. package/esm2020/form-field/validate.directive.mjs +6 -7
  61. package/esm2020/icon/icon.component.mjs +3 -2
  62. package/esm2020/input/input-number-validators.mjs +3 -7
  63. package/esm2020/input/input.mjs +3 -2
  64. package/esm2020/link/link.component.mjs +3 -2
  65. package/esm2020/list/list-selection.component.mjs +3 -2
  66. package/esm2020/modal/modal.component.mjs +4 -3
  67. package/esm2020/popover/popover.component.mjs +6 -2
  68. package/esm2020/progress-bar/progress-bar.component.mjs +3 -2
  69. package/esm2020/progress-spinner/progress-spinner.component.mjs +3 -2
  70. package/esm2020/radio/radio.component.mjs +3 -4
  71. package/esm2020/select/select.component.mjs +18 -6
  72. package/esm2020/select/select.module.mjs +6 -2
  73. package/esm2020/tabs/tab-group.component.mjs +2 -2
  74. package/esm2020/tabs/tab-label-wrapper.directive.mjs +2 -2
  75. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +3 -2
  76. package/esm2020/tabs/tab.component.mjs +3 -2
  77. package/esm2020/tags/tag-list.component.mjs +3 -2
  78. package/esm2020/tags/tag.component.mjs +3 -2
  79. package/esm2020/textarea/textarea.component.mjs +3 -2
  80. package/esm2020/timezone/timezone-select.component.mjs +2 -2
  81. package/esm2020/toggle/toggle.component.mjs +3 -2
  82. package/esm2020/tree/control/flat-tree-control.mjs +1 -1
  83. package/esm2020/tree/toggle.mjs +3 -2
  84. package/esm2020/tree/tree-base.mjs +1 -1
  85. package/esm2020/tree-select/tree-select.component.mjs +3 -2
  86. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +2 -2
  87. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  88. package/fesm2015/ptsecurity-mosaic-button.mjs +2 -2
  89. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  90. package/fesm2015/ptsecurity-mosaic-card.mjs +2 -2
  91. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
  92. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +1 -1
  93. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  94. package/fesm2015/ptsecurity-mosaic-code-block.mjs +280 -0
  95. package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +1 -0
  96. package/fesm2015/ptsecurity-mosaic-core.mjs +226 -3
  97. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  98. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +283 -908
  99. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  100. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +1024 -1
  101. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  102. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1 -1
  103. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  104. package/fesm2015/ptsecurity-mosaic-form-field.mjs +10 -8
  105. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  106. package/fesm2015/ptsecurity-mosaic-icon.mjs +2 -1
  107. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
  108. package/fesm2015/ptsecurity-mosaic-input.mjs +4 -7
  109. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  110. package/fesm2015/ptsecurity-mosaic-link.mjs +2 -1
  111. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
  112. package/fesm2015/ptsecurity-mosaic-list.mjs +2 -1
  113. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  114. package/fesm2015/ptsecurity-mosaic-modal.mjs +3 -2
  115. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  116. package/fesm2015/ptsecurity-mosaic-popover.mjs +5 -1
  117. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  118. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +2 -1
  119. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  120. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +2 -1
  121. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  122. package/fesm2015/ptsecurity-mosaic-radio.mjs +2 -3
  123. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  124. package/fesm2015/ptsecurity-mosaic-select.mjs +22 -6
  125. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  126. package/fesm2015/ptsecurity-mosaic-tabs.mjs +6 -4
  127. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  128. package/fesm2015/ptsecurity-mosaic-tags.mjs +4 -2
  129. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  130. package/fesm2015/ptsecurity-mosaic-textarea.mjs +2 -1
  131. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  132. package/fesm2015/ptsecurity-mosaic-timezone.mjs +2 -2
  133. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
  134. package/fesm2015/ptsecurity-mosaic-toggle.mjs +2 -1
  135. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
  136. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +2 -1
  137. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  138. package/fesm2015/ptsecurity-mosaic-tree.mjs +2 -1
  139. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  140. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +2 -2
  141. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  142. package/fesm2020/ptsecurity-mosaic-button.mjs +2 -2
  143. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  144. package/fesm2020/ptsecurity-mosaic-card.mjs +2 -2
  145. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
  146. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +1 -1
  147. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  148. package/fesm2020/ptsecurity-mosaic-code-block.mjs +278 -0
  149. package/fesm2020/ptsecurity-mosaic-code-block.mjs.map +1 -0
  150. package/fesm2020/ptsecurity-mosaic-core.mjs +226 -3
  151. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  152. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +281 -903
  153. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  154. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +1024 -1
  155. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  156. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1 -1
  157. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  158. package/fesm2020/ptsecurity-mosaic-form-field.mjs +9 -8
  159. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  160. package/fesm2020/ptsecurity-mosaic-icon.mjs +2 -1
  161. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
  162. package/fesm2020/ptsecurity-mosaic-input.mjs +4 -7
  163. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  164. package/fesm2020/ptsecurity-mosaic-link.mjs +2 -1
  165. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
  166. package/fesm2020/ptsecurity-mosaic-list.mjs +2 -1
  167. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  168. package/fesm2020/ptsecurity-mosaic-modal.mjs +3 -2
  169. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  170. package/fesm2020/ptsecurity-mosaic-popover.mjs +5 -1
  171. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  172. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +2 -1
  173. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  174. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +2 -1
  175. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  176. package/fesm2020/ptsecurity-mosaic-radio.mjs +2 -3
  177. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  178. package/fesm2020/ptsecurity-mosaic-select.mjs +22 -6
  179. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  180. package/fesm2020/ptsecurity-mosaic-tabs.mjs +6 -4
  181. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  182. package/fesm2020/ptsecurity-mosaic-tags.mjs +4 -2
  183. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  184. package/fesm2020/ptsecurity-mosaic-textarea.mjs +2 -1
  185. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  186. package/fesm2020/ptsecurity-mosaic-timezone.mjs +2 -2
  187. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
  188. package/fesm2020/ptsecurity-mosaic-toggle.mjs +2 -1
  189. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
  190. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +2 -1
  191. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  192. package/fesm2020/ptsecurity-mosaic-tree.mjs +2 -1
  193. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  194. package/form-field/form-field.d.ts +2 -0
  195. package/form-field/hint.d.ts +2 -0
  196. package/form-field/validate.directive.d.ts +1 -1
  197. package/icon/icon.component.d.ts +2 -0
  198. package/input/input-number-validators.d.ts +2 -6
  199. package/input/input.d.ts +2 -0
  200. package/link/link.component.d.ts +2 -0
  201. package/list/list-selection.component.d.ts +2 -0
  202. package/package.json +12 -4
  203. package/popover/popover.component.d.ts +1 -0
  204. package/prebuilt-themes/dark-theme.css +1 -1
  205. package/prebuilt-themes/default-theme.css +1 -1
  206. package/progress-bar/progress-bar.component.d.ts +2 -0
  207. package/progress-spinner/progress-spinner.component.d.ts +2 -0
  208. package/radio/radio.component.d.ts +2 -0
  209. package/select/select.component.d.ts +9 -2
  210. package/select/select.module.d.ts +1 -1
  211. package/tabs/tab-group.component.d.ts +1 -0
  212. package/tabs/tab-label-wrapper.directive.d.ts +1 -0
  213. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -0
  214. package/tabs/tab.component.d.ts +2 -0
  215. package/tags/tag-list.component.d.ts +2 -0
  216. package/tags/tag.component.d.ts +2 -0
  217. package/textarea/textarea.component.d.ts +2 -0
  218. package/toggle/toggle.component.d.ts +2 -0
  219. package/tree/control/flat-tree-control.d.ts +4 -4
  220. package/tree/toggle.d.ts +2 -0
  221. package/tree-select/tree-select.component.d.ts +2 -0
  222. package/datepicker/multi-year-view.component.d.ts +0 -72
  223. package/datepicker/year-view.component.d.ts +0 -90
  224. package/esm2020/datepicker/multi-year-view.component.mjs +0 -218
  225. package/esm2020/datepicker/year-view.component.mjs +0 -253
package/_theming.scss CHANGED
@@ -152,83 +152,107 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
152
152
  }
153
153
  }
154
154
 
155
- @mixin cdk-a11y {
156
- .cdk-visually-hidden {
157
- border: 0;
158
- clip: rect(0 0 0 0);
159
- height: 1px;
160
- margin: -1px;
161
- overflow: hidden;
162
- padding: 0;
163
- position: absolute;
164
- width: 1px;
155
+ /// Emits a CSS class, `.cdk-visually-hidden`. This class can be applied to an element
156
+ /// to make that element visually hidden while remaining available to assistive technology.
157
+ @mixin a11y-visually-hidden() {
158
+ .cdk-visually-hidden {
159
+ border: 0;
160
+ clip: rect(0 0 0 0);
161
+ height: 1px;
162
+ margin: -1px;
163
+ overflow: hidden;
164
+ padding: 0;
165
+ position: absolute;
166
+ width: 1px;
165
167
 
166
- // Avoid browsers rendering the focus ring in some cases.
167
- outline: 0;
168
+ // This works around a Chrome bug that can cause the tab to crash when large amounts of
169
+ // non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
170
+ white-space: nowrap;
171
+
172
+ // Avoid browsers rendering the focus ring in some cases.
173
+ outline: 0;
168
174
 
169
- // Avoid some cases where the browser will still render the native controls (see #9049).
170
- -webkit-appearance: none;
171
- -moz-appearance: none;
175
+ // Avoid some cases where the browser will still render the native controls (see #9049).
176
+ -webkit-appearance: none;
177
+ -moz-appearance: none;
178
+
179
+ // We need at least one of top/bottom/left/right in order to prevent cases where the
180
+ // absolute-positioned element is pushed down and can affect scrolling (see #24597).
181
+ // `left` was chosen here, because it's the least likely to break overrides where the
182
+ // element might have been positioned (e.g. `mat-checkbox`).
183
+ left: 0;
184
+
185
+ [dir='rtl'] & {
186
+ left: auto;
187
+ right: 0;
172
188
  }
189
+ }
190
+ }
191
+
192
+ /// @deprecated Use `a11y-visually-hidden`.
193
+ @mixin a11y() {
194
+ @include a11y-visually-hidden;
173
195
  }
174
196
 
175
197
  /// Emits the mixin's content nested under `$selector-context` if `$selector-context`
176
198
  /// is non-empty.
177
- /// @param selector-context The selector under which to nest the mixin's content.
178
- @mixin _cdk-optionally-nest-content($selector-context) {
179
- @if ($selector-context == '') {
180
- @content;
181
- }
182
- @else {
183
- #{$selector-context} {
184
- @content;
185
- }
199
+ /// @param {String} selector-context The selector under which to nest the mixin's content.
200
+ @mixin _optionally-nest-content($selector-context) {
201
+ @if ($selector-context == '') {
202
+ @content;
203
+ }
204
+ @else {
205
+ #{$selector-context} {
206
+ @content;
186
207
  }
208
+ }
187
209
  }
188
210
 
189
211
  /// Applies styles for users in high contrast mode. Note that this only applies
190
212
  /// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
191
213
  /// attribute, however Chrome handles high contrast differently.
192
214
  ///
193
- /// @param target Which kind of high contrast setting to target. Defaults to `active`, can be
194
- /// `white-on-black` or `black-on-white`.
195
- /// @param encapsulation Whether to emit styles for view encapsulation. Values are:
215
+ /// @param {String} target Type of high contrast setting to target. Defaults to `active`, can be
216
+ /// `white-on-black` or `black-on-white`.
217
+ /// @param {String} encapsulation Whether to emit styles for view encapsulation. Values are:
196
218
  /// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
197
219
  /// * `off` - works for `None`
198
220
  /// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
199
- @mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
200
- @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
201
- @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
202
- 'Allowed values are "active", "black-on-white", and "white-on-black"';
203
- }
221
+ @mixin high-contrast($target: active, $encapsulation: 'any') {
222
+ @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
223
+ @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
224
+ 'Allowed values are "active", "black-on-white", and "white-on-black"';
225
+ }
204
226
 
205
- @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
206
- @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
207
- 'Allowed values are "on", "off", and "any"';
208
- }
227
+ @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
228
+ @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
229
+ 'Allowed values are "on", "off", and "any"';
230
+ }
209
231
 
210
- // If the selector context has multiple parts, such as `.section, .region`, just doing
211
- // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
212
- // context. We address this by nesting the selector context under .cdk-high-contrast.
213
- @at-root {
214
- $selector-context: #{&};
232
+ // If the selector context has multiple parts, such as `.section, .region`, just doing
233
+ // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
234
+ // context. We address this by nesting the selector context under .cdk-high-contrast.
235
+ @at-root {
236
+ $selector-context: #{&};
215
237
 
216
- @if ($encapsulation != 'on') {
217
- .cdk-high-contrast-#{$target} {
218
- @include _cdk-optionally-nest-content($selector-context) {
219
- @content;
220
- }
221
- }
238
+ @if ($encapsulation != 'on') {
239
+ // Note that if this selector is updated, the same change has to be made inside
240
+ // `_overlay.scss` which can't depend on this mixin due to some infrastructure limitations.
241
+ .cdk-high-contrast-#{$target} {
242
+ @include _optionally-nest-content($selector-context) {
243
+ @content;
222
244
  }
245
+ }
246
+ }
223
247
 
224
- @if ($encapsulation != 'off') {
225
- .cdk-high-contrast-#{$target} :host {
226
- @include _cdk-optionally-nest-content($selector-context) {
227
- @content;
228
- }
229
- }
248
+ @if ($encapsulation != 'off') {
249
+ .cdk-high-contrast-#{$target} :host {
250
+ @include _optionally-nest-content($selector-context) {
251
+ @content;
230
252
  }
253
+ }
231
254
  }
255
+ }
232
256
  }
233
257
 
234
258
 
@@ -869,6 +893,347 @@ $checkbox-size-border-width: 1px;
869
893
  $checkbox-size-border-radius: 4px;
870
894
  $checkbox-size-toggle-box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.2);
871
895
  $checkbox-font-default: body;
896
+ $code-block-light-color-scheme-background: white;
897
+ $code-block-light-color-scheme-border: #d7dee4;
898
+ $code-block-light-color-scheme-color: #19252f;
899
+ $code-block-light-color-scheme-actionbar-background: rgba(white, 0.5);
900
+ $code-block-light-color-scheme-actionbar-border: null;
901
+ $code-block-light-color-scheme-line-numbers-background: null;
902
+ $code-block-light-color-scheme-line-numbers-border: null;
903
+ $code-block-light-color-scheme-line-numbers-color: #8c99a5;
904
+ $code-block-light-color-scheme-decoration-less-contrast-background: #f2f5f9;
905
+ $code-block-light-color-scheme-decoration-less-contrast-border: #d7dee4;
906
+ $code-block-light-color-scheme-decoration-less-contrast-actionbar-background: #f2f5f9;
907
+ $code-block-light-color-scheme-decoration-less-contrast-actionbar-border: null;
908
+ $code-block-light-color-scheme-hljs-addition-background: #d2f7db;
909
+ $code-block-light-color-scheme-hljs-addition-color: #103920;
910
+ $code-block-light-color-scheme-hljs-attr-background: null;
911
+ $code-block-light-color-scheme-hljs-attr-color: null;
912
+ $code-block-light-color-scheme-hljs-attribute-background: null;
913
+ $code-block-light-color-scheme-hljs-attribute-color: null;
914
+ $code-block-light-color-scheme-hljs-built-in-background: null;
915
+ $code-block-light-color-scheme-hljs-built-in-color: null;
916
+ $code-block-light-color-scheme-hljs-bullet-background: null;
917
+ $code-block-light-color-scheme-hljs-bullet-color: null;
918
+ $code-block-light-color-scheme-hljs-char-escape-background: null;
919
+ $code-block-light-color-scheme-hljs-char-escape-color: null;
920
+ $code-block-light-color-scheme-hljs-class-background: null;
921
+ $code-block-light-color-scheme-hljs-class-color: null;
922
+ $code-block-light-color-scheme-hljs-code-background: null;
923
+ $code-block-light-color-scheme-hljs-code-color: null;
924
+ $code-block-light-color-scheme-hljs-comment-background: null;
925
+ $code-block-light-color-scheme-hljs-comment-color: #6d7a86;
926
+ $code-block-light-color-scheme-hljs-deletion-background: #ffeaea;
927
+ $code-block-light-color-scheme-hljs-deletion-color: #621420;
928
+ $code-block-light-color-scheme-hljs-doctag-background: null;
929
+ $code-block-light-color-scheme-hljs-doctag-color: null;
930
+ $code-block-light-color-scheme-hljs-emphasis-background: null;
931
+ $code-block-light-color-scheme-hljs-emphasis-color: null;
932
+ $code-block-light-color-scheme-hljs-formula-background: null;
933
+ $code-block-light-color-scheme-hljs-formula-color: null;
934
+ $code-block-light-color-scheme-hljs-function-background: null;
935
+ $code-block-light-color-scheme-hljs-function-color: null;
936
+ $code-block-light-color-scheme-hljs-keyword-background: null;
937
+ $code-block-light-color-scheme-hljs-keyword-color: null;
938
+ $code-block-light-color-scheme-hljs-link-background: null;
939
+ $code-block-light-color-scheme-hljs-link-color: null;
940
+ $code-block-light-color-scheme-hljs-literal-background: null;
941
+ $code-block-light-color-scheme-hljs-literal-color: #864775;
942
+ $code-block-light-color-scheme-hljs-meta-background: null;
943
+ $code-block-light-color-scheme-hljs-meta-color: #0059b8;
944
+ $code-block-light-color-scheme-hljs-meta-keyword-background: null;
945
+ $code-block-light-color-scheme-hljs-meta-keyword-color: null;
946
+ $code-block-light-color-scheme-hljs-meta-string-background: null;
947
+ $code-block-light-color-scheme-hljs-meta-string-color: #0374eb;
948
+ $code-block-light-color-scheme-hljs-meta-prompt-background: null;
949
+ $code-block-light-color-scheme-hljs-meta-prompt-color: null;
950
+ $code-block-light-color-scheme-hljs-name-background: null;
951
+ $code-block-light-color-scheme-hljs-name-color: #0059b8;
952
+ $code-block-light-color-scheme-hljs-number-background: null;
953
+ $code-block-light-color-scheme-hljs-number-color: #864775;
954
+ $code-block-light-color-scheme-hljs-operator-background: null;
955
+ $code-block-light-color-scheme-hljs-operator-color: null;
956
+ $code-block-light-color-scheme-hljs-params-background: null;
957
+ $code-block-light-color-scheme-hljs-params-color: null;
958
+ $code-block-light-color-scheme-hljs-property-background: null;
959
+ $code-block-light-color-scheme-hljs-property-color: null;
960
+ $code-block-light-color-scheme-hljs-punctuation-background: null;
961
+ $code-block-light-color-scheme-hljs-punctuation-color: null;
962
+ $code-block-light-color-scheme-hljs-quote-background: null;
963
+ $code-block-light-color-scheme-hljs-quote-color: null;
964
+ $code-block-light-color-scheme-hljs-regexp-background: null;
965
+ $code-block-light-color-scheme-hljs-regexp-color: #028b49;
966
+ $code-block-light-color-scheme-hljs-section-background: null;
967
+ $code-block-light-color-scheme-hljs-section-color: null;
968
+ $code-block-light-color-scheme-hljs-selector-attr-background: null;
969
+ $code-block-light-color-scheme-hljs-selector-attr-color: null;
970
+ $code-block-light-color-scheme-hljs-selector-class-background: null;
971
+ $code-block-light-color-scheme-hljs-selector-class-color: null;
972
+ $code-block-light-color-scheme-hljs-selector-id-background: null;
973
+ $code-block-light-color-scheme-hljs-selector-id-color: null;
974
+ $code-block-light-color-scheme-hljs-selector-pseudo-background: null;
975
+ $code-block-light-color-scheme-hljs-selector-pseudo-color: null;
976
+ $code-block-light-color-scheme-hljs-selector-tag-background: null;
977
+ $code-block-light-color-scheme-hljs-selector-tag-color: #0059b8;
978
+ $code-block-light-color-scheme-hljs-string-background: null;
979
+ $code-block-light-color-scheme-hljs-string-color: #028b49;
980
+ $code-block-light-color-scheme-hljs-strong-background: null;
981
+ $code-block-light-color-scheme-hljs-strong-color: null;
982
+ $code-block-light-color-scheme-hljs-subst-background: null;
983
+ $code-block-light-color-scheme-hljs-subst-color: null;
984
+ $code-block-light-color-scheme-hljs-symbol-background: null;
985
+ $code-block-light-color-scheme-hljs-symbol-color: #0059b8;
986
+ $code-block-light-color-scheme-hljs-tag-background: null;
987
+ $code-block-light-color-scheme-hljs-tag-color: null;
988
+ $code-block-light-color-scheme-hljs-template-tag-background: null;
989
+ $code-block-light-color-scheme-hljs-template-tag-color: null;
990
+ $code-block-light-color-scheme-hljs-template-variable-background: null;
991
+ $code-block-light-color-scheme-hljs-template-variable-color: null;
992
+ $code-block-light-color-scheme-hljs-title-background: null;
993
+ $code-block-light-color-scheme-hljs-title-color: #0059b8;
994
+ $code-block-light-color-scheme-hljs-title-class-background: null;
995
+ $code-block-light-color-scheme-hljs-title-class-color: null;
996
+ $code-block-light-color-scheme-hljs-title-class-inherited-background: null;
997
+ $code-block-light-color-scheme-hljs-title-class-inherited-color: null;
998
+ $code-block-light-color-scheme-hljs-title-function-background: null;
999
+ $code-block-light-color-scheme-hljs-title-function-color: null;
1000
+ $code-block-light-color-scheme-hljs-title-function-invoke-background: null;
1001
+ $code-block-light-color-scheme-hljs-title-function-invoke-color: null;
1002
+ $code-block-light-color-scheme-hljs-type-background: null;
1003
+ $code-block-light-color-scheme-hljs-type-color: null;
1004
+ $code-block-light-color-scheme-hljs-variable-background: null;
1005
+ $code-block-light-color-scheme-hljs-variable-color: null;
1006
+ $code-block-light-color-scheme-hljs-variable-constant-background: null;
1007
+ $code-block-light-color-scheme-hljs-variable-constant-color: null;
1008
+ $code-block-light-color-scheme-hljs-variable-language-background: null;
1009
+ $code-block-light-color-scheme-hljs-variable-language-color: null;
1010
+ $code-block-dark-color-scheme-background: #19252f;
1011
+ $code-block-dark-color-scheme-border: mix(#515e69, transparent, 50%);
1012
+ $code-block-dark-color-scheme-color: #d7dee4;
1013
+ $code-block-dark-color-scheme-actionbar-background: #19252f;
1014
+ $code-block-dark-color-scheme-actionbar-border: null;
1015
+ $code-block-dark-color-scheme-line-numbers-background: null;
1016
+ $code-block-dark-color-scheme-line-numbers-border: null;
1017
+ $code-block-dark-color-scheme-line-numbers-color: #6d7a86;
1018
+ $code-block-dark-color-scheme-decoration-less-contrast-background: #27333e;
1019
+ $code-block-dark-color-scheme-decoration-less-contrast-border: mix(#515e69, transparent, 50%);
1020
+ $code-block-dark-color-scheme-decoration-less-contrast-actionbar-background: #27333e;
1021
+ $code-block-dark-color-scheme-decoration-less-contrast-actionbar-border: null;
1022
+ $code-block-dark-color-scheme-hljs-addition-background: #103920;
1023
+ $code-block-dark-color-scheme-hljs-addition-color: #8ed5a1;
1024
+ $code-block-dark-color-scheme-hljs-attr-background: null;
1025
+ $code-block-dark-color-scheme-hljs-attr-color: null;
1026
+ $code-block-dark-color-scheme-hljs-attribute-background: null;
1027
+ $code-block-dark-color-scheme-hljs-attribute-color: null;
1028
+ $code-block-dark-color-scheme-hljs-built-in-background: null;
1029
+ $code-block-dark-color-scheme-hljs-built-in-color: null;
1030
+ $code-block-dark-color-scheme-hljs-bullet-background: null;
1031
+ $code-block-dark-color-scheme-hljs-bullet-color: null;
1032
+ $code-block-dark-color-scheme-hljs-char-escape-background: null;
1033
+ $code-block-dark-color-scheme-hljs-char-escape-color: null;
1034
+ $code-block-dark-color-scheme-hljs-class-background: null;
1035
+ $code-block-dark-color-scheme-hljs-class-color: null;
1036
+ $code-block-dark-color-scheme-hljs-code-background: null;
1037
+ $code-block-dark-color-scheme-hljs-code-color: null;
1038
+ $code-block-dark-color-scheme-hljs-comment-background: null;
1039
+ $code-block-dark-color-scheme-hljs-comment-color: #6d7a86;
1040
+ $code-block-dark-color-scheme-hljs-deletion-background: #621420;
1041
+ $code-block-dark-color-scheme-hljs-deletion-color: #fcb2b4;
1042
+ $code-block-dark-color-scheme-hljs-doctag-background: null;
1043
+ $code-block-dark-color-scheme-hljs-doctag-color: null;
1044
+ $code-block-dark-color-scheme-hljs-emphasis-background: null;
1045
+ $code-block-dark-color-scheme-hljs-emphasis-color: null;
1046
+ $code-block-dark-color-scheme-hljs-formula-background: null;
1047
+ $code-block-dark-color-scheme-hljs-formula-color: null;
1048
+ $code-block-dark-color-scheme-hljs-function-background: null;
1049
+ $code-block-dark-color-scheme-hljs-function-color: null;
1050
+ $code-block-dark-color-scheme-hljs-keyword-background: null;
1051
+ $code-block-dark-color-scheme-hljs-keyword-color: null;
1052
+ $code-block-dark-color-scheme-hljs-link-background: null;
1053
+ $code-block-dark-color-scheme-hljs-link-color: null;
1054
+ $code-block-dark-color-scheme-hljs-literal-background: null;
1055
+ $code-block-dark-color-scheme-hljs-literal-color: #c692b5;
1056
+ $code-block-dark-color-scheme-hljs-meta-background: null;
1057
+ $code-block-dark-color-scheme-hljs-meta-color: #5697ff;
1058
+ $code-block-dark-color-scheme-hljs-meta-keyword-background: null;
1059
+ $code-block-dark-color-scheme-hljs-meta-keyword-color: null;
1060
+ $code-block-dark-color-scheme-hljs-meta-string-background: null;
1061
+ $code-block-dark-color-scheme-hljs-meta-string-color: #4ba96c;
1062
+ $code-block-dark-color-scheme-hljs-meta-prompt-background: null;
1063
+ $code-block-dark-color-scheme-hljs-meta-prompt-color: null;
1064
+ $code-block-dark-color-scheme-hljs-name-background: null;
1065
+ $code-block-dark-color-scheme-hljs-name-color: #5697ff;
1066
+ $code-block-dark-color-scheme-hljs-number-background: null;
1067
+ $code-block-dark-color-scheme-hljs-number-color: #c692b5;
1068
+ $code-block-dark-color-scheme-hljs-operator-background: null;
1069
+ $code-block-dark-color-scheme-hljs-operator-color: null;
1070
+ $code-block-dark-color-scheme-hljs-params-background: null;
1071
+ $code-block-dark-color-scheme-hljs-params-color: null;
1072
+ $code-block-dark-color-scheme-hljs-property-background: null;
1073
+ $code-block-dark-color-scheme-hljs-property-color: null;
1074
+ $code-block-dark-color-scheme-hljs-punctuation-background: null;
1075
+ $code-block-dark-color-scheme-hljs-punctuation-color: null;
1076
+ $code-block-dark-color-scheme-hljs-quote-background: null;
1077
+ $code-block-dark-color-scheme-hljs-quote-color: null;
1078
+ $code-block-dark-color-scheme-hljs-regexp-background: null;
1079
+ $code-block-dark-color-scheme-hljs-regexp-color: #4ba96c;
1080
+ $code-block-dark-color-scheme-hljs-section-background: null;
1081
+ $code-block-dark-color-scheme-hljs-section-color: null;
1082
+ $code-block-dark-color-scheme-hljs-selector-attr-background: null;
1083
+ $code-block-dark-color-scheme-hljs-selector-attr-color: null;
1084
+ $code-block-dark-color-scheme-hljs-selector-class-background: null;
1085
+ $code-block-dark-color-scheme-hljs-selector-class-color: null;
1086
+ $code-block-dark-color-scheme-hljs-selector-id-background: null;
1087
+ $code-block-dark-color-scheme-hljs-selector-id-color: null;
1088
+ $code-block-dark-color-scheme-hljs-selector-pseudo-background: null;
1089
+ $code-block-dark-color-scheme-hljs-selector-pseudo-color: null;
1090
+ $code-block-dark-color-scheme-hljs-selector-tag-background: null;
1091
+ $code-block-dark-color-scheme-hljs-selector-tag-color: #5697ff;
1092
+ $code-block-dark-color-scheme-hljs-string-background: null;
1093
+ $code-block-dark-color-scheme-hljs-string-color: #4ba96c;
1094
+ $code-block-dark-color-scheme-hljs-strong-background: null;
1095
+ $code-block-dark-color-scheme-hljs-strong-color: null;
1096
+ $code-block-dark-color-scheme-hljs-subst-background: null;
1097
+ $code-block-dark-color-scheme-hljs-subst-color: null;
1098
+ $code-block-dark-color-scheme-hljs-symbol-background: null;
1099
+ $code-block-dark-color-scheme-hljs-symbol-color: #5697ff;
1100
+ $code-block-dark-color-scheme-hljs-tag-background: null;
1101
+ $code-block-dark-color-scheme-hljs-tag-color: null;
1102
+ $code-block-dark-color-scheme-hljs-template-tag-background: null;
1103
+ $code-block-dark-color-scheme-hljs-template-tag-color: null;
1104
+ $code-block-dark-color-scheme-hljs-template-variable-background: null;
1105
+ $code-block-dark-color-scheme-hljs-template-variable-color: null;
1106
+ $code-block-dark-color-scheme-hljs-title-background: null;
1107
+ $code-block-dark-color-scheme-hljs-title-color: #5697ff;
1108
+ $code-block-dark-color-scheme-hljs-title-class-background: null;
1109
+ $code-block-dark-color-scheme-hljs-title-class-color: null;
1110
+ $code-block-dark-color-scheme-hljs-title-class-inherited-background: null;
1111
+ $code-block-dark-color-scheme-hljs-title-class-inherited-color: null;
1112
+ $code-block-dark-color-scheme-hljs-title-function-background: null;
1113
+ $code-block-dark-color-scheme-hljs-title-function-color: null;
1114
+ $code-block-dark-color-scheme-hljs-title-function-invoke-background: null;
1115
+ $code-block-dark-color-scheme-hljs-title-function-invoke-color: null;
1116
+ $code-block-dark-color-scheme-hljs-type-background: null;
1117
+ $code-block-dark-color-scheme-hljs-type-color: null;
1118
+ $code-block-dark-color-scheme-hljs-variable-background: null;
1119
+ $code-block-dark-color-scheme-hljs-variable-color: null;
1120
+ $code-block-dark-color-scheme-hljs-variable-constant-background: null;
1121
+ $code-block-dark-color-scheme-hljs-variable-constant-color: null;
1122
+ $code-block-dark-color-scheme-hljs-variable-language-background: null;
1123
+ $code-block-dark-color-scheme-hljs-variable-language-color: null;
1124
+ $code-block-size-border-radius: 4px;
1125
+ $code-block-size-padding: 12px;
1126
+ $code-block-size-actionbar-border-radius: 4px;
1127
+ $code-block-size-actionbar-gap: 0;
1128
+ $code-block-size-actionbar-header-gap: 8px;
1129
+ $code-block-size-actionbar-margin-top: 6px;
1130
+ $code-block-size-actionbar-margin-right: 6px;
1131
+ $code-block-size-actionbar-padding: 8px;
1132
+ $code-block-size-line-numbers-padding: 2px 12px 0 0 ;
1133
+ $code-block-size-line-numbers-border-width: 0;
1134
+ $code-block-font-default: body-mono;
1135
+ $code-block-font-hljs-addition-font-style: null;
1136
+ $code-block-font-hljs-addition-font-weight: null;
1137
+ $code-block-font-hljs-attr-font-style: null;
1138
+ $code-block-font-hljs-attr-font-weight: null;
1139
+ $code-block-font-hljs-attribute-font-style: null;
1140
+ $code-block-font-hljs-attribute-font-weight: null;
1141
+ $code-block-font-hljs-built-in-font-style: null;
1142
+ $code-block-font-hljs-built-in-font-weight: null;
1143
+ $code-block-font-hljs-bullet-font-style: null;
1144
+ $code-block-font-hljs-bullet-font-weight: null;
1145
+ $code-block-font-hljs-char-escape-font-style: null;
1146
+ $code-block-font-hljs-char-escape-font-weight: null;
1147
+ $code-block-font-hljs-class-font-style: null;
1148
+ $code-block-font-hljs-class-font-weight: null;
1149
+ $code-block-font-hljs-code-font-style: null;
1150
+ $code-block-font-hljs-code-font-weight: null;
1151
+ $code-block-font-hljs-comment-font-style: null;
1152
+ $code-block-font-hljs-comment-font-weight: null;
1153
+ $code-block-font-hljs-deletion-font-style: null;
1154
+ $code-block-font-hljs-deletion-font-weight: null;
1155
+ $code-block-font-hljs-doctag-font-style: null;
1156
+ $code-block-font-hljs-doctag-font-weight: null;
1157
+ $code-block-font-hljs-emphasis-font-style: null;
1158
+ $code-block-font-hljs-emphasis-font-weight: null;
1159
+ $code-block-font-hljs-formula-font-style: null;
1160
+ $code-block-font-hljs-formula-font-weight: null;
1161
+ $code-block-font-hljs-function-font-style: null;
1162
+ $code-block-font-hljs-function-font-weight: null;
1163
+ $code-block-font-hljs-keyword-font-style: null;
1164
+ $code-block-font-hljs-keyword-font-weight: null;
1165
+ $code-block-font-hljs-link-font-style: null;
1166
+ $code-block-font-hljs-link-font-weight: null;
1167
+ $code-block-font-hljs-literal-font-style: null;
1168
+ $code-block-font-hljs-literal-font-weight: null;
1169
+ $code-block-font-hljs-meta-font-style: null;
1170
+ $code-block-font-hljs-meta-font-weight: null;
1171
+ $code-block-font-hljs-meta-keyword-font-style: null;
1172
+ $code-block-font-hljs-meta-keyword-font-weight: null;
1173
+ $code-block-font-hljs-meta-string-font-style: null;
1174
+ $code-block-font-hljs-meta-string-font-weight: null;
1175
+ $code-block-font-hljs-meta-prompt-font-style: null;
1176
+ $code-block-font-hljs-meta-prompt-font-weight: null;
1177
+ $code-block-font-hljs-name-font-style: null;
1178
+ $code-block-font-hljs-name-font-weight: null;
1179
+ $code-block-font-hljs-number-font-style: null;
1180
+ $code-block-font-hljs-number-font-weight: null;
1181
+ $code-block-font-hljs-operator-font-style: null;
1182
+ $code-block-font-hljs-operator-font-weight: null;
1183
+ $code-block-font-hljs-params-font-style: null;
1184
+ $code-block-font-hljs-params-font-weight: null;
1185
+ $code-block-font-hljs-property-font-style: null;
1186
+ $code-block-font-hljs-property-font-weight: null;
1187
+ $code-block-font-hljs-punctuation-font-style: null;
1188
+ $code-block-font-hljs-punctuation-font-weight: null;
1189
+ $code-block-font-hljs-quote-font-style: null;
1190
+ $code-block-font-hljs-quote-font-weight: null;
1191
+ $code-block-font-hljs-regexp-font-style: null;
1192
+ $code-block-font-hljs-regexp-font-weight: null;
1193
+ $code-block-font-hljs-section-font-style: null;
1194
+ $code-block-font-hljs-section-font-weight: null;
1195
+ $code-block-font-hljs-selector-attr-font-style: null;
1196
+ $code-block-font-hljs-selector-attr-font-weight: null;
1197
+ $code-block-font-hljs-selector-class-font-style: null;
1198
+ $code-block-font-hljs-selector-class-font-weight: null;
1199
+ $code-block-font-hljs-selector-id-font-style: null;
1200
+ $code-block-font-hljs-selector-id-font-weight: null;
1201
+ $code-block-font-hljs-selector-pseudo-font-style: null;
1202
+ $code-block-font-hljs-selector-pseudo-font-weight: null;
1203
+ $code-block-font-hljs-selector-tag-font-style: null;
1204
+ $code-block-font-hljs-selector-tag-font-weight: null;
1205
+ $code-block-font-hljs-string-font-style: null;
1206
+ $code-block-font-hljs-string-font-weight: null;
1207
+ $code-block-font-hljs-strong-font-style: null;
1208
+ $code-block-font-hljs-strong-font-weight: null;
1209
+ $code-block-font-hljs-subst-font-style: null;
1210
+ $code-block-font-hljs-subst-font-weight: null;
1211
+ $code-block-font-hljs-symbol-font-style: null;
1212
+ $code-block-font-hljs-symbol-font-weight: null;
1213
+ $code-block-font-hljs-tag-font-style: null;
1214
+ $code-block-font-hljs-tag-font-weight: null;
1215
+ $code-block-font-hljs-template-tag-font-style: null;
1216
+ $code-block-font-hljs-template-tag-font-weight: null;
1217
+ $code-block-font-hljs-template-variable-font-style: null;
1218
+ $code-block-font-hljs-template-variable-font-weight: null;
1219
+ $code-block-font-hljs-title-font-style: null;
1220
+ $code-block-font-hljs-title-font-weight: null;
1221
+ $code-block-font-hljs-title-class-font-style: normal;
1222
+ $code-block-font-hljs-title-class-font-weight: 500;
1223
+ $code-block-font-hljs-title-class-inherited-font-style: null;
1224
+ $code-block-font-hljs-title-class-inherited-font-weight: null;
1225
+ $code-block-font-hljs-title-function-font-style: null;
1226
+ $code-block-font-hljs-title-function-font-weight: null;
1227
+ $code-block-font-hljs-title-function-invoke-font-style: null;
1228
+ $code-block-font-hljs-title-function-invoke-font-weight: null;
1229
+ $code-block-font-hljs-type-font-style: null;
1230
+ $code-block-font-hljs-type-font-weight: null;
1231
+ $code-block-font-hljs-variable-font-style: null;
1232
+ $code-block-font-hljs-variable-font-weight: null;
1233
+ $code-block-font-hljs-variable-constant-font-style: null;
1234
+ $code-block-font-hljs-variable-constant-font-weight: null;
1235
+ $code-block-font-hljs-variable-language-font-style: null;
1236
+ $code-block-font-hljs-variable-language-font-weight: null;
872
1237
  $datepicker-toggle-size-width: 30px;
873
1238
  $datepicker-toggle-size-height: 30px;
874
1239
  $datepicker-body-light-color-scheme-states-today-color: #0374eb;
@@ -3061,7 +3426,7 @@ $md-typography: (
3061
3426
 
3062
3427
  // Mixin that renders all of the core styles that are not theme-dependent.
3063
3428
  @mixin mc-core() {
3064
- @include cdk-a11y();
3429
+ @include a11y-visually-hidden();
3065
3430
  @include overlay();
3066
3431
  }
3067
3432
 
@@ -3286,6 +3651,124 @@ $md-typography: (
3286
3651
  )
3287
3652
  );
3288
3653
 
3654
+ $code-block: (
3655
+ main-background: $code-block-light-color-scheme-background,
3656
+ border: $code-block-light-color-scheme-border,
3657
+ main-background-less-contrast: $code-block-light-color-scheme-decoration-less-contrast-background,
3658
+ line-numbers-color: $code-block-light-color-scheme-line-numbers-color,
3659
+ main-code-color: $code-block-light-color-scheme-color,
3660
+
3661
+ actionbar: (
3662
+ bg: $code-block-light-color-scheme-actionbar-background,
3663
+ bg-less-contrast: $code-block-light-color-scheme-decoration-less-contrast-actionbar-background,
3664
+ ),
3665
+
3666
+ hljs: (
3667
+ addition-background: $code-block-light-color-scheme-hljs-addition-background,
3668
+ addition-color: $code-block-light-color-scheme-hljs-addition-color,
3669
+ attr-background: $code-block-light-color-scheme-hljs-attr-background,
3670
+ attr-color: $code-block-light-color-scheme-hljs-attr-color,
3671
+ attribute-background: $code-block-light-color-scheme-hljs-attribute-background,
3672
+ attribute-color: $code-block-light-color-scheme-hljs-attribute-color,
3673
+ built-in-background: $code-block-light-color-scheme-hljs-built-in-background,
3674
+ built-in-color: $code-block-light-color-scheme-hljs-built-in-color,
3675
+ bullet-background: $code-block-light-color-scheme-hljs-bullet-background,
3676
+ bullet-color: $code-block-light-color-scheme-hljs-bullet-color,
3677
+ char-escape-background: $code-block-light-color-scheme-hljs-char-escape-background,
3678
+ char-escape-color: $code-block-light-color-scheme-hljs-char-escape-color,
3679
+ class-background: $code-block-light-color-scheme-hljs-class-background,
3680
+ class-color: $code-block-light-color-scheme-hljs-class-color,
3681
+ code-background: $code-block-light-color-scheme-hljs-code-background,
3682
+ code-color: $code-block-light-color-scheme-hljs-code-color,
3683
+ comment-background: $code-block-light-color-scheme-hljs-comment-background,
3684
+ comment-color: $code-block-light-color-scheme-hljs-comment-color,
3685
+ deletion-background: $code-block-light-color-scheme-hljs-deletion-background,
3686
+ deletion-color: $code-block-light-color-scheme-hljs-deletion-color,
3687
+ doctag-background: $code-block-light-color-scheme-hljs-doctag-background,
3688
+ doctag-color: $code-block-light-color-scheme-hljs-doctag-color,
3689
+ emphasis-background: $code-block-light-color-scheme-hljs-emphasis-background,
3690
+ emphasis-color: $code-block-light-color-scheme-hljs-emphasis-color,
3691
+ formula-background: $code-block-light-color-scheme-hljs-formula-background,
3692
+ formula-color: $code-block-light-color-scheme-hljs-formula-color,
3693
+ function-background: $code-block-light-color-scheme-hljs-function-background,
3694
+ function-color: $code-block-light-color-scheme-hljs-function-color,
3695
+ keyword-background: $code-block-light-color-scheme-hljs-keyword-background,
3696
+ keyword-color: $code-block-light-color-scheme-hljs-keyword-color,
3697
+ link-background: $code-block-light-color-scheme-hljs-link-background,
3698
+ link-color: $code-block-light-color-scheme-hljs-link-color,
3699
+ literal-background: $code-block-light-color-scheme-hljs-literal-background,
3700
+ literal-color: $code-block-light-color-scheme-hljs-literal-color,
3701
+ meta-background: $code-block-light-color-scheme-hljs-meta-background,
3702
+ meta-color: $code-block-light-color-scheme-hljs-meta-color,
3703
+ meta-keyword-background: $code-block-light-color-scheme-hljs-meta-keyword-background,
3704
+ meta-keyword-color: $code-block-light-color-scheme-hljs-meta-keyword-color,
3705
+ meta-string-background: $code-block-light-color-scheme-hljs-meta-string-background,
3706
+ meta-string-color: $code-block-light-color-scheme-hljs-meta-string-color,
3707
+ meta-prompt-background: $code-block-light-color-scheme-hljs-meta-prompt-background,
3708
+ meta-prompt-color: $code-block-light-color-scheme-hljs-meta-prompt-color,
3709
+ name-background: $code-block-light-color-scheme-hljs-name-background,
3710
+ name-color: $code-block-light-color-scheme-hljs-name-color,
3711
+ number-background: $code-block-light-color-scheme-hljs-number-background,
3712
+ number-color: $code-block-light-color-scheme-hljs-number-color,
3713
+ operator-background: $code-block-light-color-scheme-hljs-operator-background,
3714
+ operator-color: $code-block-light-color-scheme-hljs-operator-color,
3715
+ params-background: $code-block-light-color-scheme-hljs-params-background,
3716
+ params-color: $code-block-light-color-scheme-hljs-params-color,
3717
+ property-background: $code-block-light-color-scheme-hljs-property-background,
3718
+ property-color: $code-block-light-color-scheme-hljs-property-color,
3719
+ punctuation-background: $code-block-light-color-scheme-hljs-punctuation-background,
3720
+ punctuation-color: $code-block-light-color-scheme-hljs-punctuation-color,
3721
+ quote-background: $code-block-light-color-scheme-hljs-quote-background,
3722
+ quote-color: $code-block-light-color-scheme-hljs-quote-color,
3723
+ regexp-background: $code-block-light-color-scheme-hljs-regexp-background,
3724
+ regexp-color: $code-block-light-color-scheme-hljs-regexp-color,
3725
+ section-background: $code-block-light-color-scheme-hljs-section-background,
3726
+ section-color: $code-block-light-color-scheme-hljs-section-color,
3727
+ selector-attr-background: $code-block-light-color-scheme-hljs-selector-attr-background,
3728
+ selector-attr-color: $code-block-light-color-scheme-hljs-selector-attr-color,
3729
+ selector-class-background: $code-block-light-color-scheme-hljs-selector-class-background,
3730
+ selector-class-color: $code-block-light-color-scheme-hljs-selector-class-color,
3731
+ selector-id-background: $code-block-light-color-scheme-hljs-selector-id-background,
3732
+ selector-id-color: $code-block-light-color-scheme-hljs-selector-id-color,
3733
+ selector-pseudo-background: $code-block-light-color-scheme-hljs-selector-pseudo-background,
3734
+ selector-pseudo-color: $code-block-light-color-scheme-hljs-selector-pseudo-color,
3735
+ selector-tag-background: $code-block-light-color-scheme-hljs-selector-tag-background,
3736
+ selector-tag-color: $code-block-light-color-scheme-hljs-selector-tag-color,
3737
+ string-background: $code-block-light-color-scheme-hljs-string-background,
3738
+ string-color: $code-block-light-color-scheme-hljs-string-color,
3739
+ strong-background: $code-block-light-color-scheme-hljs-strong-background,
3740
+ strong-color: $code-block-light-color-scheme-hljs-strong-color,
3741
+ subst-background: $code-block-light-color-scheme-hljs-subst-background,
3742
+ subst-color: $code-block-light-color-scheme-hljs-subst-color,
3743
+ symbol-background: $code-block-light-color-scheme-hljs-symbol-background,
3744
+ symbol-color: $code-block-light-color-scheme-hljs-symbol-color,
3745
+ tag-background: $code-block-light-color-scheme-hljs-tag-background,
3746
+ tag-color: $code-block-light-color-scheme-hljs-tag-color,
3747
+ template-tag-background: $code-block-light-color-scheme-hljs-template-tag-background,
3748
+ template-tag-color: $code-block-light-color-scheme-hljs-template-tag-color,
3749
+ template-variable-background: $code-block-light-color-scheme-hljs-template-variable-background,
3750
+ template-variable-color: $code-block-light-color-scheme-hljs-template-variable-color,
3751
+ title-background: $code-block-light-color-scheme-hljs-title-background,
3752
+ title-color: $code-block-light-color-scheme-hljs-title-color,
3753
+ title-class-background: $code-block-light-color-scheme-hljs-title-class-background,
3754
+ title-class-color: $code-block-light-color-scheme-hljs-title-class-color,
3755
+ title-class-inherited-background: $code-block-light-color-scheme-hljs-title-class-inherited-background,
3756
+ title-class-inherited-color: $code-block-light-color-scheme-hljs-title-class-inherited-color,
3757
+ title-function-background: $code-block-light-color-scheme-hljs-title-function-background,
3758
+ title-function-color: $code-block-light-color-scheme-hljs-title-function-color,
3759
+ title-function-invoke-background: $code-block-light-color-scheme-hljs-title-function-invoke-background,
3760
+ title-function-invoke-color: $code-block-light-color-scheme-hljs-title-function-invoke-color,
3761
+ type-background: $code-block-light-color-scheme-hljs-type-background,
3762
+ type-color: $code-block-light-color-scheme-hljs-type-color,
3763
+ variable-background: $code-block-light-color-scheme-hljs-variable-background,
3764
+ variable-color: $code-block-light-color-scheme-hljs-variable-color,
3765
+ variable-constant-background: $code-block-light-color-scheme-hljs-variable-constant-background,
3766
+ variable-constant-color: $code-block-light-color-scheme-hljs-variable-constant-color,
3767
+ variable-language-background: $code-block-light-color-scheme-hljs-variable-language-background,
3768
+ variable-language-color: $code-block-light-color-scheme-hljs-variable-language-color
3769
+ )
3770
+ );
3771
+
3289
3772
  $datepicker: (
3290
3773
  state-today-color: $datepicker-body-light-color-scheme-states-today-color,
3291
3774
  state-selected-color: $datepicker-body-light-color-scheme-states-selected-color,
@@ -3640,6 +4123,7 @@ $md-typography: (
3640
4123
  button: $button,
3641
4124
  card: $card,
3642
4125
  checkbox: $checkbox,
4126
+ code-block: $code-block,
3643
4127
  datepicker: $datepicker,
3644
4128
  divider: $divider,
3645
4129
  dl: $dl,
@@ -3880,6 +4364,124 @@ $md-typography: (
3880
4364
  )
3881
4365
  );
3882
4366
 
4367
+ $code-block: (
4368
+ main-background: $code-block-dark-color-scheme-background,
4369
+ border: $code-block-dark-color-scheme-border,
4370
+ main-background-less-contrast: $code-block-dark-color-scheme-decoration-less-contrast-background,
4371
+ line-numbers-color: $code-block-dark-color-scheme-line-numbers-color,
4372
+ main-code-color: $code-block-dark-color-scheme-color,
4373
+
4374
+ actionbar: (
4375
+ bg: $code-block-dark-color-scheme-actionbar-background,
4376
+ bg-less-contrast: $code-block-dark-color-scheme-decoration-less-contrast-actionbar-background,
4377
+ ),
4378
+
4379
+ hljs: (
4380
+ addition-background: $code-block-dark-color-scheme-hljs-addition-background,
4381
+ addition-color: $code-block-dark-color-scheme-hljs-addition-color,
4382
+ attr-background: $code-block-dark-color-scheme-hljs-attr-background,
4383
+ attr-color: $code-block-dark-color-scheme-hljs-attr-color,
4384
+ attribute-background: $code-block-dark-color-scheme-hljs-attribute-background,
4385
+ attribute-color: $code-block-dark-color-scheme-hljs-attribute-color,
4386
+ built-in-background: $code-block-dark-color-scheme-hljs-built-in-background,
4387
+ built-in-color: $code-block-dark-color-scheme-hljs-built-in-color,
4388
+ bullet-background: $code-block-dark-color-scheme-hljs-bullet-background,
4389
+ bullet-color: $code-block-dark-color-scheme-hljs-bullet-color,
4390
+ char-escape-background: $code-block-dark-color-scheme-hljs-char-escape-background,
4391
+ char-escape-color: $code-block-dark-color-scheme-hljs-char-escape-color,
4392
+ class-background: $code-block-dark-color-scheme-hljs-class-background,
4393
+ class-color: $code-block-dark-color-scheme-hljs-class-color,
4394
+ code-background: $code-block-dark-color-scheme-hljs-code-background,
4395
+ code-color: $code-block-dark-color-scheme-hljs-code-color,
4396
+ comment-background: $code-block-dark-color-scheme-hljs-comment-background,
4397
+ comment-color: $code-block-dark-color-scheme-hljs-comment-color,
4398
+ deletion-background: $code-block-dark-color-scheme-hljs-deletion-background,
4399
+ deletion-color: $code-block-dark-color-scheme-hljs-deletion-color,
4400
+ doctag-background: $code-block-dark-color-scheme-hljs-doctag-background,
4401
+ doctag-color: $code-block-dark-color-scheme-hljs-doctag-color,
4402
+ emphasis-background: $code-block-dark-color-scheme-hljs-emphasis-background,
4403
+ emphasis-color: $code-block-dark-color-scheme-hljs-emphasis-color,
4404
+ formula-background: $code-block-dark-color-scheme-hljs-formula-background,
4405
+ formula-color: $code-block-dark-color-scheme-hljs-formula-color,
4406
+ function-background: $code-block-dark-color-scheme-hljs-function-background,
4407
+ function-color: $code-block-dark-color-scheme-hljs-function-color,
4408
+ keyword-background: $code-block-dark-color-scheme-hljs-keyword-background,
4409
+ keyword-color: $code-block-dark-color-scheme-hljs-keyword-color,
4410
+ link-background: $code-block-dark-color-scheme-hljs-link-background,
4411
+ link-color: $code-block-dark-color-scheme-hljs-link-color,
4412
+ literal-background: $code-block-dark-color-scheme-hljs-literal-background,
4413
+ literal-color: $code-block-dark-color-scheme-hljs-literal-color,
4414
+ meta-background: $code-block-dark-color-scheme-hljs-meta-background,
4415
+ meta-color: $code-block-dark-color-scheme-hljs-meta-color,
4416
+ meta-keyword-background: $code-block-dark-color-scheme-hljs-meta-keyword-background,
4417
+ meta-keyword-color: $code-block-dark-color-scheme-hljs-meta-keyword-color,
4418
+ meta-string-background: $code-block-dark-color-scheme-hljs-meta-string-background,
4419
+ meta-string-color: $code-block-dark-color-scheme-hljs-meta-string-color,
4420
+ meta-prompt-background: $code-block-dark-color-scheme-hljs-meta-prompt-background,
4421
+ meta-prompt-color: $code-block-dark-color-scheme-hljs-meta-prompt-color,
4422
+ name-background: $code-block-dark-color-scheme-hljs-name-background,
4423
+ name-color: $code-block-dark-color-scheme-hljs-name-color,
4424
+ number-background: $code-block-dark-color-scheme-hljs-number-background,
4425
+ number-color: $code-block-dark-color-scheme-hljs-number-color,
4426
+ operator-background: $code-block-dark-color-scheme-hljs-operator-background,
4427
+ operator-color: $code-block-dark-color-scheme-hljs-operator-color,
4428
+ params-background: $code-block-dark-color-scheme-hljs-params-background,
4429
+ params-color: $code-block-dark-color-scheme-hljs-params-color,
4430
+ property-background: $code-block-dark-color-scheme-hljs-property-background,
4431
+ property-color: $code-block-dark-color-scheme-hljs-property-color,
4432
+ punctuation-background: $code-block-dark-color-scheme-hljs-punctuation-background,
4433
+ punctuation-color: $code-block-dark-color-scheme-hljs-punctuation-color,
4434
+ quote-background: $code-block-dark-color-scheme-hljs-quote-background,
4435
+ quote-color: $code-block-dark-color-scheme-hljs-quote-color,
4436
+ regexp-background: $code-block-dark-color-scheme-hljs-regexp-background,
4437
+ regexp-color: $code-block-dark-color-scheme-hljs-regexp-color,
4438
+ section-background: $code-block-dark-color-scheme-hljs-section-background,
4439
+ section-color: $code-block-dark-color-scheme-hljs-section-color,
4440
+ selector-attr-background: $code-block-dark-color-scheme-hljs-selector-attr-background,
4441
+ selector-attr-color: $code-block-dark-color-scheme-hljs-selector-attr-color,
4442
+ selector-class-background: $code-block-dark-color-scheme-hljs-selector-class-background,
4443
+ selector-class-color: $code-block-dark-color-scheme-hljs-selector-class-color,
4444
+ selector-id-background: $code-block-dark-color-scheme-hljs-selector-id-background,
4445
+ selector-id-color: $code-block-dark-color-scheme-hljs-selector-id-color,
4446
+ selector-pseudo-background: $code-block-dark-color-scheme-hljs-selector-pseudo-background,
4447
+ selector-pseudo-color: $code-block-dark-color-scheme-hljs-selector-pseudo-color,
4448
+ selector-tag-background: $code-block-dark-color-scheme-hljs-selector-tag-background,
4449
+ selector-tag-color: $code-block-dark-color-scheme-hljs-selector-tag-color,
4450
+ string-background: $code-block-dark-color-scheme-hljs-string-background,
4451
+ string-color: $code-block-dark-color-scheme-hljs-string-color,
4452
+ strong-background: $code-block-dark-color-scheme-hljs-strong-background,
4453
+ strong-color: $code-block-dark-color-scheme-hljs-strong-color,
4454
+ subst-background: $code-block-dark-color-scheme-hljs-subst-background,
4455
+ subst-color: $code-block-dark-color-scheme-hljs-subst-color,
4456
+ symbol-background: $code-block-dark-color-scheme-hljs-symbol-background,
4457
+ symbol-color: $code-block-dark-color-scheme-hljs-symbol-color,
4458
+ tag-background: $code-block-dark-color-scheme-hljs-tag-background,
4459
+ tag-color: $code-block-dark-color-scheme-hljs-tag-color,
4460
+ template-tag-background: $code-block-dark-color-scheme-hljs-template-tag-background,
4461
+ template-tag-color: $code-block-dark-color-scheme-hljs-template-tag-color,
4462
+ template-variable-background: $code-block-dark-color-scheme-hljs-template-variable-background,
4463
+ template-variable-color: $code-block-dark-color-scheme-hljs-template-variable-color,
4464
+ title-background: $code-block-dark-color-scheme-hljs-title-background,
4465
+ title-color: $code-block-dark-color-scheme-hljs-title-color,
4466
+ title-class-background: $code-block-dark-color-scheme-hljs-title-class-background,
4467
+ title-class-color: $code-block-dark-color-scheme-hljs-title-class-color,
4468
+ title-class-inherited-background: $code-block-dark-color-scheme-hljs-title-class-inherited-background,
4469
+ title-class-inherited-color: $code-block-dark-color-scheme-hljs-title-class-inherited-color,
4470
+ title-function-background: $code-block-dark-color-scheme-hljs-title-function-background,
4471
+ title-function-color: $code-block-dark-color-scheme-hljs-title-function-color,
4472
+ title-function-invoke-background: $code-block-dark-color-scheme-hljs-title-function-invoke-background,
4473
+ title-function-invoke-color: $code-block-dark-color-scheme-hljs-title-function-invoke-color,
4474
+ type-background: $code-block-dark-color-scheme-hljs-type-background,
4475
+ type-color: $code-block-dark-color-scheme-hljs-type-color,
4476
+ variable-background: $code-block-dark-color-scheme-hljs-variable-background,
4477
+ variable-color: $code-block-dark-color-scheme-hljs-variable-color,
4478
+ variable-constant-background: $code-block-dark-color-scheme-hljs-variable-constant-background,
4479
+ variable-constant-color: $code-block-dark-color-scheme-hljs-variable-constant-color,
4480
+ variable-language-background: $code-block-dark-color-scheme-hljs-variable-language-background,
4481
+ variable-language-color: $code-block-dark-color-scheme-hljs-variable-language-color
4482
+ )
4483
+ );
4484
+
3883
4485
  $datepicker: (
3884
4486
  state-selected-today-color: $datepicker-body-dark-color-scheme-states-today-color,
3885
4487
  state-selected-color: $datepicker-body-dark-color-scheme-states-selected-color,
@@ -4234,6 +4836,7 @@ $md-typography: (
4234
4836
  button: $button,
4235
4837
  card: $card,
4236
4838
  checkbox: $checkbox,
4839
+ code-block: $code-block,
4237
4840
  datepicker: $datepicker,
4238
4841
  divider: $divider,
4239
4842
  dl: $dl,
@@ -4262,148 +4865,871 @@ $md-typography: (
4262
4865
  );
4263
4866
  }
4264
4867
 
4868
+ @function mc-components-theme($tokens, $scheme) {
4869
+ $alert: (
4870
+ error: (
4871
+ background: map-get($tokens, 'alert-#{$scheme}-error-background'),
4872
+ border: map-get($tokens, 'alert-#{$scheme}-error-border'),
4873
+ icon: map-get($tokens, 'alert-#{$scheme}-error-icon')
4874
+ ),
4875
+ warning: (
4876
+ background: map-get($tokens, 'alert-#{$scheme}-warning-background'),
4877
+ border: map-get($tokens, 'alert-#{$scheme}-warning-border'),
4878
+ icon: map-get($tokens, 'alert-#{$scheme}-warning-icon')
4879
+ ),
4880
+ success: (
4881
+ background: map-get($tokens, 'alert-#{$scheme}-success-background'),
4882
+ border: map-get($tokens, 'alert-#{$scheme}-success-border'),
4883
+ icon: map-get($tokens, 'alert-#{$scheme}-success-icon')
4884
+ ),
4885
+ info: (
4886
+ background: map-get($tokens, 'alert-#{$scheme}-info-background'),
4887
+ border: map-get($tokens, 'alert-#{$scheme}-info-border'),
4888
+ icon: map-get($tokens, 'alert-#{$scheme}-info-icon')
4889
+ ),
4890
+ default: (
4891
+ background: map-get($tokens, 'alert-#{$scheme}-default-background'),
4892
+ border: map-get($tokens, 'alert-#{$scheme}-default-border'),
4893
+ icon: map-get($tokens, 'alert-#{$scheme}-default-icon')
4894
+ ),
4895
+ );
4265
4896
 
4897
+ $popup: (
4898
+ shadow: map-get($tokens, 'popup-#{$scheme}-shadow'),
4899
+ border: map-get($tokens, 'popup-#{$scheme}-border'),
4266
4900
 
4267
- // Mixin that renders all of the core styles that depend on the theme.
4268
- @mixin mc-core-theme($theme) {
4269
- .mc-app-background {
4270
- $background: map-get($theme, background);
4271
- $foreground: map-get($theme, foreground);
4901
+ background: map-get($tokens, 'popup-#{$scheme}-background'),
4902
+ footer-background: map-get($tokens, 'popup-#{$scheme}-footer-background')
4903
+ );
4272
4904
 
4273
- background-color: mc-color($background, background);
4274
- color: mc-color($foreground, text);
4275
- }
4905
+ $badge: (
4906
+ primary_solid: (
4907
+ color: map-get($tokens, 'badge-#{$scheme}-solid-primary-color'),
4908
+ background: map-get($tokens, 'badge-#{$scheme}-solid-primary-background'),
4909
+ border: map-get($tokens, 'badge-#{$scheme}-solid-primary-border')
4910
+ ),
4911
+ second_solid: (
4912
+ color: map-get($tokens, 'badge-#{$scheme}-solid-second-color'),
4913
+ background: map-get($tokens, 'badge-#{$scheme}-solid-second-background'),
4914
+ border: map-get($tokens, 'badge-#{$scheme}-solid-second-border')
4915
+ ),
4916
+ light_solid: (
4917
+ color: map-get($tokens, 'badge-#{$scheme}-solid-light-color'),
4918
+ background: map-get($tokens, 'badge-#{$scheme}-solid-light-background'),
4919
+ border: map-get($tokens, 'badge-#{$scheme}-solid-light-background')
4920
+ ),
4921
+ info_solid: (
4922
+ color: map-get($tokens, 'badge-#{$scheme}-solid-info-color'),
4923
+ background: map-get($tokens, 'badge-#{$scheme}-solid-info-background'),
4924
+ border: map-get($tokens, 'badge-#{$scheme}-solid-info-border')
4925
+ ),
4926
+ success_solid: (
4927
+ color: map-get($tokens, 'badge-#{$scheme}-solid-success-color'),
4928
+ background: map-get($tokens, 'badge-#{$scheme}-solid-success-background'),
4929
+ border: map-get($tokens, 'badge-#{$scheme}-solid-success-border')
4930
+ ),
4931
+ warning_solid: (
4932
+ color: map-get($tokens, 'badge-#{$scheme}-solid-warning-color'),
4933
+ background: map-get($tokens, 'badge-#{$scheme}-solid-warning-background'),
4934
+ border: map-get($tokens, 'badge-#{$scheme}-solid-warning-border')
4935
+ ),
4936
+ error_solid: (
4937
+ color: map-get($tokens, 'badge-#{$scheme}-solid-error-color'),
4938
+ background: map-get($tokens, 'badge-#{$scheme}-solid-error-background'),
4939
+ border: map-get($tokens, 'badge-#{$scheme}-solid-error-border')
4940
+ ),
4941
+ transparent_solid: (
4942
+ color: map-get($tokens, 'badge-#{$scheme}-solid-transparent-color'),
4943
+ border: map-get($tokens, 'badge-#{$scheme}-solid-transparent-border'),
4944
+ background: map-get($tokens, 'badge-#{$scheme}-solid-transparent-background')
4945
+ ),
4946
+ primary_pastel: (
4947
+ color: map-get($tokens, 'badge-#{$scheme}-pastel-primary-color'),
4948
+ background: map-get($tokens, 'badge-#{$scheme}-pastel-primary-background'),
4949
+ border: map-get($tokens, 'badge-#{$scheme}-pastel-primary-border')
4950
+ ),
4951
+ info_pastel: (
4952
+ color: map-get($tokens, 'badge-#{$scheme}-pastel-info-color'),
4953
+ background: map-get($tokens, 'badge-#{$scheme}-pastel-info-background'),
4954
+ border: map-get($tokens, 'badge-#{$scheme}-pastel-info-border')
4955
+ ),
4956
+ success_pastel: (
4957
+ color: map-get($tokens, 'badge-#{$scheme}-pastel-success-color'),
4958
+ background: map-get($tokens, 'badge-#{$scheme}-pastel-success-background'),
4959
+ border: map-get($tokens, 'badge-#{$scheme}-pastel-success-border')
4960
+ ),
4961
+ warning_pastel: (
4962
+ color: map-get($tokens, 'badge-#{$scheme}-pastel-warning-color'),
4963
+ background: map-get($tokens, 'badge-#{$scheme}-pastel-warning-background'),
4964
+ border: map-get($tokens, 'badge-#{$scheme}-pastel-warning-border')
4965
+ ),
4966
+ error_pastel: (
4967
+ color: map-get($tokens, 'badge-#{$scheme}-pastel-error-color'),
4968
+ background: map-get($tokens, 'badge-#{$scheme}-pastel-error-background'),
4969
+ border: map-get($tokens, 'badge-#{$scheme}-pastel-error-border')
4970
+ ),
4971
+ );
4276
4972
 
4277
- .mc-theme-loaded-marker {
4278
- display: none;
4279
- }
4973
+ $button: (
4974
+ state-active_shadow: map-get($tokens, 'button-#{$scheme}-active-shadow'),
4280
4975
 
4281
- .mc-primary {
4282
- color: mc-color(map-get($theme, primary));
4283
- }
4976
+ primary: (
4977
+ color: map-get($tokens, 'button-#{$scheme}-primary-color'),
4978
+ border: map-get($tokens, 'button-#{$scheme}-primary-border'),
4979
+ background: map-get($tokens, 'button-#{$scheme}-primary-background'),
4980
+ icon: map-get($tokens, 'button-#{$scheme}-primary-icon'),
4284
4981
 
4285
- .mc-error {
4286
- color: mc-color(map-get($theme, error));
4287
- }
4982
+ active_border: map-get($tokens, 'button-#{$scheme}-primary-states-active-border'),
4983
+ active_background: map-get($tokens, 'button-#{$scheme}-primary-states-active-background')
4984
+ ),
4288
4985
 
4289
- .mc-warning {
4290
- color: mc-color(map-get($theme, warning));
4291
- }
4986
+ primary_transparent: (
4987
+ color: map-get($tokens, 'button-#{$scheme}-primary-transparent-color'),
4988
+ icon: map-get($tokens, 'button-#{$scheme}-primary-transparent-icon'),
4292
4989
 
4293
- .mc-success {
4294
- color: mc-color(map-get($theme, success));
4295
- }
4990
+ hover_color: map-get($tokens, 'button-#{$scheme}-primary-transparent-states-hover-color'),
4991
+ hover_icon: map-get($tokens, 'button-#{$scheme}-primary-transparent-states-hover-icon'),
4296
4992
 
4297
- .mc-info {
4298
- color: mc-color(map-get($theme, info));
4299
- }
4300
- }
4993
+ active_color: map-get($tokens, 'button-#{$scheme}-primary-transparent-states-active-color'),
4994
+ active_icon: map-get($tokens, 'button-#{$scheme}-primary-transparent-states-active-icon')
4995
+ ),
4301
4996
 
4302
- @function mc-contrast($palette, $hue) {
4303
- @return map-get(map-get($palette, contrast), $hue);
4304
- }
4997
+ second: (
4998
+ color: map-get($tokens, 'button-#{$scheme}-second-color'),
4999
+ border: map-get($tokens, 'button-#{$scheme}-second-border'),
5000
+ background: map-get($tokens, 'button-#{$scheme}-second-background'),
5001
+ icon: map-get($tokens, 'button-#{$scheme}-second-icon'),
4305
5002
 
4306
- @function mc-palette($base-palette, $default) {
4307
- $result: map_merge($base-palette, (default: $default));
5003
+ active_border: map-get($tokens, 'button-#{$scheme}-second-states-active-border'),
5004
+ active_background: map-get($tokens, 'button-#{$scheme}-second-states-active-background')
5005
+ ),
4308
5006
 
4309
- // For each hue in the palette, add a "-contrast" color to the map.
4310
- @each $hue, $color in $base-palette {
4311
- $result: map_merge($result, ('#{$hue}-contrast': mc-contrast($base-palette, $hue)));
4312
- }
5007
+ error: (
5008
+ color: map-get($tokens, 'button-#{$scheme}-error-color'),
5009
+ border: map-get($tokens, 'button-#{$scheme}-error-border'),
5010
+ background: map-get($tokens, 'button-#{$scheme}-error-background'),
5011
+ icon: map-get($tokens, 'button-#{$scheme}-error-icon'),
4313
5012
 
4314
- @return $result;
4315
- }
5013
+ active_border: map-get($tokens, 'button-#{$scheme}-error-states-active-border'),
5014
+ active_background: map-get($tokens, 'button-#{$scheme}-error-states-active-background')
5015
+ )
5016
+ );
4316
5017
 
4317
- @function mc-color($palette, $hue: default, $opacity: null) {
4318
- // If hueKey is a number between zero and one, then it actually contains an
4319
- // opacity value, so recall this function with the default hue and that given opacity.
4320
- @if type-of($hue) == number and $hue >= 0 and $hue <= 1 {
4321
- @return mc-color($palette, default, $hue);
4322
- }
5018
+ $card: (
5019
+ error: (
5020
+ vertical-line: map-get($tokens, 'card-#{$scheme}-error-vertical-line'),
5021
+ background: map-get($tokens, 'card-#{$scheme}-error-background'),
5022
+ shadow: map-get($tokens, 'card-#{$scheme}-error-shadow')
5023
+ ),
5024
+ warning: (
5025
+ vertical-line: map-get($tokens, 'card-#{$scheme}-warning-vertical-line'),
5026
+ background: map-get($tokens, 'card-#{$scheme}-warning-background'),
5027
+ shadow: map-get($tokens, 'card-#{$scheme}-warning-shadow')
5028
+ ),
5029
+ success: (
5030
+ vertical-line: map-get($tokens, 'card-#{$scheme}-success-vertical-line'),
5031
+ background: map-get($tokens, 'card-#{$scheme}-success-background'),
5032
+ shadow: map-get($tokens, 'card-#{$scheme}-success-shadow')
5033
+ ),
5034
+ info: (
5035
+ vertical-line: map-get($tokens, 'card-#{$scheme}-info-vertical-line'),
5036
+ background: map-get($tokens, 'card-#{$scheme}-info-background'),
5037
+ shadow: map-get($tokens, 'card-#{$scheme}-info-shadow')
5038
+ )
5039
+ );
4323
5040
 
4324
- $color: map-get($palette, $hue);
4325
- $opacity: if($opacity == null, opacity($color), $opacity);
5041
+ $checkbox: (
5042
+ default: (
5043
+ border: map-get($tokens, 'checkbox-#{$scheme}-default-border'),
5044
+ color: map-get($tokens, 'checkbox-#{$scheme}-default-color'),
5045
+ background: map-get($tokens, 'checkbox-#{$scheme}-default-background'),
4326
5046
 
4327
- @return rgba($color, $opacity);
4328
- }
5047
+ checked: (
5048
+ border: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-border'),
5049
+ background: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-background')
5050
+ ),
5051
+ focused: (
5052
+ border: map-get($tokens, 'checkbox-#{$scheme}-default-states-focused-border'),
5053
+ shadow: map-get($tokens, 'checkbox-#{$scheme}-default-states-focused-shadow')
5054
+ ),
5055
+ checked-focused: (
5056
+ border: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-focused-border'),
5057
+ background: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-focused-background'),
5058
+ shadow: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-focused-shadow'),
5059
+ outline: map-get($tokens, 'checkbox-#{$scheme}-default-states-checked-focused-outline')
5060
+ )
5061
+ ),
5062
+ error: (
5063
+ border: map-get($tokens, 'checkbox-#{$scheme}-error-border'),
5064
+ color: map-get($tokens, 'checkbox-#{$scheme}-error-color'),
5065
+ background: map-get($tokens, 'checkbox-#{$scheme}-error-background'),
4329
5066
 
4330
- $light-primary: mc-palette($light-color-scheme-primary-palette, $light-color-scheme-primary-default);
4331
- $light-second: mc-palette($light-color-scheme-second-palette, $light-color-scheme-second-default);
4332
- $light-error: mc-palette($light-color-scheme-error-palette, $light-color-scheme-error-default);
5067
+ checked: (
5068
+ border: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-border'),
5069
+ background: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-background'),
5070
+ ),
5071
+ focused: (
5072
+ border: map-get($tokens, 'checkbox-#{$scheme}-error-states-focused-border'),
5073
+ shadow: map-get($tokens, 'checkbox-#{$scheme}-error-states-focused-shadow'),
5074
+ ),
5075
+ checked-focused: (
5076
+ border: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-focused-border'),
5077
+ background: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-focused-background'),
5078
+ shadow: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-focused-shadow'),
5079
+ outline: map-get($tokens, 'checkbox-#{$scheme}-error-states-checked-focused-outline')
5080
+ )
5081
+ )
5082
+ );
4333
5083
 
4334
- $light-info: mc-palette($light-color-scheme-info-palette, $light-color-scheme-info-default);
4335
- $light-success: mc-palette($light-color-scheme-success-palette, $light-color-scheme-success-default);
4336
- $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-scheme-warning-default);
5084
+ $code-block: (
5085
+ main-background: map-get($tokens, 'code-block-#{$scheme}-background'),
5086
+ actionbar-background: map-get($tokens, 'code-block-#{$scheme}-actionbar-background'),
5087
+ border: map-get($tokens, 'code-block-#{$scheme}-border'),
5088
+ main-background-less-contrast: map-get($tokens, 'code-block-#{$scheme}-decoration-less-contrast-background'),
5089
+ line-numbers-color: map-get($tokens, 'code-block-#{$scheme}-line-numbers-color'),
5090
+ main-code-color: map-get($tokens, 'code-block-#{$scheme}-color'),
5091
+
5092
+ actionbar: (
5093
+ bg: map-get($tokens, 'code-block-#{$scheme}-actionbar-background'),
5094
+ bg-less-contrast: map-get($tokens, 'code-block-#{$scheme}-decoration-less-contrast-actionbar-background'),
5095
+ ),
4337
5096
 
4338
- @function mc-light-theme(
4339
- $primary: $light-primary,
4340
- $second: $light-second,
4341
- $error: $light-error,
4342
- $info: $light-info,
4343
- $success: $light-success,
4344
- $warning: $light-warning
4345
- ) {
4346
- $states: (
4347
- focused-color: $light-color-scheme-states-focused-color,
4348
- selected-color: $light-color-scheme-states-selected-color,
4349
- pressed-shadow: $light-color-scheme-states-pressed-shadow,
4350
- disabled-opacity: $light-color-scheme-states-disabled-opacity
5097
+ hljs: (
5098
+ addition-background: map-get($tokens, 'code-block-#{$scheme}-hljs-addition-background'),
5099
+ addition-color: map-get($tokens, 'code-block-#{$scheme}-hljs-addition-color'),
5100
+ attr-background: map-get($tokens, 'code-block-#{$scheme}-hljs-attr-background'),
5101
+ attr-color: map-get($tokens, 'code-block-#{$scheme}-hljs-attr-color'),
5102
+ attribute-background: map-get($tokens, 'code-block-#{$scheme}-hljs-attribute-background'),
5103
+ attribute-color: map-get($tokens, 'code-block-#{$scheme}-hljs-attribute-color'),
5104
+ built-in-background: map-get($tokens, 'code-block-#{$scheme}-hljs-built-in-background'),
5105
+ built-in-color: map-get($tokens, 'code-block-#{$scheme}-hljs-built-in-color'),
5106
+ bullet-background: map-get($tokens, 'code-block-#{$scheme}-hljs-bullet-background'),
5107
+ bullet-color: map-get($tokens, 'code-block-#{$scheme}-hljs-bullet-color'),
5108
+ char-escape-background: map-get($tokens, 'code-block-#{$scheme}-hljs-char-escape-background'),
5109
+ char-escape-color: map-get($tokens, 'code-block-#{$scheme}-hljs-char-escape-color'),
5110
+ class-background: map-get($tokens, 'code-block-#{$scheme}-hljs-class-background'),
5111
+ class-color: map-get($tokens, 'code-block-#{$scheme}-hljs-class-color'),
5112
+ code-background: map-get($tokens, 'code-block-#{$scheme}-hljs-code-background'),
5113
+ code-color: map-get($tokens, 'code-block-#{$scheme}-hljs-code-color'),
5114
+ comment-background: map-get($tokens, 'code-block-#{$scheme}-hljs-comment-background'),
5115
+ comment-color: map-get($tokens, 'code-block-#{$scheme}-hljs-comment-color'),
5116
+ deletion-background: map-get($tokens, 'code-block-#{$scheme}-hljs-deletion-background'),
5117
+ deletion-color: map-get($tokens, 'code-block-#{$scheme}-hljs-deletion-color'),
5118
+ doctag-background: map-get($tokens, 'code-block-#{$scheme}-hljs-doctag-background'),
5119
+ doctag-color: map-get($tokens, 'code-block-#{$scheme}-hljs-doctag-color'),
5120
+ emphasis-background: map-get($tokens, 'code-block-#{$scheme}-hljs-emphasis-background'),
5121
+ emphasis-color: map-get($tokens, 'code-block-#{$scheme}-hljs-emphasis-color'),
5122
+ formula-background: map-get($tokens, 'code-block-#{$scheme}-hljs-formula-background'),
5123
+ formula-color: map-get($tokens, 'code-block-#{$scheme}-hljs-formula-color'),
5124
+ function-background: map-get($tokens, 'code-block-#{$scheme}-hljs-function-background'),
5125
+ function-color: map-get($tokens, 'code-block-#{$scheme}-hljs-function-color'),
5126
+ keyword-background: map-get($tokens, 'code-block-#{$scheme}-hljs-keyword-background'),
5127
+ keyword-color: map-get($tokens, 'code-block-#{$scheme}-hljs-keyword-color'),
5128
+ link-background: map-get($tokens, 'code-block-#{$scheme}-hljs-link-background'),
5129
+ link-color: map-get($tokens, 'code-block-#{$scheme}-hljs-link-color'),
5130
+ literal-background: map-get($tokens, 'code-block-#{$scheme}-hljs-literal-background'),
5131
+ literal-color: map-get($tokens, 'code-block-#{$scheme}-hljs-literal-color'),
5132
+ meta-background: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-background'),
5133
+ meta-color: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-color'),
5134
+ meta-keyword-background: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-keyword-background'),
5135
+ meta-keyword-color: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-keyword-color'),
5136
+ meta-string-background: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-string-background'),
5137
+ meta-string-color: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-string-color'),
5138
+ meta-prompt-background: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-prompt-background'),
5139
+ meta-prompt-color: map-get($tokens, 'code-block-#{$scheme}-hljs-meta-prompt-color'),
5140
+ name-background: map-get($tokens, 'code-block-#{$scheme}-hljs-name-background'),
5141
+ name-color: map-get($tokens, 'code-block-#{$scheme}-hljs-name-color'),
5142
+ number-background: map-get($tokens, 'code-block-#{$scheme}-hljs-number-background'),
5143
+ number-color: map-get($tokens, 'code-block-#{$scheme}-hljs-number-color'),
5144
+ operator-background: map-get($tokens, 'code-block-#{$scheme}-hljs-operator-background'),
5145
+ operator-color: map-get($tokens, 'code-block-#{$scheme}-hljs-operator-color'),
5146
+ params-background: map-get($tokens, 'code-block-#{$scheme}-hljs-params-background'),
5147
+ params-color: map-get($tokens, 'code-block-#{$scheme}-hljs-params-color'),
5148
+ property-background: map-get($tokens, 'code-block-#{$scheme}-hljs-property-background'),
5149
+ property-color: map-get($tokens, 'code-block-#{$scheme}-hljs-property-color'),
5150
+ punctuation-background: map-get($tokens, 'code-block-#{$scheme}-hljs-punctuation-background'),
5151
+ punctuation-color: map-get($tokens, 'code-block-#{$scheme}-hljs-punctuation-color'),
5152
+ quote-background: map-get($tokens, 'code-block-#{$scheme}-hljs-quote-background'),
5153
+ quote-color: map-get($tokens, 'code-block-#{$scheme}-hljs-quote-color'),
5154
+ regexp-background: map-get($tokens, 'code-block-#{$scheme}-hljs-regexp-background'),
5155
+ regexp-color: map-get($tokens, 'code-block-#{$scheme}-hljs-regexp-color'),
5156
+ section-background: map-get($tokens, 'code-block-#{$scheme}-hljs-section-background'),
5157
+ section-color: map-get($tokens, 'code-block-#{$scheme}-hljs-section-color'),
5158
+ selector-attr-background: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-attr-background'),
5159
+ selector-attr-color: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-attr-color'),
5160
+ selector-class-background: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-class-background'),
5161
+ selector-class-color: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-class-color'),
5162
+ selector-id-background: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-id-background'),
5163
+ selector-id-color: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-id-color'),
5164
+ selector-pseudo-background: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-pseudo-background'),
5165
+ selector-pseudo-color: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-pseudo-color'),
5166
+ selector-tag-background: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-tag-background'),
5167
+ selector-tag-color: map-get($tokens, 'code-block-#{$scheme}-hljs-selector-tag-color'),
5168
+ string-background: map-get($tokens, 'code-block-#{$scheme}-hljs-string-background'),
5169
+ string-color: map-get($tokens, 'code-block-#{$scheme}-hljs-string-color'),
5170
+ strong-background: map-get($tokens, 'code-block-#{$scheme}-hljs-strong-background'),
5171
+ strong-color: map-get($tokens, 'code-block-#{$scheme}-hljs-strong-color'),
5172
+ subst-background: map-get($tokens, 'code-block-#{$scheme}-hljs-subst-background'),
5173
+ subst-color: map-get($tokens, 'code-block-#{$scheme}-hljs-subst-color'),
5174
+ symbol-background: map-get($tokens, 'code-block-#{$scheme}-hljs-symbol-background'),
5175
+ symbol-color: map-get($tokens, 'code-block-#{$scheme}-hljs-symbol-color'),
5176
+ tag-background: map-get($tokens, 'code-block-#{$scheme}-hljs-tag-background'),
5177
+ tag-color: map-get($tokens, 'code-block-#{$scheme}-hljs-tag-color'),
5178
+ template-tag-background: map-get($tokens, 'code-block-#{$scheme}-hljs-template-tag-background'),
5179
+ template-tag-color: map-get($tokens, 'code-block-#{$scheme}-hljs-template-tag-color'),
5180
+ template-variable-background: map-get($tokens, 'code-block-#{$scheme}-hljs-template-variable-background'),
5181
+ template-variable-color: map-get($tokens, 'code-block-#{$scheme}-hljs-template-variable-color'),
5182
+ title-background: map-get($tokens, 'code-block-#{$scheme}-hljs-title-background'),
5183
+ title-color: map-get($tokens, 'code-block-#{$scheme}-hljs-title-color'),
5184
+ title-class-background: map-get($tokens, 'code-block-#{$scheme}-hljs-title-class-background'),
5185
+ title-class-color: map-get($tokens, 'code-block-#{$scheme}-hljs-title-class-color'),
5186
+ title-class-inherited-background: map-get(
5187
+ $tokens, 'code-block-#{$scheme}-hljs-title-class-inherited-background'
5188
+ ),
5189
+ title-class-inherited-color: map-get($tokens, 'code-block-#{$scheme}-hljs-title-class-inherited-color'),
5190
+ title-function-background: map-get($tokens, 'code-block-#{$scheme}-hljs-title-function-background'),
5191
+ title-function-color: map-get($tokens, 'code-block-#{$scheme}-hljs-title-function-color'),
5192
+ title-function-invoke-background: map-get(
5193
+ $tokens, 'code-block-#{$scheme}-hljs-title-function-invoke-background'
5194
+ ),
5195
+ title-function-invoke-color: map-get($tokens, 'code-block-#{$scheme}-hljs-title-function-invoke-color'),
5196
+ type-background: map-get($tokens, 'code-block-#{$scheme}-hljs-type-background'),
5197
+ type-color: map-get($tokens, 'code-block-#{$scheme}-hljs-type-color'),
5198
+ variable-background: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-background'),
5199
+ variable-color: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-color'),
5200
+ variable-constant-background: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-constant-background'),
5201
+ variable-constant-color: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-constant-color'),
5202
+ variable-language-background: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-language-background'),
5203
+ variable-language-color: map-get($tokens, 'code-block-#{$scheme}-hljs-variable-language-color')r
5204
+ )
4351
5205
  );
4352
5206
 
4353
- $foreground: (
4354
- text: $light-color-scheme-foreground-text,
4355
- text-less-contrast: $light-color-scheme-foreground-text-less-contrast,
4356
- text-disabled: $light-color-scheme-foreground-text-disabled,
4357
- text-error: $light-color-scheme-foreground-text-error,
4358
- text-success: $light-color-scheme-foreground-text-success,
5207
+ $datepicker: (
5208
+ state-selected-today-color: map-get($tokens, 'datepicker-body-#{$scheme}-states-selected-today-color'),
5209
+ state-selected-color: map-get($tokens, 'datepicker-body-#{$scheme}-states-selected-color'),
5210
+ state-selected-background: map-get($tokens, 'datepicker-body-#{$scheme}-states-selected-background')
5211
+ );
4359
5212
 
4360
- divider: $light-color-scheme-foreground-divider,
4361
- border: $light-color-scheme-foreground-border,
4362
- icon: $light-color-scheme-foreground-icon,
5213
+ $divider: (
5214
+ color: map-get($tokens, 'divider-#{$scheme}-color')
4363
5215
  );
4364
5216
 
4365
- $background: (
4366
- background: $light-color-scheme-background-background,
4367
- background-disabled: $light-color-scheme-background-background-disabled,
4368
- background-less-contrast: $light-color-scheme-background-background-less-contrast,
4369
- background-under: $light-color-scheme-background-background-under,
5217
+ $dl: (
5218
+ dt: map-get($tokens, 'description-list-#{$scheme}-dt'),
5219
+ dd: map-get($tokens, 'description-list-#{$scheme}-dd')
5220
+ );
4370
5221
 
4371
- overlay-hover: $light-color-scheme-background-overlay-hover,
4372
- overlay-active: $light-color-scheme-background-overlay-active,
4373
- overlay-disabled: $light-color-scheme-background-overlay-disabled
5222
+ $form-field: (
5223
+ border: map-get($tokens, 'form-field-#{$scheme}-border'),
5224
+ background: map-get($tokens, 'form-field-#{$scheme}-background'),
5225
+
5226
+ state-hover-border: map-get($tokens, 'form-field-#{$scheme}-states-hover-border'),
5227
+ state-invalid-border: map-get($tokens, 'form-field-#{$scheme}-states-invalid-border'),
5228
+ state-invalid-background: map-get($tokens, 'form-field-#{$scheme}-states-invalid-background')
4374
5229
  );
4375
5230
 
4376
- $theme: (
4377
- is-dark: false,
5231
+ $form-field-password-hint: (
5232
+ text-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-text-color'),
5233
+ icon-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-text-color'),
4378
5234
 
4379
- primary: $primary,
4380
- second: $second,
4381
- error: $error,
5235
+ state-invalid-text-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-invalid-text-color'),
5236
+ state-invalid-icon-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-invalid-icon-color'),
4382
5237
 
4383
- foreground: $foreground,
4384
- background: $background,
5238
+ state-valid-text-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-valid-text-color'),
5239
+ state-valid-icon-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-valid-icon-color')
5240
+ );
4385
5241
 
4386
- warning: $warning,
4387
- success: $success,
4388
- info: $info,
5242
+ $forms: (
5243
+ label: map-get($tokens, 'forms-#{$scheme}-label'),
5244
+ legend: map-get($tokens, 'forms-#{$scheme}-legend'),
5245
+ );
4389
5246
 
4390
- states: $states
5247
+ $icon: (
5248
+ primary: (
5249
+ default: map-get($tokens, 'icon-#{$scheme}-primary-default'),
5250
+ state-hover: map-get($tokens, 'icon-#{$scheme}-primary-states-hover'),
5251
+ state-active: map-get($tokens, 'icon-#{$scheme}-primary-states-active'),
5252
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-primary-states-disabled')
5253
+ ),
5254
+ secondary: (
5255
+ default: map-get($tokens, 'icon-#{$scheme}-secondary-default'),
5256
+ state-hover: map-get($tokens, 'icon-#{$scheme}-secondary-states-hover'),
5257
+ state-active: map-get($tokens, 'icon-#{$scheme}-secondary-states-active'),
5258
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-secondary-states-disabled')
5259
+ ),
5260
+ error: (
5261
+ default: map-get($tokens, 'icon-#{$scheme}-error-default'),
5262
+ state-hover: map-get($tokens, 'icon-#{$scheme}-error-states-hover'),
5263
+ state-active: map-get($tokens, 'icon-#{$scheme}-error-states-active'),
5264
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-error-states-disabled')
5265
+ ),
5266
+ warning: (
5267
+ default: map-get($tokens, 'icon-#{$scheme}-warning-default'),
5268
+ state-hover: map-get($tokens, 'icon-#{$scheme}-warning-states-hover'),
5269
+ state-active: map-get($tokens, 'icon-#{$scheme}-warning-states-active'),
5270
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-warning-states-disabled')
5271
+ ),
5272
+ info: (
5273
+ default: map-get($tokens, 'icon-#{$scheme}-info-default'),
5274
+ state-hover: map-get($tokens, 'icon-#{$scheme}-info-states-hover'),
5275
+ state-active: map-get($tokens, 'icon-#{$scheme}-info-states-active'),
5276
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-info-states-disabled')
5277
+ ),
5278
+ success: (
5279
+ default: map-get($tokens, 'icon-#{$scheme}-success-default'),
5280
+ state-hover: map-get($tokens, 'icon-#{$scheme}-success-states-hover'),
5281
+ state-active: map-get($tokens, 'icon-#{$scheme}-success-states-active'),
5282
+ state-disabled: map-get($tokens, 'icon-#{$scheme}-success-states-disabled')
5283
+ )
4391
5284
  );
4392
5285
 
4393
- @return map_merge($theme, (components: mc-light-theme-components($theme)));
4394
- }
5286
+ $link: (
5287
+ text: map-get($tokens, 'link-#{$scheme}-text'),
5288
+ border-bottom: map-get($tokens, 'link-#{$scheme}-border-bottom'),
4395
5289
 
4396
- $dark-primary: mc-palette($dark-color-scheme-primary-palette, $dark-color-scheme-primary-default);
4397
- $dark-second: mc-palette($dark-color-scheme-second-palette, $dark-color-scheme-second-default);
4398
- $dark-error: mc-palette($dark-color-scheme-error-palette, $dark-color-scheme-error-default);
5290
+ state-visited-text: map-get($tokens, 'link-#{$scheme}-state-visited-text'),
5291
+ state-visited-border-bottom: map-get($tokens, 'link-#{$scheme}-state-visited-border-bottom'),
4399
5292
 
4400
- $dark-info: mc-palette($dark-color-scheme-info-palette, $dark-color-scheme-info-default);
4401
- $dark-success: mc-palette($dark-color-scheme-success-palette, $dark-color-scheme-success-default);
4402
- $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme-warning-default);
5293
+ state-hover-text: map-get($tokens, 'link-#{$scheme}-state-hover-text'),
5294
+ state-hover-border-bottom: map-get($tokens, 'link-#{$scheme}-state-hover-border-bottom'),
4403
5295
 
4404
- @function mc-dark-theme(
4405
- $primary: $dark-primary,
4406
- $second: $dark-second,
5296
+ state-active-text: map-get($tokens, 'link-#{$scheme}-state-active'),
5297
+
5298
+ state-focused-outline: map-get($tokens, 'link-#{$scheme}-state-focused-outline')
5299
+ );
5300
+
5301
+ $loader-overlay: (
5302
+ background: map-get($tokens, 'loader-overlay-#{$scheme}-background'),
5303
+
5304
+ text: map-get($tokens, 'loader-overlay-#{$scheme}-text'),
5305
+ caption: map-get($tokens, 'loader-overlay-#{$scheme}-caption'),
5306
+ );
5307
+
5308
+ $modal: (
5309
+ background-mask: map-get($tokens, 'modal-#{$scheme}-background-mask'),
5310
+ shadow: map-get($tokens, 'modal-#{$scheme}-shadow'),
5311
+ header-border: map-get($tokens, 'modal-header-#{$scheme}-border'),
5312
+ body-top-shadow: map-get($tokens, 'modal-#{$scheme}-body-top-shadow'),
5313
+ body-bottom-shadow: map-get($tokens, 'modal-#{$scheme}-body-bottom-shadow'),
5314
+ footer-border: map-get($tokens, 'modal-footer-#{$scheme}-border')
5315
+ );
5316
+
5317
+ $markdown: (
5318
+ h1-color: map-get($tokens, 'markdown-h1-#{$scheme}-color'),
5319
+ h2-color: map-get($tokens, 'markdown-h2-#{$scheme}-color'),
5320
+ h3-color: map-get($tokens, 'markdown-h3-#{$scheme}-color'),
5321
+ h4-color: map-get($tokens, 'markdown-h4-#{$scheme}-color'),
5322
+ h5-color: map-get($tokens, 'markdown-h5-#{$scheme}-color'),
5323
+ h6-color: map-get($tokens, 'markdown-h6-#{$scheme}-color'),
5324
+
5325
+ p-color: map-get($tokens, 'markdown-p-#{$scheme}-color'),
5326
+
5327
+ list-color: map-get($tokens, 'markdown-list-#{$scheme}-color'),
5328
+
5329
+ blockquote-text: map-get($tokens, 'markdown-blockquote-#{$scheme}-text'),
5330
+ blockquote-line: map-get($tokens, 'markdown-blockquote-#{$scheme}-line'),
5331
+ blockquote-background: map-get($tokens, 'markdown-blockquote-#{$scheme}-background'),
5332
+ blockquote-border: map-get($tokens, 'markdown-blockquote-#{$scheme}-border'),
5333
+
5334
+ code-text: map-get($tokens, 'markdown-code-#{$scheme}-text'),
5335
+ code-background: map-get($tokens, 'markdown-code-#{$scheme}-background'),
5336
+ code-border: map-get($tokens, 'markdown-code-#{$scheme}-border'),
5337
+
5338
+ link-text: map-get($tokens, 'markdown-link-#{$scheme}-text'),
5339
+ link-border-bottom: map-get($tokens, 'markdown-link-#{$scheme}-border-bottom'),
5340
+
5341
+ link-state-visited-text: map-get($tokens, 'markdown-link-#{$scheme}-state-visited-text'),
5342
+ link-state-visited-border-bottom: map-get($tokens, 'markdown-link-#{$scheme}-state-visited-border-bottom'),
5343
+
5344
+ link-state-hover-text: map-get($tokens, 'markdown-link-#{$scheme}-state-hover-text'),
5345
+ link-state-hover-border-bottom: map-get($tokens, 'markdown-link-#{$scheme}-state-hover-border-bottom'),
5346
+
5347
+ link-state-active-text: map-get($tokens, 'markdown-link-#{$scheme}-state-active'),
5348
+
5349
+ link-state-focused-outline: map-get($tokens, 'markdown-link-#{$scheme}-state-focused-outline'),
5350
+
5351
+ image-caption-text: map-get($tokens, 'markdown-image-#{$scheme}-caption-text'),
5352
+
5353
+ hr-color: map-get($tokens, 'markdown-hr-#{$scheme}-color'),
5354
+
5355
+ table-header: map-get($tokens, 'markdown-table-#{$scheme}-header'),
5356
+ table-body: map-get($tokens, 'markdown-table-#{$scheme}-body'),
5357
+ table-border: map-get($tokens, 'markdown-table-#{$scheme}-border')
5358
+ );
5359
+
5360
+ $navbar: (
5361
+ background: map-get($tokens, 'navbar-#{$scheme}-background'),
5362
+
5363
+ divider-background: map-get($tokens, 'navbar-#{$scheme}-divider-background')
5364
+ );
5365
+
5366
+ $navbar-item: (
5367
+ color: map-get($tokens, 'navbar-item-#{$scheme}-text'),
5368
+ icon-color: map-get($tokens, 'navbar-item-#{$scheme}-icon'),
5369
+
5370
+ state-active: map-get($tokens, 'navbar-item-#{$scheme}-states-active'),
5371
+ state-selected: map-get($tokens, 'navbar-item-#{$scheme}-states-selected'),
5372
+ state-hover: map-get($tokens, 'navbar-item-#{$scheme}-states-hover'),
5373
+ state-progress: map-get($tokens, 'navbar-item-#{$scheme}-states-progress'),
5374
+ state-disabled-opacity: map-get($tokens, 'navbar-item-#{$scheme}-states-disabled-opacity'),
5375
+ );
5376
+
5377
+ $popover: (
5378
+ background: map-get($tokens, 'popover-#{$scheme}-background'),
5379
+ text: map-get($tokens, 'popover-#{$scheme}-text'),
5380
+ shadow: map-get($tokens, 'popover-#{$scheme}-shadow'),
5381
+ border: map-get($tokens, 'popover-#{$scheme}-border'),
5382
+
5383
+ footer: (
5384
+ background: map-get($tokens, 'popover-footer-#{$scheme}-background'),
5385
+ border: map-get($tokens, 'popover-footer-#{$scheme}-border'),
5386
+ ),
5387
+
5388
+ header: (
5389
+ text: map-get($tokens, 'popover-header-#{$scheme}-text'),
5390
+ background: map-get($tokens, 'popover-header-#{$scheme}-background'),
5391
+ border: map-get($tokens, 'popover-header-#{$scheme}-border'),
5392
+ )
5393
+ );
5394
+
5395
+ $progress-bar: (
5396
+ background: map-get($tokens, 'progress-bar-#{$scheme}-background')
5397
+ );
5398
+
5399
+ $radio: (
5400
+ outer-circle_border: map-get($tokens, 'radio-#{$scheme}-outer-circle-border'),
5401
+ inner-circle_border: map-get($tokens, 'radio-#{$scheme}-inner-circle-border'),
5402
+ cap-color: map-get($tokens, 'radio-#{$scheme}-cap-color'),
5403
+
5404
+ outer-circle_checked-state_border: map-get($tokens, 'radio-#{$scheme}-states-checked-outer-circle-border'),
5405
+ outer-circle_focused-state_border: map-get($tokens, 'radio-#{$scheme}-states-focused-outer-circle-border'),
5406
+ outer-circle_focused-state_shadow: map-get($tokens, 'radio-#{$scheme}-states-focused-outer-circle-shadow'),
5407
+
5408
+ inner-circle_checked-state_border: map-get($tokens, 'radio-#{$scheme}-states-checked-inner-circle-border'),
5409
+ inner-circle_focused-state_shadow: map-get($tokens, 'radio-#{$scheme}-states-focused-inner-circle-shadow')
5410
+ );
5411
+
5412
+ $sidepanel: (
5413
+ border: map-get($tokens, 'sidepanel-#{$scheme}-border'),
5414
+ header-border: map-get($tokens, 'sidepanel-header-#{$scheme}-border'),
5415
+ footer-border: map-get($tokens, 'sidepanel-footer-#{$scheme}-border')
5416
+ );
5417
+
5418
+ $tabs: (
5419
+ border: map-get($tokens, 'tabs-#{$scheme}-border'),
5420
+ state-normal-icon: map-get($tokens, 'tabs-#{$scheme}-state-normal-icon'),
5421
+ state-normal-text: map-get($tokens, 'tabs-#{$scheme}-state-normal-text'),
5422
+
5423
+ state-hover-icon: map-get($tokens, 'tabs-#{$scheme}-state-hover-icon'),
5424
+ state-hover-text: map-get($tokens, 'tabs-#{$scheme}-state-hover-text'),
5425
+
5426
+ state-active-marker: map-get($tokens, 'tabs-#{$scheme}-state-active-marker-color'),
5427
+
5428
+ state-empty-icon: map-get($tokens, 'tabs-#{$scheme}-state-empty-icon'),
5429
+ state-empty-text: map-get($tokens, 'tabs-#{$scheme}-state-empty-text'),
5430
+
5431
+ state-disabled-icon: map-get($tokens, 'tabs-#{$scheme}-state-disabled-icon'),
5432
+ state-disabled-text: map-get($tokens, 'tabs-#{$scheme}-state-disabled-text'),
5433
+ state-disabled-marker-opacity: map-get($tokens, 'tabs-#{$scheme}-state-disabled-marker-opacity')
5434
+ );
5435
+
5436
+ $vertical-tabs: (
5437
+ state-normal-background: map-get($tokens, 'vertical-tabs-#{$scheme}-state-normal-background'),
5438
+ state-selected-background: map-get($tokens, 'vertical-tabs-#{$scheme}-state-selected-background'),
5439
+ state-hover-background: map-get($tokens, 'vertical-tabs-#{$scheme}-state-hover-background'),
5440
+ state-hover-selected-background: map-get($tokens, 'vertical-tabs-#{$scheme}-state-hover-selected-background')
5441
+ );
5442
+
5443
+ $tags: (
5444
+ primary: (
5445
+ border: map-get($tokens, 'tags-#{$scheme}-primary-border'),
5446
+ text: map-get($tokens, 'tags-#{$scheme}-primary-text'),
5447
+ background: map-get($tokens, 'tags-#{$scheme}-primary-background'),
5448
+ background_disabled: map-get($tokens, 'tags-#{$scheme}-primary-states-disabled-background'),
5449
+ border_disabled: map-get($tokens, 'tags-#{$scheme}-primary-states-disabled-border'),
5450
+ icon: map-get($tokens, 'tags-#{$scheme}-primary-icon'),
5451
+ icon_hovered: map-get($tokens, 'tags-#{$scheme}-primary-states-hover-icon'),
5452
+ focused: map-get($tokens, 'tags-#{$scheme}-primary-states-focused'),
5453
+ disabled: map-get($tokens, 'tags-#{$scheme}-primary-states-disabled-text')
5454
+ ),
5455
+ second: (
5456
+ border: map-get($tokens, 'tags-#{$scheme}-second-border'),
5457
+ text: map-get($tokens, 'tags-#{$scheme}-second-text'),
5458
+ background: map-get($tokens, 'tags-#{$scheme}-second-background'),
5459
+ background_disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-background'),
5460
+ border_disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-border'),
5461
+ icon: map-get($tokens, 'tags-#{$scheme}-second-icon'),
5462
+ icon_hovered: map-get($tokens, 'tags-#{$scheme}-second-states-hover-icon'),
5463
+ focused: map-get($tokens, 'tags-#{$scheme}-second-states-focused'),
5464
+ disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-text')
5465
+ ),
5466
+ error: (
5467
+ border: map-get($tokens, 'tags-#{$scheme}-error-border'),
5468
+ text: map-get($tokens, 'tags-#{$scheme}-error-text'),
5469
+ background: map-get($tokens, 'tags-#{$scheme}-error-background'),
5470
+ background_disabled: map-get($tokens, 'tags-#{$scheme}-error-states-disabled-background'),
5471
+ border_disabled: map-get($tokens, 'tags-#{$scheme}-error-states-disabled-border'),
5472
+ icon: map-get($tokens, 'tags-#{$scheme}-error-icon'),
5473
+ icon_hovered: map-get($tokens, 'tags-#{$scheme}-error-states-hover-icon'),
5474
+ focused: map-get($tokens, 'tags-#{$scheme}-error-states-focused'),
5475
+ disabled: map-get($tokens, 'tags-#{$scheme}-error-states-disabled-text')
5476
+ )
5477
+ );
5478
+
5479
+ $toggle: (
5480
+ border: map-get($tokens, 'toggle-#{$scheme}-border'),
5481
+ background: map-get($tokens, 'toggle-#{$scheme}-background'),
5482
+
5483
+ circle_border: map-get($tokens, 'toggle-#{$scheme}-circle-border'),
5484
+ circle_background: map-get($tokens, 'toggle-#{$scheme}-circle-background'),
5485
+
5486
+ focused: map-get($tokens, 'toggle-#{$scheme}-states-focused-shadow'),
5487
+
5488
+ primary: (
5489
+ checked_border: map-get($tokens, 'toggle-#{$scheme}-primary-checked-border-color'),
5490
+ checked_background: map-get($tokens, 'toggle-#{$scheme}-primary-checked-background')
5491
+ ),
5492
+ error: (
5493
+ checked_border: map-get($tokens, 'toggle-#{$scheme}-error-checked-border-color'),
5494
+ checked_background: map-get($tokens, 'toggle-#{$scheme}-error-checked-background')
5495
+ )
5496
+ );
5497
+
5498
+ $timezone: (
5499
+ text: map-get($tokens, 'timezone-option-#{$scheme}-text'),
5500
+ caption: map-get($tokens, 'timezone-option-#{$scheme}-caption')
5501
+ );
5502
+
5503
+ $toast: (
5504
+ background: map-get($tokens, 'toast-#{$scheme}-background'),
5505
+ border: map-get($tokens, 'toast-#{$scheme}-border'),
5506
+ text: map-get($tokens, 'toast-#{$scheme}-text'),
5507
+ text-caption: map-get($tokens, 'toast-#{$scheme}-text-caption'),
5508
+ shadow: map-get($tokens, 'toast-#{$scheme}-shadow'),
5509
+
5510
+ icon_info: map-get($tokens, 'toast-#{$scheme}-icon-info'),
5511
+ icon_error: map-get($tokens, 'toast-#{$scheme}-icon-error'),
5512
+ icon_success: map-get($tokens, 'toast-#{$scheme}-icon-success'),
5513
+ icon_warning: map-get($tokens, 'toast-#{$scheme}-icon-warning')
5514
+ );
5515
+
5516
+ $tooltip: (
5517
+ background: map-get($tokens, 'tooltip-#{$scheme}-background'),
5518
+ color: map-get($tokens, 'tooltip-#{$scheme}-text'),
5519
+ shadow: map-get($tokens, 'tooltip-#{$scheme}-shadow'),
5520
+
5521
+ warning: (
5522
+ background: map-get($tokens, 'tooltip-#{$scheme}-warning-background'),
5523
+ color: map-get($tokens, 'tooltip-#{$scheme}-warning-text'),
5524
+ border-color: map-get($tokens, 'tooltip-#{$scheme}-warning-border')
5525
+ ),
5526
+ extended: (
5527
+ background: map-get($tokens, 'extended-tooltip-#{$scheme}-background'),
5528
+ color: map-get($tokens, 'extended-tooltip-#{$scheme}-text'),
5529
+ border-color: map-get($tokens, 'extended-tooltip-#{$scheme}-border'),
5530
+
5531
+ header-background: map-get($tokens, 'extended-tooltip-header-#{$scheme}-background'),
5532
+ header-color: map-get($tokens, 'extended-tooltip-header-#{$scheme}-text'),
5533
+ header-border-color: map-get($tokens, 'extended-tooltip-header-#{$scheme}-border')
5534
+ )
5535
+ );
5536
+
5537
+ $scrollbar: (
5538
+ track: map-get($tokens, 'scrollbar-#{$scheme}-track'),
5539
+ thumb: (
5540
+ normal: map-get($tokens, 'scrollbar-#{$scheme}-thumb-normal'),
5541
+ hover: map-get($tokens, 'scrollbar-#{$scheme}-thumb-hover'),
5542
+ active: map-get($tokens, 'scrollbar-#{$scheme}-thumb-active'),
5543
+ disabled: map-get($tokens, 'scrollbar-#{$scheme}-thumb-disabled')
5544
+ ),
5545
+ arrow: (
5546
+ normal: map-get($tokens, 'scrollbar-#{$scheme}-arrow-normal'),
5547
+ disabled: map-get($tokens, 'scrollbar-#{$scheme}-arrow-disabled'),
5548
+ background: map-get($tokens, 'scrollbar-#{$scheme}-arrow-background')
5549
+ ),
5550
+ corner-background: map-get($tokens, 'scrollbar-#{$scheme}-corner-background'),
5551
+ resizer-background: map-get($tokens, 'scrollbar-#{$scheme}-resizer-background')
5552
+ );
5553
+
5554
+ @return (
5555
+ alert: $alert,
5556
+ popup: $popup,
5557
+ badge: $badge,
5558
+ button: $button,
5559
+ card: $card,
5560
+ checkbox: $checkbox,
5561
+ code-block: $code-block,
5562
+ datepicker: $datepicker,
5563
+ divider: $divider,
5564
+ dl: $dl,
5565
+ form-field: $form-field,
5566
+ form-field-password-hint: $form-field-password-hint,
5567
+ forms: $forms,
5568
+ icon: $icon,
5569
+ link: $link,
5570
+ loader-overlay: $loader-overlay,
5571
+ modal: $modal,
5572
+ markdown: $markdown,
5573
+ navbar: $navbar,
5574
+ navbar-item: $navbar-item,
5575
+ popover: $popover,
5576
+ progress-bar: $progress-bar,
5577
+ radio: $radio,
5578
+ sidepanel: $sidepanel,
5579
+ tabs: $tabs,
5580
+ vertical-tabs: $vertical-tabs,
5581
+ tags: $tags,
5582
+ timezone: $timezone,
5583
+ toast: $toast,
5584
+ toggle: $toggle,
5585
+ tooltip: $tooltip,
5586
+ scrollbar: $scrollbar
5587
+ );
5588
+ }
5589
+
5590
+
5591
+
5592
+ @function mc-contrast($palette, $hue) {
5593
+ @return map-get(map-get($palette, contrast), $hue);
5594
+ }
5595
+
5596
+ @function mc-palette($base-palette, $default) {
5597
+ $result: map_merge($base-palette, (default: $default));
5598
+
5599
+ // For each hue in the palette, add a "-contrast" color to the map.
5600
+ @each $hue, $color in $base-palette {
5601
+ $result: map_merge($result, ('#{$hue}-contrast': mc-contrast($base-palette, $hue)));
5602
+ }
5603
+
5604
+ @return $result;
5605
+ }
5606
+
5607
+ @function mc-color($palette, $hue: default, $opacity: null) {
5608
+ // If hueKey is a number between zero and one, then it actually contains an
5609
+ // opacity value, so recall this function with the default hue and that given opacity.
5610
+ @if type-of($hue) == number and $hue >= 0 and $hue <= 1 {
5611
+ @return mc-color($palette, default, $hue);
5612
+ }
5613
+
5614
+ $color: map-get($palette, $hue);
5615
+ $opacity: if($opacity == null, opacity($color), $opacity);
5616
+
5617
+ @return rgba($color, $opacity);
5618
+ }
5619
+
5620
+ // Mixin that renders all of the core styles that depend on the theme.
5621
+ @mixin mc-core-theme($theme) {
5622
+ .mc-app-background {
5623
+ $background: map-get($theme, background);
5624
+ $foreground: map-get($theme, foreground);
5625
+
5626
+ background-color: mc-color($background, background);
5627
+ color: mc-color($foreground, text);
5628
+ }
5629
+
5630
+ .mc-theme-loaded-marker {
5631
+ display: none;
5632
+ }
5633
+
5634
+ .mc-primary {
5635
+ color: mc-color(map-get($theme, primary));
5636
+ }
5637
+
5638
+ .mc-error {
5639
+ color: mc-color(map-get($theme, error));
5640
+ }
5641
+
5642
+ .mc-warning {
5643
+ color: mc-color(map-get($theme, warning));
5644
+ }
5645
+
5646
+ .mc-success {
5647
+ color: mc-color(map-get($theme, success));
5648
+ }
5649
+
5650
+ .mc-info {
5651
+ color: mc-color(map-get($theme, info));
5652
+ }
5653
+ }
5654
+
5655
+
5656
+ $light-primary: mc-palette($light-color-scheme-primary-palette, $light-color-scheme-primary-default);
5657
+ $light-second: mc-palette($light-color-scheme-second-palette, $light-color-scheme-second-default);
5658
+ $light-error: mc-palette($light-color-scheme-error-palette, $light-color-scheme-error-default);
5659
+
5660
+ $light-info: mc-palette($light-color-scheme-info-palette, $light-color-scheme-info-default);
5661
+ $light-success: mc-palette($light-color-scheme-success-palette, $light-color-scheme-success-default);
5662
+ $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-scheme-warning-default);
5663
+
5664
+ @function mc-light-theme_import(
5665
+ $primary: $light-primary,
5666
+ $second: $light-second,
5667
+ $error: $light-error,
5668
+ $info: $light-info,
5669
+ $success: $light-success,
5670
+ $warning: $light-warning
5671
+ ) {
5672
+ $states: (
5673
+ focused-color: $light-color-scheme-states-focused-color,
5674
+ selected-color: $light-color-scheme-states-selected-color,
5675
+ pressed-shadow: $light-color-scheme-states-pressed-shadow,
5676
+ disabled-opacity: $light-color-scheme-states-disabled-opacity
5677
+ );
5678
+
5679
+ $foreground: (
5680
+ text: $light-color-scheme-foreground-text,
5681
+ text-less-contrast: $light-color-scheme-foreground-text-less-contrast,
5682
+ text-disabled: $light-color-scheme-foreground-text-disabled,
5683
+ text-error: $light-color-scheme-foreground-text-error,
5684
+ text-success: $light-color-scheme-foreground-text-success,
5685
+
5686
+ divider: $light-color-scheme-foreground-divider,
5687
+ border: $light-color-scheme-foreground-border,
5688
+ icon: $light-color-scheme-foreground-icon,
5689
+ );
5690
+
5691
+ $background: (
5692
+ background: $light-color-scheme-background-background,
5693
+ background-disabled: $light-color-scheme-background-background-disabled,
5694
+ background-less-contrast: $light-color-scheme-background-background-less-contrast,
5695
+ background-under: $light-color-scheme-background-background-under,
5696
+
5697
+ overlay-hover: $light-color-scheme-background-overlay-hover,
5698
+ overlay-active: $light-color-scheme-background-overlay-active,
5699
+ overlay-disabled: $light-color-scheme-background-overlay-disabled
5700
+ );
5701
+
5702
+ $theme: (
5703
+ is-dark: false,
5704
+
5705
+ primary: $primary,
5706
+ second: $second,
5707
+ error: $error,
5708
+
5709
+ foreground: $foreground,
5710
+ background: $background,
5711
+
5712
+ warning: $warning,
5713
+ success: $success,
5714
+ info: $info,
5715
+
5716
+ states: $states
5717
+ );
5718
+
5719
+ @return map_merge($theme, (components: mc-light-theme-components($theme)));
5720
+ }
5721
+
5722
+ $dark-primary: mc-palette($dark-color-scheme-primary-palette, $dark-color-scheme-primary-default);
5723
+ $dark-second: mc-palette($dark-color-scheme-second-palette, $dark-color-scheme-second-default);
5724
+ $dark-error: mc-palette($dark-color-scheme-error-palette, $dark-color-scheme-error-default);
5725
+
5726
+ $dark-info: mc-palette($dark-color-scheme-info-palette, $dark-color-scheme-info-default);
5727
+ $dark-success: mc-palette($dark-color-scheme-success-palette, $dark-color-scheme-success-default);
5728
+ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme-warning-default);
5729
+
5730
+ @function mc-dark-theme_import(
5731
+ $primary: $dark-primary,
5732
+ $second: $dark-second,
4407
5733
  $error: $dark-error,
4408
5734
  $info: $dark-info,
4409
5735
  $success: $dark-success,
@@ -4460,6 +5786,95 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
4460
5786
  }
4461
5787
 
4462
5788
 
5789
+ @function _theme_states($tokens, $scheme) {
5790
+ @return (
5791
+ focused-color: map-get($tokens, '#{$scheme}-states-focused-color'),
5792
+ selected-color: map-get($tokens, '#{$scheme}-states-selected-color'),
5793
+ pressed-shadow: map-get($tokens, '#{$scheme}-states-pressed-shadow'),
5794
+ disabled-opacity: map-get($tokens, '#{$scheme}-states-disabled-opacity')
5795
+ );
5796
+ }
5797
+
5798
+ @function _theme_foreground($tokens, $scheme) {
5799
+ @return (
5800
+ text: map-get($tokens, '#{$scheme}-foreground-text'),
5801
+ text-less-contrast: map-get($tokens, '#{$scheme}-foreground-text-less-contrast'),
5802
+ text-disabled: map-get($tokens, '#{$scheme}-foreground-text-disabled'),
5803
+ text-error: map-get($tokens, '#{$scheme}-foreground-text-error'),
5804
+ text-success: map-get($tokens, '#{$scheme}-foreground-text-success'),
5805
+
5806
+ divider: map-get($tokens, '#{$scheme}-foreground-divider'),
5807
+ border: map-get($tokens, '#{$scheme}-foreground-border'),
5808
+ icon: map-get($tokens, '#{$scheme}-foreground-icon'),
5809
+ );
5810
+ }
5811
+
5812
+ @function _theme_background($tokens, $scheme) {
5813
+ @return (
5814
+ background: map-get($tokens, '#{$scheme}-background-background'),
5815
+ background-disabled: map-get($tokens, '#{$scheme}-background-background-disabled'),
5816
+ background-less-contrast: map-get($tokens, '#{$scheme}-background-background-less-contrast'),
5817
+ background-under: map-get($tokens, '#{$scheme}-background-background-under'),
5818
+
5819
+ overlay-hover: map-get($tokens, '#{$scheme}-background-overlay-hover'),
5820
+ overlay-active: map-get($tokens, '#{$scheme}-background-overlay-active'),
5821
+ overlay-disabled: map-get($tokens, '#{$scheme}-background-overlay-disabled')
5822
+ );
5823
+ }
5824
+
5825
+ @function _theme_palette($tokens, $scheme, $name) {
5826
+ @return mc-palette(
5827
+ map-get($tokens, '#{$scheme}-#{$name}-palette'), map-get($tokens, '#{$scheme}-#{$name}-default')
5828
+ )
5829
+ }
5830
+
5831
+ @function mc-light-theme($tokens) {
5832
+ $scheme: 'light-color-scheme';
5833
+
5834
+ @return (
5835
+ is-dark: false,
5836
+
5837
+ background: _theme_background($tokens, $scheme),
5838
+ foreground: _theme_foreground($tokens, $scheme),
5839
+
5840
+ primary: _theme_palette($tokens, $scheme, primary),
5841
+ second: _theme_palette($tokens, $scheme, second),
5842
+ error: _theme_palette($tokens, $scheme, error),
5843
+
5844
+ warning: _theme_palette($tokens, $scheme, warning),
5845
+ success: _theme_palette($tokens, $scheme, success),
5846
+ info: _theme_palette($tokens, $scheme, info),
5847
+
5848
+ states: _theme_states($tokens, $scheme),
5849
+
5850
+ components: mc-components-theme($tokens, $scheme)
5851
+ );
5852
+ }
5853
+
5854
+ @function mc-dark-theme($tokens) {
5855
+ $scheme: 'dark-color-scheme';
5856
+
5857
+ @return (
5858
+ is-dark: true,
5859
+
5860
+ background: _theme_background($tokens, $scheme),
5861
+ foreground: _theme_foreground($tokens, $scheme),
5862
+
5863
+ primary: _theme_palette($tokens, $scheme, primary),
5864
+ second: _theme_palette($tokens, $scheme, second),
5865
+ error: _theme_palette($tokens, $scheme, error),
5866
+
5867
+ warning: _theme_palette($tokens, $scheme, warning),
5868
+ success: _theme_palette($tokens, $scheme, success),
5869
+ info: _theme_palette($tokens, $scheme, info),
5870
+
5871
+ states: _theme_states($tokens, $scheme),
5872
+
5873
+ components: mc-components-theme($tokens, $scheme)
5874
+ );
5875
+ }
5876
+
5877
+
4463
5878
  @function mc-typography-level(
4464
5879
  $font-size,
4465
5880
  $line-height: $font-size,
@@ -5317,6 +6732,335 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5317
6732
 
5318
6733
 
5319
6734
 
6735
+ @mixin mc-code-block-theme($theme) {
6736
+ $code-block: map-get(map-get($theme, components), code-block);
6737
+
6738
+ .mc-code-block {
6739
+ background-color: map-get($code-block, main-background);
6740
+ border-color: map-get($code-block, border);
6741
+
6742
+ .hljs {
6743
+ $hljs: map-get($code-block, hljs);
6744
+
6745
+ display: block;
6746
+ overflow-x: auto;
6747
+
6748
+ &-addition {
6749
+ background-color: map-get($hljs, addition-background);
6750
+ color: map-get($hljs, addition-color);
6751
+ }
6752
+
6753
+ &-attr {
6754
+ background-color: map-get($hljs, attr-background);
6755
+ color: map-get($hljs, attr-color);
6756
+ }
6757
+
6758
+ &-attribute {
6759
+ background-color: map-get($hljs, attribute-background);
6760
+ color: map-get($hljs, attribute-color);
6761
+ }
6762
+
6763
+ &-built_in {
6764
+ background-color: map-get($hljs, built_in-background);
6765
+ color: map-get($hljs, built_in-color);
6766
+ }
6767
+
6768
+ &-bullet {
6769
+ background-color: map-get($hljs, bullet-background);
6770
+ color: map-get($hljs, bullet-color);
6771
+ }
6772
+
6773
+ &-char-escape {
6774
+ background-color: map-get($hljs, char-escape-background);
6775
+ color: map-get($hljs, char-escape-color);
6776
+ }
6777
+
6778
+ &-class {
6779
+ background-color: map-get($hljs, class-background);
6780
+ color: map-get($hljs, class-color);
6781
+ }
6782
+
6783
+ &-code {
6784
+ background-color: map-get($hljs, code-background);
6785
+ color: map-get($hljs, code-color);
6786
+ }
6787
+
6788
+ &-comment {
6789
+ background-color: map-get($hljs, comment-background);
6790
+ color: map-get($hljs, comment-color);
6791
+ }
6792
+
6793
+ &-deletion {
6794
+ background-color: map-get($hljs, deletion-background);
6795
+ color: map-get($hljs, deletion-color);
6796
+ }
6797
+
6798
+ &-doctag {
6799
+ background-color: map-get($hljs, doctag-background);
6800
+ color: map-get($hljs, doctag-color);
6801
+ }
6802
+
6803
+ &-emphasis {
6804
+ background-color: map-get($hljs, emphasis-background);
6805
+ color: map-get($hljs, emphasis-color);
6806
+ }
6807
+
6808
+ &-formula {
6809
+ background-color: map-get($hljs, formula-background);
6810
+ color: map-get($hljs, formula-color);
6811
+ }
6812
+
6813
+ &-function {
6814
+ background-color: map-get($hljs, function-background);
6815
+ color: map-get($hljs, function-color);
6816
+ }
6817
+
6818
+ &-keyword {
6819
+ background-color: map-get($hljs, keyword-background);
6820
+ color: map-get($hljs, keyword-color);
6821
+ }
6822
+
6823
+ &-link {
6824
+ background-color: map-get($hljs, link-background);
6825
+ color: map-get($hljs, link-color);
6826
+ }
6827
+
6828
+ &-literal {
6829
+ background-color: map-get($hljs, literal-background);
6830
+ color: map-get($hljs, literal-color);
6831
+ }
6832
+
6833
+ &-meta {
6834
+ background-color: map-get($hljs, meta-background);
6835
+ color: map-get($hljs, meta-color);
6836
+ }
6837
+
6838
+ &-meta-keyword {
6839
+ background-color: map-get($hljs, meta-keyword-background);
6840
+ color: map-get($hljs, meta-keyword-color);
6841
+ }
6842
+
6843
+ &-meta-string {
6844
+ background-color: map-get($hljs, meta-string-background);
6845
+ color: map-get($hljs, meta-string-color);
6846
+ }
6847
+
6848
+ &-meta-prompt {
6849
+ background-color: map-get($hljs, meta-prompt-background);
6850
+ color: map-get($hljs, meta-prompt-color);
6851
+ }
6852
+
6853
+ &-name {
6854
+ background-color: map-get($hljs, name-background);
6855
+ color: map-get($hljs, name-color);
6856
+ }
6857
+
6858
+ &-number {
6859
+ background-color: map-get($hljs, number-background);
6860
+ color: map-get($hljs, number-color);
6861
+ }
6862
+
6863
+ &-operator {
6864
+ background-color: map-get($hljs, operator-background);
6865
+ color: map-get($hljs, operator-color);
6866
+ }
6867
+
6868
+ &-params {
6869
+ background-color: map-get($hljs, params-background);
6870
+ color: map-get($hljs, params-color);
6871
+ }
6872
+
6873
+ &-property {
6874
+ background-color: map-get($hljs, property-background);
6875
+ color: map-get($hljs, property-color);
6876
+ }
6877
+
6878
+ &-punctuation {
6879
+ background-color: map-get($hljs, punctuation-background);
6880
+ color: map-get($hljs, punctuation-color);
6881
+ }
6882
+
6883
+ &-quote {
6884
+ background-color: map-get($hljs, quote-background);
6885
+ color: map-get($hljs, quote-color);
6886
+ }
6887
+
6888
+ &-regexp {
6889
+ background-color: map-get($hljs, regexp-background);
6890
+ color: map-get($hljs, regexp-color);
6891
+ }
6892
+
6893
+ &-section {
6894
+ background-color: map-get($hljs, section-background);
6895
+ color: map-get($hljs, section-color);
6896
+ }
6897
+
6898
+ &-selector-attr {
6899
+ background-color: map-get($hljs, selector-attr-background);
6900
+ color: map-get($hljs, selector-attr-color);
6901
+ }
6902
+
6903
+ &-selector-class {
6904
+ background-color: map-get($hljs, selector-class-background);
6905
+ color: map-get($hljs, selector-class-color);
6906
+ }
6907
+
6908
+ &-selector-id {
6909
+ background-color: map-get($hljs, selector-id-background);
6910
+ color: map-get($hljs, selector-id-color);
6911
+ }
6912
+
6913
+ &-selector-pseudo {
6914
+ background-color: map-get($hljs, selector-pseudo-background);
6915
+ color: map-get($hljs, selector-pseudo-color);
6916
+ }
6917
+
6918
+ &-selector-tag {
6919
+ background-color: map-get($hljs, selector-tag-background);
6920
+ color: map-get($hljs, selector-tag-color);
6921
+ }
6922
+
6923
+ &-string {
6924
+ background-color: map-get($hljs, string-background);
6925
+ color: map-get($hljs, string-color);
6926
+ }
6927
+
6928
+ &-strong {
6929
+ background-color: map-get($hljs, strong-background);
6930
+ color: map-get($hljs, strong-color);
6931
+ }
6932
+
6933
+ &-subst {
6934
+ background-color: map-get($hljs, subst-background);
6935
+ color: map-get($hljs, subst-color);
6936
+ }
6937
+
6938
+ &-symbol {
6939
+ background-color: map-get($hljs, symbol-background);
6940
+ color: map-get($hljs, symbol-color);
6941
+ }
6942
+
6943
+ &-tag {
6944
+ background-color: map-get($hljs, tag-background);
6945
+ color: map-get($hljs, tag-color);
6946
+ }
6947
+
6948
+ &-template-tag {
6949
+ background-color: map-get($hljs, template-tag-background);
6950
+ color: map-get($hljs, template-tag-color);
6951
+ }
6952
+
6953
+ &-template-variable {
6954
+ background-color: map-get($hljs, template-variable-background);
6955
+ color: map-get($hljs, template-variable-color);
6956
+ }
6957
+
6958
+ &-title {
6959
+ background-color: map-get($hljs, title-background);
6960
+ color: map-get($hljs, title-color);
6961
+ }
6962
+
6963
+ &-title-class {
6964
+ background-color: map-get($hljs, title-class-background);
6965
+ color: map-get($hljs, title-class-color);
6966
+ }
6967
+
6968
+ &-title-class-inherited {
6969
+ background-color: map-get($hljs, title-class-inherited-background);
6970
+ color: map-get($hljs, title-class-inherited-color);
6971
+ }
6972
+
6973
+ &-title-function {
6974
+ background-color: map-get($hljs, title-function-background);
6975
+ color: map-get($hljs, title-function-color);
6976
+ }
6977
+
6978
+ &-title-function-invoke {
6979
+ background-color: map-get($hljs, title-function-invoke-background);
6980
+ color: map-get($hljs, title-function-invoke-color);
6981
+ }
6982
+
6983
+ &-type {
6984
+ background-color: map-get($hljs, type-background);
6985
+ color: map-get($hljs, type-color);
6986
+ }
6987
+
6988
+ &-variable {
6989
+ background-color: map-get($hljs, variable-background);
6990
+ color: map-get($hljs, variable-color);
6991
+ }
6992
+
6993
+ &-variable-constant {
6994
+ background-color: map-get($hljs, variable-constant-background);
6995
+ color: map-get($hljs, variable-constant-color);
6996
+ }
6997
+
6998
+ &-variable-language {
6999
+ background-color: map-get($hljs, variable-language-background);
7000
+ color: map-get($hljs, variable-language-color);
7001
+ }
7002
+
7003
+ &-ln-n {
7004
+ color: map-get($code-block, line-numbers-color);
7005
+ }
7006
+
7007
+ &-line-numbers {
7008
+ color: map-get($code-block, main-code-color);
7009
+ }
7010
+ }
7011
+
7012
+ &.mc-code-block_less-contrast {
7013
+ background-color: map-get($code-block, main-background-less-contrast);
7014
+ }
7015
+
7016
+ &.mc-code-block_single-file {
7017
+ .mc-tab-label {
7018
+ user-select: text !important;
7019
+ color: inherit !important;
7020
+ }
7021
+ }
7022
+
7023
+ .mc-tab-group:after {
7024
+ background: map-get($code-block, border);
7025
+ }
7026
+
7027
+ .mc-tab-header {
7028
+ & .mc-tab-label.mc-tab-label_horizontal,
7029
+ & .mc-tab-header__pagination {
7030
+ border-bottom-color: transparent;
7031
+ }
7032
+ }
7033
+
7034
+ .mc-code-block__show-more {
7035
+ border-top-color: map-get($code-block, border) !important;
7036
+ }
7037
+ }
7038
+
7039
+ .mc-code-block-actionbar {
7040
+ .mc-code-block-actionbar_less-contrast {
7041
+ background-color: map-get($code-block, actionbar, bg-less-contrast);
7042
+ }
7043
+
7044
+ &.mc-actionbar-block_floating {
7045
+ background-color: map-get($code-block, actionbar, bg);
7046
+ }
7047
+ }
7048
+ }
7049
+
7050
+ @mixin mc-code-block-typography($config) {
7051
+ .mc-code-block {
7052
+ @include mc-typography-level-to-styles($config, $code-block-font-default);
7053
+
7054
+ & .hljs-ln-numbers {
7055
+ @include mc-typography-level-to-styles($config, caption-mono);
7056
+ }
7057
+ }
7058
+ }
7059
+
7060
+
7061
+
7062
+
7063
+
5320
7064
 
5321
7065
 
5322
7066
 
@@ -5351,10 +7095,6 @@ $mc-datepicker-today-fade-amount: 0.2;
5351
7095
  background: map-get($foreground, divider);
5352
7096
  }
5353
7097
 
5354
- .mc-calendar__body-label {
5355
- color: map-get($foreground, text);
5356
- }
5357
-
5358
7098
  .mc-calendar__body-cell-content {
5359
7099
  color: map-get($foreground, text);
5360
7100
  border-color: transparent;
@@ -5384,7 +7124,6 @@ $mc-datepicker-today-fade-amount: 0.2;
5384
7124
  }
5385
7125
 
5386
7126
  .mc-calendar__body_disabled > .mc-calendar__body-today:not(.mc-selected) {
5387
- // todo border-color: fade-out(map-get($foreground, text), $mc-datepicker-today-fade-amount);
5388
7127
  border-color: map-get($background, background-disabled);
5389
7128
  }
5390
7129
 
@@ -5413,10 +7152,6 @@ $mc-datepicker-today-fade-amount: 0.2;
5413
7152
  @include mc-typography-level-to-styles($config, $datepicker-calendar-font-header);
5414
7153
  }
5415
7154
 
5416
- .mc-calendar__body-label {
5417
- @include mc-typography-level-to-styles($config, $datepicker-body-font-label);
5418
- }
5419
-
5420
7155
  .mc-calendar__body-today {
5421
7156
  @include mc-typography-level-to-styles($config, $datepicker-body-font-today);
5422
7157
  }
@@ -5611,6 +7346,7 @@ $mc-datepicker-today-fade-amount: 0.2;
5611
7346
  .mc-input,
5612
7347
  .mc-textarea {
5613
7348
  color: map-get($foreground, text-disabled);
7349
+ -webkit-text-fill-color: map-get($foreground, text-disabled);
5614
7350
  }
5615
7351
  }
5616
7352
  /* stylelint-enable no-descending-specificity */
@@ -6656,7 +8392,8 @@ button {
6656
8392
  border-left-color: map-get($foreground, divider);
6657
8393
  }
6658
8394
 
6659
- &[disabled] {
8395
+ &[disabled],
8396
+ &.mc-disabled {
6660
8397
  pointer-events: none;
6661
8398
 
6662
8399
  & .mc-icon {
@@ -6702,7 +8439,8 @@ button {
6702
8439
  }
6703
8440
  }
6704
8441
 
6705
- &[disabled] {
8442
+ &[disabled],
8443
+ &.mc-disabled {
6706
8444
  cursor: default;
6707
8445
 
6708
8446
  color: map-get($tabs, state-disabled-text);
@@ -6760,7 +8498,8 @@ button {
6760
8498
  }
6761
8499
  }
6762
8500
 
6763
- &[disabled] {
8501
+ &[disabled],
8502
+ &.mc-disabled {
6764
8503
  cursor: default;
6765
8504
 
6766
8505
  color: map-get($tabs, state-disabled-text);
@@ -6826,7 +8565,8 @@ button {
6826
8565
  }
6827
8566
  }
6828
8567
 
6829
- &[disabled] {
8568
+ &[disabled],
8569
+ &.mc-disabled {
6830
8570
  cursor: default;
6831
8571
  background: map-get($vertical-tabs, state-normal-background);
6832
8572
 
@@ -7584,6 +9324,7 @@ button {
7584
9324
  @include mc-badge-typography($config);
7585
9325
  @include mc-button-typography($config);
7586
9326
  @include mc-checkbox-typography($config);
9327
+ @include mc-code-block-typography($config);
7587
9328
  @include mc-datepicker-typography($config);
7588
9329
  @include mc-dropdown-typography($config);
7589
9330
  @include mc-dl-typography($config);
@@ -7870,6 +9611,7 @@ button {
7870
9611
 
7871
9612
 
7872
9613
 
9614
+
7873
9615
  @mixin mc-divider-theme($theme) {
7874
9616
  $divider: map-get(map-get($theme, components), divider);
7875
9617
 
@@ -8310,6 +10052,7 @@ button {
8310
10052
  @include mc-button-theme($theme);
8311
10053
  @include mc-card-theme($theme);
8312
10054
  @include mc-checkbox-theme($theme);
10055
+ @include mc-code-block-theme($theme);
8313
10056
  @include mc-datepicker-theme($theme);
8314
10057
  @include mc-dl-theme($theme);
8315
10058
  @include mc-divider-theme($theme);