igniteui-theming 25.0.1 → 25.0.2
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.
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/json/components/themes.json.js +17 -17
- package/json/components/bootstrap.json +1 -1
- package/json/components/fluent.json +1 -1
- package/json/components/indigo.json +1 -1
- package/json/components/material.json +1 -1
- package/json/components/themes.json +53 -28
- package/package.json +15 -7
- package/sass/animations/_easings.scss +24 -24
- package/sass/bem/_index.scss +16 -14
- package/sass/color/_charts.scss +20 -20
- package/sass/color/_functions.scss +18 -18
- package/sass/color/_mixins.scss +1 -1
- package/sass/elevations/_functions.scss +4 -4
- package/sass/elevations/_mixins.scss +2 -2
- package/sass/elevations/presets/_index.scss +3 -3
- package/sass/elevations/presets/_indigo.scss +16 -16
- package/sass/elevations/presets/_material.scss +3 -3
- package/sass/tailwind/utilities/_common.scss +1 -1
- package/sass/themes/_functions.scss +15 -15
- package/sass/themes/_mixins.scss +9 -9
- package/sass/themes/charts/_category-chart-theme.scss +2 -9
- package/sass/themes/charts/_data-chart-theme.scss +1 -1
- package/sass/themes/charts/_doughnut-chart-theme.scss +1 -1
- package/sass/themes/charts/_financial-chart-theme.scss +2 -9
- package/sass/themes/charts/_funnel-chart-theme.scss +1 -1
- package/sass/themes/charts/_gauge-theme.scss +2 -2
- package/sass/themes/charts/_geo-map-theme.scss +1 -1
- package/sass/themes/charts/_graph-theme.scss +1 -1
- package/sass/themes/charts/_pie-chart-theme.scss +1 -1
- package/sass/themes/charts/_shape-chart-theme.scss +2 -9
- package/sass/themes/charts/_sparkline-theme.scss +2 -2
- package/sass/themes/components/action-strip/_action-strip-theme.scss +1 -1
- package/sass/themes/components/avatar/_avatar-theme.scss +2 -2
- package/sass/themes/components/badge/_badge-theme.scss +2 -2
- package/sass/themes/components/banner/_banner-theme.scss +1 -1
- package/sass/themes/components/bottom-nav/_bottom-nav-theme.scss +2 -2
- package/sass/themes/components/button/_button-theme.scss +5 -5
- package/sass/themes/components/button/_contained-button-theme.scss +5 -5
- package/sass/themes/components/button/_fab-button-theme.scss +5 -5
- package/sass/themes/components/button/_flat-button-theme.scss +17 -17
- package/sass/themes/components/button/_outlined-button-theme.scss +17 -17
- package/sass/themes/components/button-group/_button-group-theme.scss +5 -5
- package/sass/themes/components/calendar/_calendar-theme.scss +18 -20
- package/sass/themes/components/card/_card-theme.scss +3 -3
- package/sass/themes/components/carousel/_carousel-theme.scss +8 -8
- package/sass/themes/components/chat/_chat-theme.scss +1 -1
- package/sass/themes/components/checkbox/_checkbox-theme.scss +6 -6
- package/sass/themes/components/chip/_chip-theme.scss +5 -5
- package/sass/themes/components/column-actions/_column-actions-theme.scss +1 -1
- package/sass/themes/components/combo/_combo-theme.scss +3 -3
- package/sass/themes/components/dialog/_dialog-theme.scss +4 -4
- package/sass/themes/components/divider/_divider-theme.scss +1 -1
- package/sass/themes/components/dock-manager/_dock-manager-theme.scss +1 -1
- package/sass/themes/components/drop-down/_drop-down-theme.scss +10 -10
- package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +4 -4
- package/sass/themes/components/grid/_grid-summary-theme.scss +3 -3
- package/sass/themes/components/grid/_grid-theme.scss +56 -17
- package/sass/themes/components/grid/_grid-toolbar-theme.scss +1 -1
- package/sass/themes/components/highlight/_highlight-theme.scss +1 -1
- package/sass/themes/components/icon/_icon-theme.scss +1 -1
- package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +8 -8
- package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +12 -12
- package/sass/themes/components/icon-button/_icon-button-theme.scss +4 -4
- package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +13 -13
- package/sass/themes/components/input/_file-input-theme.scss +1 -1
- package/sass/themes/components/input/_input-theme.scss +23 -23
- package/sass/themes/components/list/_list-theme.scss +6 -6
- package/sass/themes/components/navbar/_navbar-theme.scss +4 -4
- package/sass/themes/components/navdrawer/_navdrawer-theme.scss +3 -3
- package/sass/themes/components/overlay/_overlay-theme.scss +1 -1
- package/sass/themes/components/paginator/_paginator-theme.scss +1 -1
- package/sass/themes/components/progress/_circular-theme.scss +1 -1
- package/sass/themes/components/progress/_linear-theme.scss +1 -1
- package/sass/themes/components/query-builder/_query-builder-theme.scss +2 -2
- package/sass/themes/components/radio/_radio-theme.scss +5 -5
- package/sass/themes/components/rating/_rating-theme.scss +1 -1
- package/sass/themes/components/ripple/_ripple-theme.scss +1 -1
- package/sass/themes/components/scrollbar/_scrollbar-theme.scss +1 -1
- package/sass/themes/components/select/_select-theme.scss +1 -1
- package/sass/themes/components/slider/_slider-theme.scss +7 -7
- package/sass/themes/components/snackbar/_snackbar-theme.scss +2 -2
- package/sass/themes/components/splitter/_splitter-theme.scss +1 -1
- package/sass/themes/components/stepper/_stepper-theme.scss +2 -2
- package/sass/themes/components/switch/_switch-theme.scss +13 -13
- package/sass/themes/components/tabs/_tabs-theme.scss +8 -8
- package/sass/themes/components/time-picker/_time-picker-theme.scss +8 -8
- package/sass/themes/components/toast/_toast-theme.scss +3 -3
- package/sass/themes/components/tooltip/_tooltip-theme.scss +2 -2
- package/sass/themes/components/tree/_tree-theme.scss +17 -17
- package/sass/themes/components/watermark/_watermark-theme.scss +1 -1
- package/sass/themes/schemas/charts/dark/_category-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_data-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_financial-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_funnel-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_gauge.scss +9 -9
- package/sass/themes/schemas/charts/dark/_geo-map.scss +5 -5
- package/sass/themes/schemas/charts/dark/_graph.scss +5 -5
- package/sass/themes/schemas/charts/dark/_pie-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_shape-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_sparkline.scss +5 -5
- package/sass/themes/schemas/charts/light/_category-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_data-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_doughnut-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_financial-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_funnel-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_gauge.scss +19 -19
- package/sass/themes/schemas/charts/light/_geo-map.scss +8 -8
- package/sass/themes/schemas/charts/light/_graph.scss +8 -8
- package/sass/themes/schemas/charts/light/_pie-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_shape-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_sparkline.scss +9 -9
- package/sass/themes/schemas/components/dark/_action-strip.scss +5 -5
- package/sass/themes/schemas/components/dark/_avatar.scss +5 -5
- package/sass/themes/schemas/components/dark/_badge.scss +5 -5
- package/sass/themes/schemas/components/dark/_banner.scss +5 -5
- package/sass/themes/schemas/components/dark/_bottom-nav.scss +5 -5
- package/sass/themes/schemas/components/dark/_button-group.scss +6 -6
- package/sass/themes/schemas/components/dark/_button.scss +65 -65
- package/sass/themes/schemas/components/dark/_calendar.scss +24 -24
- package/sass/themes/schemas/components/dark/_card.scss +5 -5
- package/sass/themes/schemas/components/dark/_carousel.scss +5 -5
- package/sass/themes/schemas/components/dark/_chat.scss +5 -5
- package/sass/themes/schemas/components/dark/_checkbox.scss +5 -5
- package/sass/themes/schemas/components/dark/_chip.scss +7 -7
- package/sass/themes/schemas/components/dark/_column-actions.scss +5 -5
- package/sass/themes/schemas/components/dark/_combo.scss +6 -6
- package/sass/themes/schemas/components/dark/_date-picker.scss +8 -8
- package/sass/themes/schemas/components/dark/_date-range-picker.scss +5 -5
- package/sass/themes/schemas/components/dark/_dialog.scss +5 -5
- package/sass/themes/schemas/components/dark/_divider.scss +5 -5
- package/sass/themes/schemas/components/dark/_dock-manager.scss +5 -5
- package/sass/themes/schemas/components/dark/_drop-down.scss +5 -5
- package/sass/themes/schemas/components/dark/_expansion-panel.scss +5 -5
- package/sass/themes/schemas/components/dark/_file-input.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid-filtering.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid-summary.scss +9 -9
- package/sass/themes/schemas/components/dark/_grid-toolbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid.scss +57 -14
- package/sass/themes/schemas/components/dark/_highlight.scss +7 -7
- package/sass/themes/schemas/components/dark/_icon-button.scss +46 -46
- package/sass/themes/schemas/components/dark/_icon.scss +5 -5
- package/sass/themes/schemas/components/dark/_input-group.scss +6 -6
- package/sass/themes/schemas/components/dark/_label.scss +5 -5
- package/sass/themes/schemas/components/dark/_list.scss +5 -5
- package/sass/themes/schemas/components/dark/_navbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_navdrawer.scss +5 -5
- package/sass/themes/schemas/components/dark/_overlay.scss +5 -5
- package/sass/themes/schemas/components/dark/_pagination.scss +5 -5
- package/sass/themes/schemas/components/dark/_pivot-data-selector.scss +9 -9
- package/sass/themes/schemas/components/dark/_progress.scss +10 -10
- package/sass/themes/schemas/components/dark/_query-builder.scss +3 -3
- package/sass/themes/schemas/components/dark/_radio.scss +5 -5
- package/sass/themes/schemas/components/dark/_rating.scss +5 -5
- package/sass/themes/schemas/components/dark/_resize-indicator.scss +9 -9
- package/sass/themes/schemas/components/dark/_ripple.scss +5 -5
- package/sass/themes/schemas/components/dark/_scrollbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_select.scss +5 -5
- package/sass/themes/schemas/components/dark/_slider.scss +5 -5
- package/sass/themes/schemas/components/dark/_snackbar.scss +6 -6
- package/sass/themes/schemas/components/dark/_splitter.scss +13 -7
- package/sass/themes/schemas/components/dark/_stepper.scss +5 -5
- package/sass/themes/schemas/components/dark/_switch.scss +5 -5
- package/sass/themes/schemas/components/dark/_tabs.scss +5 -5
- package/sass/themes/schemas/components/dark/_tile-manager.scss +11 -11
- package/sass/themes/schemas/components/dark/_time-picker.scss +5 -5
- package/sass/themes/schemas/components/dark/_toast.scss +4 -4
- package/sass/themes/schemas/components/dark/_tooltip.scss +7 -7
- package/sass/themes/schemas/components/dark/_tree.scss +5 -5
- package/sass/themes/schemas/components/dark/_validator.scss +5 -5
- package/sass/themes/schemas/components/dark/_watermark.scss +5 -5
- package/sass/themes/schemas/components/dark/calendar/_base.scss +9 -9
- package/sass/themes/schemas/components/dark/calendar/_days-view.scss +11 -11
- package/sass/themes/schemas/components/dark/calendar/_picker.scss +8 -8
- package/sass/themes/schemas/components/dark/calendar/_year-month-view.scss +11 -11
- package/sass/themes/schemas/components/elevation/_button-group.scss +3 -3
- package/sass/themes/schemas/components/elevation/_carousel.scss +2 -2
- package/sass/themes/schemas/components/light/_action-strip.scss +9 -9
- package/sass/themes/schemas/components/light/_avatar.scss +9 -9
- package/sass/themes/schemas/components/light/_badge.scss +12 -12
- package/sass/themes/schemas/components/light/_banner.scss +9 -9
- package/sass/themes/schemas/components/light/_bottom-nav.scss +12 -12
- package/sass/themes/schemas/components/light/_button-group.scss +14 -14
- package/sass/themes/schemas/components/light/_button.scss +103 -103
- package/sass/themes/schemas/components/light/_calendar.scss +28 -28
- package/sass/themes/schemas/components/light/_card.scss +14 -42
- package/sass/themes/schemas/components/light/_carousel.scss +12 -12
- package/sass/themes/schemas/components/light/_chat.scss +9 -9
- package/sass/themes/schemas/components/light/_checkbox.scss +9 -9
- package/sass/themes/schemas/components/light/_chip.scss +27 -27
- package/sass/themes/schemas/components/light/_column-actions.scss +9 -9
- package/sass/themes/schemas/components/light/_combo.scss +11 -11
- package/sass/themes/schemas/components/light/_date-picker.scss +8 -8
- package/sass/themes/schemas/components/light/_date-range-picker.scss +9 -9
- package/sass/themes/schemas/components/light/_dialog.scss +14 -23
- package/sass/themes/schemas/components/light/_divider.scss +7 -7
- package/sass/themes/schemas/components/light/_dock-manager.scss +9 -9
- package/sass/themes/schemas/components/light/_drop-down.scss +16 -24
- package/sass/themes/schemas/components/light/_expansion-panel.scss +12 -24
- package/sass/themes/schemas/components/light/_file-input.scss +1 -1
- package/sass/themes/schemas/components/light/_grid-filtering.scss +9 -9
- package/sass/themes/schemas/components/light/_grid-summary.scss +13 -26
- package/sass/themes/schemas/components/light/_grid-toolbar.scss +9 -9
- package/sass/themes/schemas/components/light/_grid.scss +162 -68
- package/sass/themes/schemas/components/light/_highlight.scss +10 -10
- package/sass/themes/schemas/components/light/_icon-button.scss +48 -48
- package/sass/themes/schemas/components/light/_icon.scss +9 -9
- package/sass/themes/schemas/components/light/_input-group.scss +17 -26
- package/sass/themes/schemas/components/light/_label.scss +8 -8
- package/sass/themes/schemas/components/light/_list.scss +13 -33
- package/sass/themes/schemas/components/light/_navbar.scss +12 -12
- package/sass/themes/schemas/components/light/_navdrawer.scss +14 -26
- package/sass/themes/schemas/components/light/_overlay.scss +9 -9
- package/sass/themes/schemas/components/light/_pagination.scss +9 -9
- package/sass/themes/schemas/components/light/_pivot-data-selector.scss +9 -9
- package/sass/themes/schemas/components/light/_progress.scss +13 -13
- package/sass/themes/schemas/components/light/_query-builder.scss +10 -10
- package/sass/themes/schemas/components/light/_radio.scss +9 -9
- package/sass/themes/schemas/components/light/_rating.scss +9 -9
- package/sass/themes/schemas/components/light/_resize-indicator.scss +8 -8
- package/sass/themes/schemas/components/light/_ripple.scss +9 -9
- package/sass/themes/schemas/components/light/_scrollbar.scss +9 -9
- package/sass/themes/schemas/components/light/_select.scss +9 -9
- package/sass/themes/schemas/components/light/_slider.scss +11 -17
- package/sass/themes/schemas/components/light/_snackbar.scss +9 -9
- package/sass/themes/schemas/components/light/_splitter.scss +9 -9
- package/sass/themes/schemas/components/light/_stepper.scss +8 -8
- package/sass/themes/schemas/components/light/_switch.scss +9 -9
- package/sass/themes/schemas/components/light/_tabs.scss +9 -9
- package/sass/themes/schemas/components/light/_tile-manager.scss +10 -10
- package/sass/themes/schemas/components/light/_time-picker.scss +10 -19
- package/sass/themes/schemas/components/light/_toast.scss +11 -11
- package/sass/themes/schemas/components/light/_tooltip.scss +10 -10
- package/sass/themes/schemas/components/light/_tree.scss +8 -8
- package/sass/themes/schemas/components/light/_validator.scss +9 -9
- package/sass/themes/schemas/components/light/_watermark.scss +9 -9
- package/sass/themes/schemas/components/light/calendar/_base.scss +9 -29
- package/sass/themes/schemas/components/light/calendar/_days-view.scss +8 -17
- package/sass/themes/schemas/components/light/calendar/_picker.scss +9 -17
- package/sass/themes/schemas/components/light/calendar/_year-month-view.scss +9 -17
- package/sass/typography/_functions.scss +14 -14
- package/sass/typography/_mixins.scss +7 -7
- package/sass/utils/_css.scss +1 -1
- package/sass/utils/_map.scss +5 -5
- package/sass/utils/_math.scss +6 -5
- package/sass/utils/_meta.scss +4 -4
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
|
@@ -43,7 +43,7 @@ $_enhanced-accessibility: false;
|
|
|
43
43
|
/// @param {Color} $error [#ff134a] - The error color used throughout the application (optional).
|
|
44
44
|
/// @param {String} $variant [null] - Used internally (optional).
|
|
45
45
|
/// @requires {function} shades
|
|
46
|
-
/// @returns {Map}
|
|
46
|
+
/// @returns {Map} A map consisting of color shades for the passed base colors (primary, secondary, gray, etc).
|
|
47
47
|
/// @example scss
|
|
48
48
|
/// // Pass the required colors
|
|
49
49
|
/// $my-palette: palette(
|
|
@@ -99,7 +99,7 @@ $_enhanced-accessibility: false;
|
|
|
99
99
|
/// @param {List} $shades - The list of shade variants.
|
|
100
100
|
/// @param {Color} $surface [null] - The surface color. Useful if generating shades of gray (optional).
|
|
101
101
|
/// @requires {function} adaptive-contrast
|
|
102
|
-
/// @returns {Map}
|
|
102
|
+
/// @returns {Map} A map consisting of color shades and their respective contrast colors.
|
|
103
103
|
///
|
|
104
104
|
/// @example scss
|
|
105
105
|
/// $color-name: 'accent';
|
|
@@ -138,7 +138,7 @@ $_enhanced-accessibility: false;
|
|
|
138
138
|
/// @param {Color} $surface [null] - The surface color. Useful when generating a shade of gray (optional).
|
|
139
139
|
/// @require {function} luminance
|
|
140
140
|
/// @require {function} to-fixed
|
|
141
|
-
/// @returns {Map}
|
|
141
|
+
/// @returns {Map} A map containing a list of HSL values and a raw color value.
|
|
142
142
|
@function shade($name, $color, $shade, $surface: null) {
|
|
143
143
|
$h: var(--ig-#{$name}-h);
|
|
144
144
|
$s: var(--ig-#{$name}-s);
|
|
@@ -191,7 +191,7 @@ $_enhanced-accessibility: false;
|
|
|
191
191
|
/// @param {Number} $lightness [50] - The target lightness value to move toward.
|
|
192
192
|
/// @param {Number} $percentage [0.1] - The percentage to move toward the target lightness.
|
|
193
193
|
/// @param {Number} $offset [10] - The offset added or subtracted based on direction.
|
|
194
|
-
/// @returns {Color}
|
|
194
|
+
/// @returns {Color} The dynamically shaded color in LCH color space
|
|
195
195
|
@function dynamic-shade($color, $lightness: 50, $factor: 0.1, $offset: 5) {
|
|
196
196
|
@return lch(from $color calc(l + ($lightness - l) * $factor + sign($lightness - l) * $offset) c h);
|
|
197
197
|
}
|
|
@@ -201,7 +201,7 @@ $_enhanced-accessibility: false;
|
|
|
201
201
|
/// @access private
|
|
202
202
|
/// @group Color
|
|
203
203
|
/// @param {Color} $color - The color to normalize.
|
|
204
|
-
/// @returns {Color}
|
|
204
|
+
/// @returns {Color} The normalized color in hex format.
|
|
205
205
|
@function _normalize-color($color) {
|
|
206
206
|
@if meta.type-of($color) == 'color' {
|
|
207
207
|
// Round RGB channels to integers to maintain backward compatibility with older Sass behavior
|
|
@@ -222,7 +222,7 @@ $_enhanced-accessibility: false;
|
|
|
222
222
|
/// @param {String} $color [primary] - The target color from the color palette.
|
|
223
223
|
/// @param {Number | String} $variant [500] - The target color shade from the color palette.
|
|
224
224
|
/// @param {Number} $opacity [null] - Optional opacity to apply to the color shade.
|
|
225
|
-
/// @returns {Color | String}
|
|
225
|
+
/// @returns {Color | String} The raw color shade or CSS variable reference from the palette.
|
|
226
226
|
///
|
|
227
227
|
/// @example scss - Getting a color from the palette
|
|
228
228
|
/// // Without providing a palette
|
|
@@ -269,9 +269,9 @@ $_enhanced-accessibility: false;
|
|
|
269
269
|
/// @param {Number | String} $variant [500] - The target color shade from the color palette.
|
|
270
270
|
/// @param {Number} $opacity [null] - Optional opacity to apply to the color shade.
|
|
271
271
|
/// @requires {function} color
|
|
272
|
-
/// @returns {Color | String}
|
|
272
|
+
/// @returns {Color | String} The raw contrast color shade or CSS variable from the palette.
|
|
273
273
|
///
|
|
274
|
-
/// @example scss without passing a palette
|
|
274
|
+
/// @example scss - without passing a palette
|
|
275
275
|
/// .my-component {
|
|
276
276
|
/// background: color($color: 'primary', $variant: 200);
|
|
277
277
|
/// color: contrast-color($color: 'primary', $variant: 200);
|
|
@@ -285,7 +285,7 @@ $_enhanced-accessibility: false;
|
|
|
285
285
|
/// @access public
|
|
286
286
|
/// @group Color
|
|
287
287
|
/// @param {Color} $color - The base color used in the calculation.
|
|
288
|
-
/// @returns {string}
|
|
288
|
+
/// @returns {string} Returns a relative HSL color where the lightness is adjusted
|
|
289
289
|
/// based on the specified contrast level, resulting in either black or white.
|
|
290
290
|
///
|
|
291
291
|
/// @example scss
|
|
@@ -307,9 +307,9 @@ $_enhanced-accessibility: false;
|
|
|
307
307
|
/// @param {Color} $background - The background color used to return a contrast/forground color for.
|
|
308
308
|
/// @param {Color | List<Color>} $foreground [#fff] - A list of foreground colors
|
|
309
309
|
/// that can be used with the provided background.
|
|
310
|
-
/// @param {
|
|
310
|
+
/// @param {String} $contrast [AAA] - The contrast level according to WCAG 2.0 standards.
|
|
311
311
|
/// @require {function} contrast
|
|
312
|
-
/// @returns {Color}
|
|
312
|
+
/// @returns {Color} Returns either white, black, or the provided foreground
|
|
313
313
|
/// color if it meets the required contrast level.
|
|
314
314
|
///
|
|
315
315
|
/// @example scss
|
|
@@ -370,7 +370,7 @@ $_enhanced-accessibility: false;
|
|
|
370
370
|
/// @group Color
|
|
371
371
|
/// @param {Color} $color-1 - The first color, usually transparent.
|
|
372
372
|
/// @param {Color} $color-2 [#fff] - The second color, usually opaque.
|
|
373
|
-
/// @return {Color}
|
|
373
|
+
/// @return {Color} The color representation of the rgba value.
|
|
374
374
|
@function to-opaque($color-1, $color-2: #fff) {
|
|
375
375
|
@if meta.type-of($color-1) == color and meta.type-of($color-2) == color {
|
|
376
376
|
$red: color.channel($color-1, 'red', $space: rgb);
|
|
@@ -392,9 +392,9 @@ $_enhanced-accessibility: false;
|
|
|
392
392
|
/// @access public
|
|
393
393
|
/// @group Color
|
|
394
394
|
/// @param {Color} $color - The color to be converted to an HSL list of values.
|
|
395
|
-
/// @example scss Turn #000 into an HSL list of values
|
|
395
|
+
/// @example scss - Turn #000 into an HSL list of values
|
|
396
396
|
/// $hsl-list: to-hsl(#000); // (0deg, 0%, 0%);
|
|
397
|
-
/// @return {List}
|
|
397
|
+
/// @return {List} This list of HSL values.
|
|
398
398
|
@function to-hsl($color) {
|
|
399
399
|
@return (
|
|
400
400
|
math.round(color.channel($color, 'hue', $space: hsl)),
|
|
@@ -412,7 +412,7 @@ $_enhanced-accessibility: false;
|
|
|
412
412
|
/// @example scss
|
|
413
413
|
/// $conrast: contrast(#09f, #000); // 7
|
|
414
414
|
///
|
|
415
|
-
/// @returns {Number}
|
|
415
|
+
/// @returns {Number} The contrast ratio between the background and foreground colors.
|
|
416
416
|
/// @require {function} luminance
|
|
417
417
|
/// @require {function} to-fixed
|
|
418
418
|
/// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests WCAG 2.0 Contrast Ratio
|
|
@@ -433,7 +433,7 @@ $_enhanced-accessibility: false;
|
|
|
433
433
|
/// $blue: luminance(#09f); // 0.3
|
|
434
434
|
/// $black: luminance(#000); // 0
|
|
435
435
|
///
|
|
436
|
-
/// @returns {Number | String}
|
|
436
|
+
/// @returns {Number | String} The calculated luminance of a given color
|
|
437
437
|
/// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests. WCAG 2.0 Contrast Ratio
|
|
438
438
|
@function luminance($color) {
|
|
439
439
|
@if meta.type-of($color) == 'color' {
|
|
@@ -451,7 +451,7 @@ $_enhanced-accessibility: false;
|
|
|
451
451
|
/// @access private
|
|
452
452
|
/// @group Color
|
|
453
453
|
/// @param {Number} $value - The sRGB color
|
|
454
|
-
/// @returns {Number}
|
|
454
|
+
/// @returns {Number} The calculated linear channel value
|
|
455
455
|
@function _lcv($value) {
|
|
456
456
|
// stylelint-disable number-max-precision
|
|
457
457
|
@return if($value < 0.03928, math.div($value, 12.92), math.pow(math.div($value + 0.055, 1.055), 2.4));
|
|
@@ -460,7 +460,7 @@ $_enhanced-accessibility: false;
|
|
|
460
460
|
/// Returns a list of colors to be used as chart brushes. The return value depends on the value of enhanced-accessibility.
|
|
461
461
|
/// @access public
|
|
462
462
|
/// @group Palettes
|
|
463
|
-
/// @returns { List }
|
|
463
|
+
/// @returns { List } A list of colors to be used as chart brushes.
|
|
464
464
|
/// @see {mixin} configure-colors
|
|
465
465
|
/// @see $brushes-regular
|
|
466
466
|
/// @see $brushes-color-blind
|
package/sass/color/_mixins.scss
CHANGED
|
@@ -74,7 +74,7 @@ $_added: () !default;
|
|
|
74
74
|
/// @param {Map} $palette - The palette used to generate CSS variables.
|
|
75
75
|
/// @param {Boolean} $contrast [true] - Specify if contrast colors should be included.
|
|
76
76
|
///
|
|
77
|
-
/// @example scss Generate css variables for a palette
|
|
77
|
+
/// @example scss - Generate css variables for a palette
|
|
78
78
|
/// $palette: palette($primary: red, $secondary: blue, $gray: #000);
|
|
79
79
|
/// @include palette($palette);
|
|
80
80
|
///
|
|
@@ -12,7 +12,7 @@ $factor: var(--ig-elevation-factor, 1);
|
|
|
12
12
|
/// Checks if the passed argument is a valid box-shadow.
|
|
13
13
|
/// @access private
|
|
14
14
|
/// @param {List} $shadow - A list of shadow properties.
|
|
15
|
-
/// @return {Boolean}
|
|
15
|
+
/// @return {Boolean} Returns a boolean depending on if the passed argument is a valid shadow.
|
|
16
16
|
@function _is-shadow($shadow) {
|
|
17
17
|
$lastIndex: list.length($shadow);
|
|
18
18
|
|
|
@@ -34,7 +34,7 @@ $factor: var(--ig-elevation-factor, 1);
|
|
|
34
34
|
/// Transforms the passed box-shadow list according to the elevation factor value.
|
|
35
35
|
/// @access private
|
|
36
36
|
/// @param {List} $shadow - A list of shadow properties.
|
|
37
|
-
/// @return {List}
|
|
37
|
+
/// @return {List} The transformed shadow list.
|
|
38
38
|
@function _transform-shadow($shadow) {
|
|
39
39
|
$result: ();
|
|
40
40
|
|
|
@@ -63,7 +63,7 @@ $factor: var(--ig-elevation-factor, 1);
|
|
|
63
63
|
/// 0 0 calc(--ig-elevation-factor * 2px) calc(--ig-elevation-factor * 3px) black,
|
|
64
64
|
/// 0 calc(--ig-elevation-factor * 6px) calc(--ig-elevation-factor * 9px) orange;
|
|
65
65
|
/// }
|
|
66
|
-
/// @return {List}
|
|
66
|
+
/// @return {List} The transformed shadow list.
|
|
67
67
|
/// @requires {function} _is-shadow
|
|
68
68
|
/// @requires {function} _transform-shadow
|
|
69
69
|
@function box-shadow($shadows) {
|
|
@@ -98,7 +98,7 @@ $factor: var(--ig-elevation-factor, 1);
|
|
|
98
98
|
/// .my-component {
|
|
99
99
|
/// box-shadow: elevation(5); // var(--ig-elevation-5)
|
|
100
100
|
/// }
|
|
101
|
-
/// @return {String}
|
|
101
|
+
/// @return {String} The CSS elevation variable
|
|
102
102
|
@function elevation($name) {
|
|
103
103
|
@return var(--ig-elevation-#{$name});
|
|
104
104
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/// Generates CSS variables for a given elevations map.
|
|
9
9
|
/// @access public
|
|
10
10
|
/// @param {Map} $elevations - The elevations map to use to generate CSS variables.
|
|
11
|
-
/// @example scss Generate CSS variables for elevations.
|
|
11
|
+
/// @example scss - Generate CSS variables for elevations.
|
|
12
12
|
/// $elevations: (
|
|
13
13
|
/// small: box-shadow(0 .125rem .25rem rgba(0 0 0 / 75%)),
|
|
14
14
|
/// medium: box-shadow(0 .25rem .5rem rgba(0 0 0 / 85%)),
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
/// Includes box-shadow styles for an elevation by name
|
|
32
32
|
/// @access public
|
|
33
33
|
/// @param {String} $name - The name of the shadow.
|
|
34
|
-
/// @example scss Include a box shadow by its name.
|
|
34
|
+
/// @example scss - Include a box shadow by its name.
|
|
35
35
|
/// .my-class {
|
|
36
36
|
/// @include elevation(small);
|
|
37
37
|
/// }
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
/// Level 1 - The color used to generate umbra shadows.
|
|
7
7
|
/// @type Color
|
|
8
8
|
/// @access private
|
|
9
|
-
$color-1:
|
|
9
|
+
$color-1: rgb(0 0 0 / 0.26) !default;
|
|
10
10
|
|
|
11
11
|
/// Level 2 - The color used to generate penumbra shadows.
|
|
12
12
|
/// @type Color
|
|
13
13
|
/// @access private
|
|
14
|
-
$color-2:
|
|
14
|
+
$color-2: rgb(0 0 0 / 0.12) !default;
|
|
15
15
|
|
|
16
16
|
/// Level 3 - The color used to generate ambient shadows.
|
|
17
17
|
/// @type Color
|
|
18
18
|
/// @access private
|
|
19
|
-
$color-3:
|
|
19
|
+
$color-3: rgb(0 0 0 / 0.08) !default;
|
|
20
20
|
|
|
21
21
|
@forward './material' as material-* with($color-1: $color-1, $color-2: $color-2, $color-3: $color-3);
|
|
22
22
|
@forward './indigo' as indigo-* with($color-1: $color-1, $color-2: $color-2, $color-3: $color-3);
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
|
|
10
10
|
/// Level 1 - The color used to generate umbra shadows.
|
|
11
11
|
/// @type Color
|
|
12
|
-
$color-1:
|
|
12
|
+
$color-1: rgb(0 0 0 / 0.26) !default;
|
|
13
13
|
|
|
14
14
|
/// Level 2 - The color used to generate penumbra shadows.
|
|
15
15
|
/// @type Color
|
|
16
|
-
$color-2:
|
|
16
|
+
$color-2: rgb(0 0 0 / 0.12) !default;
|
|
17
17
|
|
|
18
18
|
/// Level 3 - The color used to generate ambient shadows.
|
|
19
19
|
/// @type Color
|
|
20
|
-
$color-3:
|
|
20
|
+
$color-3: rgb(0 0 0 / 0.08) !default;
|
|
21
21
|
$_1: box-shadow((0 1px 3px 0 $color-1, 0 1px 1px 0 $color-2, 0 2px 1px -1px $color-3));
|
|
22
|
-
$_2: box-shadow((0 3px 6px 0
|
|
23
|
-
$_3: box-shadow((0 3px 6px 0
|
|
24
|
-
$_4: box-shadow((0 2px 12px 0
|
|
25
|
-
$_5: box-shadow((0 0 12px 0
|
|
26
|
-
$_6: box-shadow((0 2px 12px 0
|
|
27
|
-
$_7: box-shadow((0 0 12px 0
|
|
28
|
-
$_8: box-shadow((0 2px 2px 0
|
|
29
|
-
$_9: box-shadow((0 2px 2px 0
|
|
30
|
-
$_10: box-shadow((0 2px 6px 0
|
|
31
|
-
$_11: box-shadow((0 2px 6px 0
|
|
32
|
-
$_12: box-shadow((0 0 16px 0
|
|
22
|
+
$_2: box-shadow((0 3px 6px 0 rgb(0 0 0 / 0.3)));
|
|
23
|
+
$_3: box-shadow((0 3px 6px 0 rgb(36 37 44 / 0.2)));
|
|
24
|
+
$_4: box-shadow((0 2px 12px 0 rgb(36 37 44 / 0.1)));
|
|
25
|
+
$_5: box-shadow((0 0 12px 0 rgb(36 37 44 / 0.2)));
|
|
26
|
+
$_6: box-shadow((0 2px 12px 0 rgb(36 37 44 / 0.2)));
|
|
27
|
+
$_7: box-shadow((0 0 12px 0 rgb(0 0 0 / 0.3)));
|
|
28
|
+
$_8: box-shadow((0 2px 2px 0 rgb(36 37 44 / 0.2)));
|
|
29
|
+
$_9: box-shadow((0 2px 2px 0 rgb(0 0 0 / 0.3)));
|
|
30
|
+
$_10: box-shadow((0 2px 6px 0 rgb(36 37 44 / 0.4)));
|
|
31
|
+
$_11: box-shadow((0 2px 6px 0 rgb(0 0 0 / 0.4)));
|
|
32
|
+
$_12: box-shadow((0 0 16px 0 rgb(36 37 44 / 0.4)));
|
|
33
33
|
$_13: box-shadow((0 7px 8px -4px $color-1, 0 13px 19px 2px $color-2, 0 5px 24px 4px $color-3));
|
|
34
34
|
$_14: box-shadow((0 7px 9px -4px $color-1, 0 14px 21px 2px $color-2, 0 5px 26px 4px $color-3));
|
|
35
35
|
$_15: box-shadow((0 8px 9px -5px $color-1, 0 15px 22px 2px $color-2, 0 6px 28px 5px $color-3));
|
|
@@ -40,8 +40,8 @@ $_19: box-shadow((0 9px 12px -6px $color-1, 0 19px 29px 2px $color-2, 0 7px 36px
|
|
|
40
40
|
$_20: box-shadow((0 10px 13px -6px $color-1, 0 20px 31px 3px $color-2, 0 8px 38px 7px $color-3));
|
|
41
41
|
$_21: box-shadow((0 10px 13px -6px $color-1, 0 21px 33px 3px $color-2, 0 8px 40px 7px $color-3));
|
|
42
42
|
$_22: box-shadow((0 10px 14px -6px $color-1, 0 22px 35px 3px $color-2, 0 8px 42px 7px $color-3));
|
|
43
|
-
$_23: box-shadow((0 0 16px 0
|
|
44
|
-
$_24: box-shadow((0 0 16px 0
|
|
43
|
+
$_23: box-shadow((0 0 16px 0 rgb(0 0 0 / 0.3)));
|
|
44
|
+
$_24: box-shadow((0 0 16px 0 rgb(36 37 44 / 0.4)));
|
|
45
45
|
|
|
46
46
|
/// А map of 24 shadow elevations with the umbra, penumbra and ambient shadows.
|
|
47
47
|
/// @type Map
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
/// Level 1 - The color used to generate umbra shadows.
|
|
11
11
|
/// @type Color
|
|
12
|
-
$color-1:
|
|
12
|
+
$color-1: rgb(0 0 0 / 0.26) !default;
|
|
13
13
|
|
|
14
14
|
/// Level 2 - The color used to generate penumbra shadows.
|
|
15
15
|
/// @type Color
|
|
16
|
-
$color-2:
|
|
16
|
+
$color-2: rgb(0 0 0 / 0.12) !default;
|
|
17
17
|
|
|
18
18
|
/// Level 3 - The color used to generate ambient shadows.
|
|
19
19
|
/// @type Color
|
|
20
|
-
$color-3:
|
|
20
|
+
$color-3: rgb(0 0 0 / 0.08) !default;
|
|
21
21
|
|
|
22
22
|
/// All elevation levels
|
|
23
23
|
$_1: box-shadow((0 1px 3px 0 $color-1, 0 1px 1px 0 $color-2, 0 2px 1px -1px $color-3));
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/// @requires {function} resolve-value
|
|
19
19
|
/// @requires {function} elevation
|
|
20
20
|
/// @requires {function} chart-brushes
|
|
21
|
-
/// @example scss Get the resolved theme for a schema
|
|
21
|
+
/// @example scss - Get the resolved theme for a schema
|
|
22
22
|
/// $custom-schema: (
|
|
23
23
|
/// foreground: (
|
|
24
24
|
/// color: ('primary', 800, .5)
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/// border-radius: (rem(5px), rem(0), rem(8px)) // default, min and max radius
|
|
27
27
|
/// );
|
|
28
28
|
/// $theme: digest-schema($custom-schema);
|
|
29
|
-
/// @returns {Map}
|
|
29
|
+
/// @returns {Map} A theme map with resolved values.
|
|
30
30
|
@function digest-schema($schema) {
|
|
31
31
|
$result: ();
|
|
32
32
|
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
/// the function should be called with.
|
|
57
57
|
/// @access private
|
|
58
58
|
/// @param {Map} $instructions - The map to be used as instruction set.
|
|
59
|
-
/// @example scss Resolve primary 500 color
|
|
59
|
+
/// @example scss - Resolve primary 500 color
|
|
60
60
|
/// $value: resolve-value((color: (primary, 500)));
|
|
61
|
-
/// @returns {
|
|
61
|
+
/// @returns {Map} The resolved value.
|
|
62
62
|
@function resolve-value($instructions) {
|
|
63
63
|
$result: ();
|
|
64
64
|
|
|
@@ -103,11 +103,11 @@
|
|
|
103
103
|
/// @param {Map} $theme - The source theme to be used to read values from.
|
|
104
104
|
/// @param {String} $property - A key from the theme map to assign as value to the property.
|
|
105
105
|
/// @param {String} $fallback [null] - A value to be used if the CSS property is not defined.
|
|
106
|
-
/// @example scss Assign the color property in a set of rules to a value from the theme.
|
|
106
|
+
/// @example scss - Assign the color property in a set of rules to a value from the theme.
|
|
107
107
|
/// [part='icon'] {
|
|
108
108
|
/// color: var-get($theme, 'icon-color', inherit); // var(--icon-color, inherit)
|
|
109
109
|
/// }
|
|
110
|
-
/// @returns {String}
|
|
110
|
+
/// @returns {String} The CSS reference of the property in the theme.
|
|
111
111
|
@function var-get($theme, $property, $fallback: null) {
|
|
112
112
|
@if map.has-key($theme, $property) {
|
|
113
113
|
$p: --#{$property};
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
/// @param {Number} $radius - The preferred value.
|
|
124
124
|
/// @param {Number} $min [rem(0)] - The minimum value.
|
|
125
125
|
/// @param {Number} $max [$radius] - The maximum allowed value.
|
|
126
|
-
/// @return {Number}
|
|
126
|
+
/// @return {Number} The clamped value
|
|
127
127
|
@function border-radius($radius, $min: #{rem(0)}, $max: $radius) {
|
|
128
128
|
$factor: math.div($radius, $max);
|
|
129
129
|
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
/// @param {Number} $sm - The preferred value when the component's size is small.
|
|
138
138
|
/// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
|
|
139
139
|
/// @param {Number} $lg [$md] - The preferred value when the component's size is large.
|
|
140
|
-
/// @example
|
|
140
|
+
/// @example scss
|
|
141
141
|
/// --size: #{sizable(rem(40px), rem(64px), rem(88px))};
|
|
142
|
-
/// @return {Function}
|
|
142
|
+
/// @return {Function} The evaluated value.
|
|
143
143
|
@function sizable($sm, $md: $sm, $lg: $md) {
|
|
144
144
|
$sm: max(#{$sm}, -1 * #{$sm});
|
|
145
145
|
$md: max(#{$md}, -1 * #{$md});
|
|
@@ -160,11 +160,11 @@
|
|
|
160
160
|
/// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
|
|
161
161
|
/// @param {Number} $lg [$md] - The preferred value when the component's size is large.
|
|
162
162
|
/// @param {Number} $dir [null] - The preferred direction - inline or block.
|
|
163
|
-
/// @example
|
|
163
|
+
/// @example scss
|
|
164
164
|
/// .my-component {
|
|
165
165
|
/// padding: pad(4px, 8px, 16px);
|
|
166
166
|
/// }
|
|
167
|
-
/// @return {Function}
|
|
167
|
+
/// @return {Function} The evaluated value.
|
|
168
168
|
@function pad($sm, $md: $sm, $lg: $md, $dir: null) {
|
|
169
169
|
$spacing: if($dir, --ig-spacing-#{$dir}, --ig-spacing);
|
|
170
170
|
$sm: max(#{$sm}, -1 * #{$sm});
|
|
@@ -184,11 +184,11 @@
|
|
|
184
184
|
/// @param {Number} $sm - The preferred value when the component's size is small.
|
|
185
185
|
/// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
|
|
186
186
|
/// @param {Number} $lg [$md] - The preferred value when the component's size is large.
|
|
187
|
-
/// @example
|
|
187
|
+
/// @example scss
|
|
188
188
|
/// .my-component {
|
|
189
189
|
/// padding: pad-inline(4px, 8px, 16px);
|
|
190
190
|
/// }
|
|
191
|
-
/// @return {Function}
|
|
191
|
+
/// @return {Function} The evaluated value.
|
|
192
192
|
@function pad-inline($sm, $md: $sm, $lg: $md) {
|
|
193
193
|
@return pad($sm, $md, $lg, $dir: inline);
|
|
194
194
|
}
|
|
@@ -199,11 +199,11 @@
|
|
|
199
199
|
/// @param {Number} $sm - The preferred value when the component's size is small.
|
|
200
200
|
/// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
|
|
201
201
|
/// @param {Number} $lg [$md] - The preferred value when the component's size is large.
|
|
202
|
-
/// @example
|
|
202
|
+
/// @example scss
|
|
203
203
|
/// .my-component {
|
|
204
204
|
/// padding: pad-block(4px, 8px, 16px);
|
|
205
205
|
/// }
|
|
206
|
-
/// @return {Function}
|
|
206
|
+
/// @return {Function} The evaluated value.
|
|
207
207
|
@function pad-block($sm, $md: $sm, $lg: $md) {
|
|
208
208
|
@return pad($sm, $md, $lg, $dir: block);
|
|
209
209
|
}
|
package/sass/themes/_mixins.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// stylelint-disable
|
|
1
|
+
// stylelint-disable property-no-deprecated
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:math';
|
|
4
4
|
@use 'sass:meta';
|
|
@@ -48,7 +48,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
48
48
|
/// rewritten to global token references.
|
|
49
49
|
/// @access private
|
|
50
50
|
/// @param {Map} $theme - A theme map with ignored keys already removed.
|
|
51
|
-
/// @return {List}
|
|
51
|
+
/// @return {List} A list of emittable key names.
|
|
52
52
|
@function _collect-emittable-keys($theme) {
|
|
53
53
|
$keys: ();
|
|
54
54
|
|
|
@@ -67,7 +67,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
67
67
|
/// @param {*} $value - The original theme property value.
|
|
68
68
|
/// @param {String} $name - The component name (e.g., 'avatar').
|
|
69
69
|
/// @param {List} $keys - The list of emittable keys whose local refs should be rewritten.
|
|
70
|
-
/// @return {String}
|
|
70
|
+
/// @return {String} The value with all local var references rewritten to global token names.
|
|
71
71
|
@function _globalize-value($value, $name, $keys) {
|
|
72
72
|
$result: '#{$value}';
|
|
73
73
|
|
|
@@ -182,7 +182,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
182
182
|
/// @param {String} $mode ['global'] - The generation mode: 'global' for universal tokens, 'scoped' for component-level CSS variables.
|
|
183
183
|
/// @param {String} $scope [null] - Only used in 'scoped' mode. Overrides the selector from the theme map.
|
|
184
184
|
/// @param {Map} $ignored [$ignored-keys] - A list of ignored keywords to be excluded when generating tokens.
|
|
185
|
-
/// @example scss Generate universal avatar tokens (global mode)
|
|
185
|
+
/// @example scss - Generate universal avatar tokens (global mode)
|
|
186
186
|
/// :root {
|
|
187
187
|
/// @include tokens(avatar-theme($background: red));
|
|
188
188
|
/// }
|
|
@@ -192,7 +192,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
192
192
|
/// // --ig-avatar-color: hsla(from color(from var(--ig-avatar-background) ...) ...);
|
|
193
193
|
/// // ...
|
|
194
194
|
/// // }
|
|
195
|
-
/// @example scss Override size with a concrete value (global mode)
|
|
195
|
+
/// @example scss - Override size with a concrete value (global mode)
|
|
196
196
|
/// :root {
|
|
197
197
|
/// @include tokens(avatar-theme($size: 2rem));
|
|
198
198
|
/// }
|
|
@@ -201,9 +201,9 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
201
201
|
/// // --ig-avatar-size: 2rem;
|
|
202
202
|
/// // ...
|
|
203
203
|
/// // }
|
|
204
|
-
/// @example scss Generate scoped component tokens (scoped mode)
|
|
204
|
+
/// @example scss - Generate scoped component tokens (scoped mode)
|
|
205
205
|
/// @include tokens(avatar-theme($schema: $schema), $mode: 'scoped');
|
|
206
|
-
/// @example scss Generate scoped component tokens with a custom scope
|
|
206
|
+
/// @example scss - Generate scoped component tokens with a custom scope
|
|
207
207
|
/// @include tokens(dialog-theme($schema: $schema), $mode: 'scoped', $scope: '.igx-dialog');
|
|
208
208
|
@mixin tokens($theme, $mode: 'global', $scope: null, $ignored: $ignored-keys) {
|
|
209
209
|
@if $mode == 'scoped' {
|
|
@@ -236,7 +236,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
236
236
|
/// @param {map} $theme - The component theme to be used.
|
|
237
237
|
/// @param {map} $scope [null] - The CSS variables scope to be used. (optional)
|
|
238
238
|
/// @requires {mixin} tokens
|
|
239
|
-
/// @example scss Convert grid theme colors to css variables
|
|
239
|
+
/// @example scss - Convert grid theme colors to css variables
|
|
240
240
|
/// $my-grid-theme grid-theme(
|
|
241
241
|
/// $header-background: red,
|
|
242
242
|
/// $content-background: #222
|
|
@@ -267,7 +267,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
267
267
|
/// @param {number|string} $lines - The number of lines to show
|
|
268
268
|
/// @param {Boolean} $inline - Sets whether an element displays inline-box or box
|
|
269
269
|
/// @param {Boolean} $vertical - Sets whether an element lays out its contents horizontally or vertically
|
|
270
|
-
/// @example scss Truncates text after the fourth line
|
|
270
|
+
/// @example scss - Truncates text after the fourth line
|
|
271
271
|
/// @include line-clamp(4, true, true);
|
|
272
272
|
@mixin line-clamp($lines, $inline, $vertical) {
|
|
273
273
|
display: if($inline, -webkit-inline-box, -webkit-box);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
/// @param {Number} $y-axis-tick-length [null] - Sets the length of tickmarks along the Y-axis.
|
|
71
71
|
/// @param {Color} $y-axis-tick-stroke [null] - Sets the color to apply to tickmarks along the Y-axis.
|
|
72
72
|
/// @param {Number} $y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
|
|
73
|
-
/// @requires extend
|
|
73
|
+
/// @requires {function} extend
|
|
74
74
|
///
|
|
75
75
|
/// @example scss
|
|
76
76
|
/// $custom-chart-theme: category-chart-theme($brushes: (red, green, blue));
|
|
@@ -264,14 +264,7 @@
|
|
|
264
264
|
/// category from the typographic scale.
|
|
265
265
|
/// @group typography
|
|
266
266
|
/// @param {Map} $type-scale - A typographic scale as produced by type-scale.
|
|
267
|
-
/// @param {Map} $categories
|
|
268
|
-
/// 'title': 'h6',
|
|
269
|
-
/// 'subtitle': 'subtitle-1,
|
|
270
|
-
/// 'x-axis-label-text-style': 'body-2',
|
|
271
|
-
/// 'y-axis-label-text-style': 'body-2',
|
|
272
|
-
/// 'x-axis-title-text-style': 'body-2',
|
|
273
|
-
/// 'y-axis-title-text-style': 'body-2',
|
|
274
|
-
/// )] - The categories from the typographic scale used for type styles.
|
|
267
|
+
/// @param {Map} $categories - The categories from the typographic scale used for type styles.
|
|
275
268
|
/// @requires {mixin} type-style
|
|
276
269
|
@mixin category-chart-typography(
|
|
277
270
|
$type-scale,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/// @param {List} $axis-title-margin [null] - Sets the margin (top, right, bottom, left) of a title on both axes.
|
|
47
47
|
/// @param {Color} $axis-title-text-color [null] - Sets the color of the title on the X-axis.
|
|
48
48
|
/// @param {String} $axis-title-text-style [null] - Sets the CSS font property for the title on both axes.
|
|
49
|
-
/// @requires extend
|
|
49
|
+
/// @requires {function} extend
|
|
50
50
|
///
|
|
51
51
|
/// @example scss
|
|
52
52
|
/// $my-chart-theme: data-chart-theme($brushes: (orange, blue, pink));
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// @param {Number} $selected-slice-opacity [null] - Sets the opacity of the selected slice.
|
|
24
24
|
/// @param {Color} $selected-slice-stroke [null] - Sets the stroke color of the selected slice.
|
|
25
25
|
/// @param {Number} $selected-slice-stroke-thickness [null] - Sets the stroke thickness of the selected slice.
|
|
26
|
-
/// @requires extend
|
|
26
|
+
/// @requires {function} extend
|
|
27
27
|
///
|
|
28
28
|
/// @example scss
|
|
29
29
|
/// $my-chart-theme: doughnut-chart-theme($brushes: (orange, blue, pink));
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
/// @param {Number} $y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
|
|
76
76
|
/// @param {String} $zoom-slider-x-axis-major-stroke [null] - Gets or sets stroke brush of major gridlines on x-axis of the zoom slider pane.
|
|
77
77
|
/// @param {Number} $zoom-slider-x-axis-major-stroke-thickness [null] - Gets or sets thickness of major gridlines on x-axis of the zoom slider pane.
|
|
78
|
-
/// @requires extend
|
|
78
|
+
/// @requires {function} extend
|
|
79
79
|
///
|
|
80
80
|
/// @example scss
|
|
81
81
|
/// $my-chart-theme: financial-chart-theme($title-alignment: left, $brushes: red, blue, yellow, pink);
|
|
@@ -271,14 +271,7 @@
|
|
|
271
271
|
/// category from the typographic scale.
|
|
272
272
|
/// @group typography
|
|
273
273
|
/// @param {Map} $type-scale - A typographic scale as produced by type-scale.
|
|
274
|
-
/// @param {Map} $categories
|
|
275
|
-
/// 'title': 'h6',
|
|
276
|
-
/// 'subtitle': 'subtitle-1,
|
|
277
|
-
/// 'x-axis-label-text-style': 'body-2',
|
|
278
|
-
/// 'y-axis-label-text-style': 'body-2',
|
|
279
|
-
/// 'x-axis-title-text-style': 'body-2',
|
|
280
|
-
/// 'y-axis-title-text-style': 'body-2',
|
|
281
|
-
/// )] - The categories from the typographic scale used for type styles.
|
|
274
|
+
/// @param {Map} $categories - The categories from the typographic scale used for type styles.
|
|
282
275
|
/// @requires {mixin} type-style
|
|
283
276
|
@mixin financial-chart-typography(
|
|
284
277
|
$type-scale,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/// @param {Number} $outline-thickness [null] - Sets the thickness of outline around slices.
|
|
25
25
|
/// @param {Color} $text-color - [null] Sets the Color used for the inner labels.
|
|
26
26
|
///
|
|
27
|
-
/// @requires extend
|
|
27
|
+
/// @requires {function} extend
|
|
28
28
|
///
|
|
29
29
|
/// @example scss
|
|
30
30
|
/// $my-chart-theme: funnel-chart-theme($brushes: (orange, blue, pink));
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/// @param {Number} $scale-stroke-thickness [null] - Sets the stroke thickness of the scale outline.
|
|
38
38
|
/// @param {Color} $tick-brush [null] - Sets the color to use for the major tickmarks.
|
|
39
39
|
/// @param {Number} $tick-stroke-thickness [null] - Sets the stroke thickness to use when rendering ticks.
|
|
40
|
-
/// @requires extend
|
|
40
|
+
/// @requires {function} extend
|
|
41
41
|
///
|
|
42
42
|
/// @example scss
|
|
43
43
|
/// $custom-gauge-theme: linear-gauge-theme($brushes: (red, green, blue));
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
/// @param {Number} $tick-stroke-thickness [null] - Sets the stroke thickness to use when rendering ticks.
|
|
86
86
|
/// @param {Color} $needle-pivot-brush [null] - Sets the color of the needle pivot point.
|
|
87
87
|
/// @param {Color} $needle-pivot-outline [null] - Sets the outline color of the needle pivot point.
|
|
88
|
-
/// @requires extend
|
|
88
|
+
/// @requires {function} extend
|
|
89
89
|
///
|
|
90
90
|
/// @example scss
|
|
91
91
|
/// $custom-gauge-theme: radial-gauge-theme($brushes: (red, green, blue));
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
19
19
|
/// @param {String} $plot-area-background [null]- Gets or sets the brush used as the background for the current Map object's plot area.
|
|
20
|
-
/// @requires extend
|
|
20
|
+
/// @requires {function} extend
|
|
21
21
|
///
|
|
22
22
|
/// @example scss
|
|
23
23
|
/// $my-map-theme: geo-map-theme($width: 550px);
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
/// @param {Color} $value-brush [null] - Sets the brush to use for the actual value element.
|
|
37
37
|
/// @param {Color} $value-outline [null] - Sets the brush to use for the outline of actual value element.
|
|
38
38
|
/// @param {Number} $value-stroke-thickness [null] - Sets the stroke thickness to use when rendering single actual value element.
|
|
39
|
-
/// @requires extend
|
|
39
|
+
/// @requires {function} extend
|
|
40
40
|
///
|
|
41
41
|
/// @example scss
|
|
42
42
|
/// $my-chart-theme: bullet-graph-theme($brushes: (orange, blue, pink));
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/// @param {String} $leader-line-type [null] - Sets what type of leader lines will be used for the outside end labels. Valid values are: 'straight', 'spline', and 'arc'.
|
|
27
27
|
/// @param {String} $leader-line-visibility [null] - Sets whether the leader lines are visible. Valid values are: 'visible' and 'collapsed'.
|
|
28
28
|
/// @param {Number} $radius-factor [null] - Sets the scaling factor of the chart's radius. Value between 0 and 1.
|
|
29
|
-
/// @requires extend
|
|
29
|
+
/// @requires {function} extend
|
|
30
30
|
///
|
|
31
31
|
/// @example scss
|
|
32
32
|
/// $my-chart-theme: pie-chart-theme($brushes: (red, orange, blue));
|