igniteui-theming 19.3.1 → 20.0.0-beta.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/json/colors/presets/palettes.json +1 -1
- package/package.json +7 -8
- package/sass/color/_functions.scss +67 -21
- package/sass/elevations/_functions.scss +1 -1
- package/sass/tailwind/_mixins.scss +62 -0
- package/sass/tailwind/themes/base.scss +12 -0
- package/sass/tailwind/{presets/bootstrap-dark.scss → themes/dark/bootstrap.scss} +4 -4
- package/sass/tailwind/themes/dark/fluent.scss +7 -0
- package/sass/tailwind/themes/dark/indigo.scss +7 -0
- package/sass/tailwind/{presets/material-dark.scss → themes/dark/material.scss} +4 -4
- package/sass/tailwind/{presets/bootstrap-light.scss → themes/light/bootstrap.scss} +4 -4
- package/sass/tailwind/themes/light/fluent.scss +7 -0
- package/sass/tailwind/themes/light/indigo.scss +7 -0
- package/sass/tailwind/{presets/material-light.scss → themes/light/material.scss} +4 -4
- package/sass/tailwind/utilities/_common.scss +288 -0
- package/sass/tailwind/utilities/bootstrap.scss +33 -0
- package/sass/tailwind/utilities/fluent.scss +33 -0
- package/sass/tailwind/utilities/indigo.scss +33 -0
- package/sass/tailwind/utilities/material.scss +31 -0
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/charts/_gauge-theme.scss +3 -2
- package/sass/themes/components/_config.scss +11 -0
- package/sass/themes/components/_index.scss +1 -0
- package/sass/themes/components/avatar/_avatar-theme.scss +2 -1
- package/sass/themes/components/badge/_badge-theme.scss +2 -1
- package/sass/themes/components/banner/_banner-theme.scss +2 -3
- package/sass/themes/components/bottom-nav/_bottom-nav-theme.scss +2 -1
- package/sass/themes/components/button/_button-theme.scss +2 -1
- package/sass/themes/components/button/_contained-button-theme.scss +2 -1
- package/sass/themes/components/button/_fab-button-theme.scss +2 -1
- package/sass/themes/components/button/_flat-button-theme.scss +2 -1
- package/sass/themes/components/button/_outlined-button-theme.scss +2 -1
- package/sass/themes/components/button-group/_button-group-theme.scss +2 -3
- package/sass/themes/components/calendar/_calendar-theme.scss +2 -3
- package/sass/themes/components/card/_card-theme.scss +2 -1
- package/sass/themes/components/carousel/_carousel-theme.scss +2 -1
- package/sass/themes/components/checkbox/_checkbox-theme.scss +2 -1
- package/sass/themes/components/chip/_chip-theme.scss +2 -3
- package/sass/themes/components/column-actions/_column-actions-theme.scss +2 -1
- package/sass/themes/components/combo/_combo-theme.scss +2 -3
- package/sass/themes/components/date-range-picker/_date-range-picker-theme.scss +2 -1
- package/sass/themes/components/dialog/_dialog-theme.scss +2 -3
- package/sass/themes/components/divider/_divider-theme.scss +2 -1
- package/sass/themes/components/dock-manager/_dock-manager-theme.scss +2 -1
- package/sass/themes/components/drop-down/_drop-down-theme.scss +2 -3
- package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +2 -1
- package/sass/themes/components/grid/_grid-summary-theme.scss +2 -3
- package/sass/themes/components/grid/_grid-theme.scss +2 -15
- package/sass/themes/components/grid/_grid-toolbar-theme.scss +2 -3
- package/sass/themes/components/highlight/_highlight-theme.scss +2 -3
- package/sass/themes/components/icon/_icon-theme.scss +2 -1
- package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +2 -1
- package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +2 -1
- package/sass/themes/components/icon-button/_icon-button-theme.scss +2 -1
- package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +2 -1
- package/sass/themes/components/input/_input-theme.scss +2 -3
- package/sass/themes/components/label/_label-theme.scss +2 -3
- package/sass/themes/components/list/_list-theme.scss +3 -2
- package/sass/themes/components/navbar/_navbar-theme.scss +2 -1
- package/sass/themes/components/navdrawer/_navdrawer-theme.scss +2 -1
- package/sass/themes/components/overlay/_overlay-theme.scss +2 -3
- package/sass/themes/components/paginator/_paginator-theme.scss +2 -1
- package/sass/themes/components/progress/_circular-theme.scss +2 -1
- package/sass/themes/components/progress/_linear-theme.scss +2 -1
- package/sass/themes/components/query-builder/_query-builder-theme.scss +2 -3
- package/sass/themes/components/radio/_radio-theme.scss +2 -1
- package/sass/themes/components/rating/_rating-theme.scss +2 -1
- package/sass/themes/components/ripple/_ripple-theme.scss +2 -3
- package/sass/themes/components/scrollbar/_scrollbar-theme.scss +1 -2
- package/sass/themes/components/select/_select-theme.scss +2 -3
- package/sass/themes/components/slider/_slider-theme.scss +2 -1
- package/sass/themes/components/snackbar/_snackbar-theme.scss +2 -1
- package/sass/themes/components/splitter/_splitter-theme.scss +2 -1
- package/sass/themes/components/stepper/_stepper-theme.scss +2 -3
- package/sass/themes/components/switch/_switch-theme.scss +2 -1
- package/sass/themes/components/tabs/_tabs-theme.scss +2 -1
- package/sass/themes/components/time-picker/_time-picker-theme.scss +2 -3
- package/sass/themes/components/toast/_toast-theme.scss +2 -1
- package/sass/themes/components/tooltip/_tooltip-theme.scss +2 -3
- package/sass/themes/components/tree/_tree-theme.scss +2 -3
- package/sass/themes/components/watermark/_watermark-theme.scss +2 -1
- package/sass/themes/schemas/components/dark/_chat.scss +27 -0
- package/sass/themes/schemas/components/light/_chat.scss +28 -0
- package/sass/themes/schemas/components/light/_grid.scss +0 -80
- package/tailwind/utilities/bootstrap.css +1 -0
- package/tailwind/utilities/fluent.css +1 -0
- package/tailwind/utilities/indigo.css +1 -0
- package/tailwind/utilities/material.css +1 -0
- package/sass/tailwind/presets/fluent-dark.scss +0 -7
- package/sass/tailwind/presets/fluent-light.scss +0 -7
- package/sass/tailwind/presets/indigo-dark.scss +0 -7
- package/sass/tailwind/presets/indigo-light.scss +0 -7
- package/sass/tailwind/theme.scss +0 -42
- /package/tailwind/{theme.css → themes/base.css} +0 -0
- /package/tailwind/{presets/bootstrap-dark.css → themes/dark/bootstrap.css} +0 -0
- /package/tailwind/{presets/fluent-dark.css → themes/dark/fluent.css} +0 -0
- /package/tailwind/{presets/indigo-dark.css → themes/dark/indigo.css} +0 -0
- /package/tailwind/{presets/material-dark.css → themes/dark/material.css} +0 -0
- /package/tailwind/{presets/bootstrap-light.css → themes/light/bootstrap.css} +0 -0
- /package/tailwind/{presets/fluent-light.css → themes/light/fluent.css} +0 -0
- /package/tailwind/{presets/indigo-light.css → themes/light/indigo.css} +0 -0
- /package/tailwind/{presets/material-light.css → themes/light/material.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"light-bootstrap-palette":{"primary":"#0d6efd","secondary":"#6c757d","gray":"
|
|
1
|
+
{"light-bootstrap-palette":{"primary":"#0d6efd","secondary":"#6c757d","gray":"rgb(147.62511, 158.1, 168.57489)","surface":"#f8f9fa","info":"#0dcaf0","success":"#198754","warn":"#ffc107","error":"#dc3545"},"dark-bootstrap-palette":{"primary":"#0d6efd","secondary":"#6c757d","gray":"rgb(181.53297, 188.7, 195.86703)","surface":"#212529","info":"#0dcaf0","success":"#198754","warn":"#ffc107","error":"#dc3545"},"light-material-palette":{"primary":"#0099ff","secondary":"#df1b74","gray":"rgb(158.1, 158.1, 158.1)","surface":"white","info":"#1377d5","success":"#4eb862","warn":"#faa419","error":"#ff134a"},"dark-material-palette":{"primary":"#0099ff","secondary":"#df1b74","gray":"rgb(188.7, 188.7, 188.7)","surface":"#222222","info":"#1377d5","success":"#4eb862","warn":"#faa419","error":"#ff134a"},"light-fluent-palette":{"primary":"#0078d4","secondary":"#2b88d8","gray":"rgb(158.1, 158.1, 158.1)","surface":"white","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"dark-fluent-palette":{"primary":"#0078d4","secondary":"#2b88d8","gray":"rgb(188.7, 188.7, 188.7)","surface":"#1b1b1b","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"light-indigo-palette":{"primary":"rgb(63, 81, 181)","secondary":"rgb(63, 81, 181)","gray":"rgb(154, 157, 162)","surface":"#f8f8fa","info":"rgb(156, 39, 176)","success":"rgb(104, 159, 56)","warn":"rgb(245, 107, 29)","error":"rgb(207, 26, 43)"},"dark-indigo-palette":{"primary":"rgb(63, 81, 181)","secondary":"rgb(63, 81, 181)","gray":"rgb(195, 196, 199)","surface":"#1e1f24","info":"rgb(156, 39, 176)","success":"rgb(104, 159, 56)","warn":"rgb(245, 107, 29)","error":"rgb(207, 26, 43)"}}
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-beta.2",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "npm run clean:json && npm run clean:docs",
|
|
8
8
|
"clean:json": "shx rm -rf json",
|
|
9
9
|
"clean:docs": "shx rm -rf docs",
|
|
10
|
-
"
|
|
10
|
+
"clean:tailwind": "shx rm -rf tailwind",
|
|
11
|
+
"build": "npm run clean && npm run build:json && npm run build:tailwind && npm run build:e2e",
|
|
11
12
|
"build:docs": "npm run clean:docs && npm run build:docs:en:production",
|
|
12
13
|
"build:docs:en:production": "set NODE_ENV=production && npx sassdoc ./sass -d docs",
|
|
13
14
|
"build:docs:en:staging": "set NODE_ENV=staging && npx sassdoc ./sass -d docs",
|
|
14
|
-
"build:e2e": "sass ./test/e2e/theme.scss ./test/e2e/theme.css",
|
|
15
|
+
"build:e2e": "sass --quiet ./test/e2e/theme.scss ./test/e2e/theme.css",
|
|
15
16
|
"build:json": "node scripts/buildJSON.mjs",
|
|
16
|
-
"build:tailwind": "node scripts/buildTailwind.mjs",
|
|
17
|
+
"build:tailwind": "npm run clean:tailwind && node scripts/buildTailwind.mjs",
|
|
17
18
|
"serve:docs": "npx http-server ./docs",
|
|
18
19
|
"preview:palette": "node scripts/previewPalette.mjs",
|
|
19
20
|
"lint": "npm run lint:styles && npm run lint:prettier",
|
|
@@ -92,14 +93,12 @@
|
|
|
92
93
|
"postcss": "^8.4.35",
|
|
93
94
|
"postcss-safe-parser": "^7.0.0",
|
|
94
95
|
"prettier": "^3.2.5",
|
|
95
|
-
"sass-
|
|
96
|
+
"sass-embedded": "^1.92.1",
|
|
97
|
+
"sass-true": "^9.0.0",
|
|
96
98
|
"sassdoc-plugin-localization": "^2.0.0",
|
|
97
99
|
"shx": "^0.3.4",
|
|
98
100
|
"stylelint": "^15.6.2",
|
|
99
101
|
"stylelint-config-standard-scss": "^7.0.1",
|
|
100
102
|
"stylelint-scss": "^4.7.0"
|
|
101
|
-
},
|
|
102
|
-
"peerDependencies": {
|
|
103
|
-
"sass": "^1.69.5"
|
|
104
103
|
}
|
|
105
104
|
}
|
|
@@ -151,7 +151,11 @@ $_enhanced-accessibility: false;
|
|
|
151
151
|
$len: list.length($lmap);
|
|
152
152
|
$i: list.index(map.keys($lmap), #{$shade});
|
|
153
153
|
$l: list.nth(map.values($lmap), if($lum > 0.5, $len - $i + 1, $i));
|
|
154
|
-
$raw: hsl(
|
|
154
|
+
$raw: hsl(
|
|
155
|
+
to-fixed(color.channel($color, 'hue', $space: hsl)),
|
|
156
|
+
to-fixed(color.channel($color, 'saturation', $space: hsl)),
|
|
157
|
+
$l
|
|
158
|
+
);
|
|
155
159
|
$hsl: #{hsl(from var(--ig-#{$name}-500) h s $l)};
|
|
156
160
|
|
|
157
161
|
@if #{$shade} == '500' {
|
|
@@ -160,23 +164,57 @@ $_enhanced-accessibility: false;
|
|
|
160
164
|
|
|
161
165
|
@return (raw: $raw, hsl: $hsl);
|
|
162
166
|
} @else {
|
|
163
|
-
$
|
|
164
|
-
$
|
|
165
|
-
$raw: hsl(
|
|
166
|
-
to-fixed(color.hue($color)),
|
|
167
|
-
to-fixed(color.saturation($color) * $sx),
|
|
168
|
-
to-fixed(color.lightness($color) * $lx)
|
|
169
|
-
);
|
|
170
|
-
$hsl: #{hsl(from var(--ig-#{$name}-500) h calc(s * $sx) calc(l * $lx))};
|
|
167
|
+
$hsl: null;
|
|
168
|
+
$raw: null;
|
|
171
169
|
|
|
172
170
|
@if #{$shade} == '500' {
|
|
173
171
|
$hsl: $color;
|
|
172
|
+
$raw: $color;
|
|
173
|
+
} @else {
|
|
174
|
+
$sx: map.get(multipliers.$color, 's', #{$shade});
|
|
175
|
+
$lx: map.get(multipliers.$color, 'l', #{$shade});
|
|
176
|
+
$raw: hsl(
|
|
177
|
+
to-fixed(color.channel($color, 'hue', $space: hsl)),
|
|
178
|
+
to-fixed(color.channel($color, 'saturation', $space: hsl) * $sx),
|
|
179
|
+
to-fixed(color.channel($color, 'lightness', $space: hsl) * $lx)
|
|
180
|
+
);
|
|
181
|
+
$hsl: #{hsl(from var(--ig-#{$name}-500) h calc(s * $sx) calc(l * $lx))};
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
@return (raw: $raw, hsl: $hsl);
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
187
|
|
|
188
|
+
/// Calculates a dynamic shade of a color by adjusting its lightness in LCH color space.
|
|
189
|
+
/// @access public
|
|
190
|
+
/// @param {Color} $color - The base color to shade.
|
|
191
|
+
/// @param {Number} $lightness [50] - The target lightness value to move toward.
|
|
192
|
+
/// @param {Number} $percentage [0.1] - The percentage to move toward the target lightness.
|
|
193
|
+
/// @param {Number} $offset [10] - The offset added or subtracted based on direction.
|
|
194
|
+
/// @returns {Color} - The dynamically shaded color in LCH color space
|
|
195
|
+
@function dynamic-shade($color, $lightness: 50, $factor: 0.1, $offset: 5) {
|
|
196
|
+
@return lch(from $color calc(l + ($lightness - l) * $factor + sign($lightness - l) * $offset) c h);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/// Normalizes a color value to ensure consistent format output.
|
|
200
|
+
/// This fixes issues with newer Sass versions that return RGB format with floating point precision.
|
|
201
|
+
/// @access private
|
|
202
|
+
/// @group Color
|
|
203
|
+
/// @param {Color} $color - The color to normalize.
|
|
204
|
+
/// @returns {Color} - The normalized color in hex format.
|
|
205
|
+
@function _normalize-color($color) {
|
|
206
|
+
@if meta.type-of($color) == 'color' {
|
|
207
|
+
// Round RGB channels to integers to maintain backward compatibility with older Sass behavior
|
|
208
|
+
$r: math.round(color.channel($color, 'red', $space: rgb));
|
|
209
|
+
$g: math.round(color.channel($color, 'green', $space: rgb));
|
|
210
|
+
$b: math.round(color.channel($color, 'blue', $space: rgb));
|
|
211
|
+
|
|
212
|
+
@return rgb($r, $g, $b);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@return $color;
|
|
216
|
+
}
|
|
217
|
+
|
|
180
218
|
/// Retrieves a color from a color palette.
|
|
181
219
|
/// @access public
|
|
182
220
|
/// @group Palettes
|
|
@@ -217,7 +255,11 @@ $_enhanced-accessibility: false;
|
|
|
217
255
|
$base: map.get($s, #{$variant});
|
|
218
256
|
$raw: map.get($s, #{$variant}-raw);
|
|
219
257
|
|
|
220
|
-
@return if(
|
|
258
|
+
@return if(
|
|
259
|
+
$contrast,
|
|
260
|
+
$_relative-color,
|
|
261
|
+
if($raw and $variant != '500', rgba($raw, $_alpha), _normalize-color($base))
|
|
262
|
+
);
|
|
221
263
|
}
|
|
222
264
|
|
|
223
265
|
@return $_relative-color;
|
|
@@ -335,13 +377,13 @@ $_enhanced-accessibility: false;
|
|
|
335
377
|
/// @return {Color} - The color representation of the rgba value.
|
|
336
378
|
@function to-opaque($color-1, $color-2: #fff) {
|
|
337
379
|
@if meta.type-of($color-1) == color and meta.type-of($color-2) == color {
|
|
338
|
-
$red: color.
|
|
339
|
-
$green: color.
|
|
340
|
-
$blue: color.
|
|
341
|
-
$a: color.
|
|
342
|
-
$r: math.floor($a * $red + (1 - $a) * color.
|
|
343
|
-
$g: math.floor($a * $green + (1 - $a) * color.
|
|
344
|
-
$b: math.floor($a * $blue + (1 - $a) * color.
|
|
380
|
+
$red: color.channel($color-1, 'red', $space: rgb);
|
|
381
|
+
$green: color.channel($color-1, 'green', $space: rgb);
|
|
382
|
+
$blue: color.channel($color-1, 'blue', $space: rgb);
|
|
383
|
+
$a: color.channel($color-1, 'alpha');
|
|
384
|
+
$r: math.floor($a * $red + (1 - $a) * color.channel($color-2, 'red', $space: rgb));
|
|
385
|
+
$g: math.floor($a * $green + (1 - $a) * color.channel($color-2, 'green', $space: rgb));
|
|
386
|
+
$b: math.floor($a * $blue + (1 - $a) * color.channel($color-2, 'blue', $space: rgb));
|
|
345
387
|
|
|
346
388
|
@return rgb($r, $g, $b);
|
|
347
389
|
}
|
|
@@ -358,7 +400,11 @@ $_enhanced-accessibility: false;
|
|
|
358
400
|
/// $hsl-list: to-hsl(#000); // (0deg, 0%, 0%);
|
|
359
401
|
/// @return {List} - This list of HSL values.
|
|
360
402
|
@function to-hsl($color) {
|
|
361
|
-
@return (
|
|
403
|
+
@return (
|
|
404
|
+
math.round(color.channel($color, 'hue', $space: hsl)),
|
|
405
|
+
math.round(color.channel($color, 'saturation', $space: hsl)),
|
|
406
|
+
math.round(color.channel($color, 'lightness', $space: hsl))
|
|
407
|
+
);
|
|
362
408
|
}
|
|
363
409
|
|
|
364
410
|
/// Calculates the contrast ratio between two colors.
|
|
@@ -395,9 +441,9 @@ $_enhanced-accessibility: false;
|
|
|
395
441
|
/// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests. WCAG 2.0 Contrast Ratio
|
|
396
442
|
@function luminance($color) {
|
|
397
443
|
@if meta.type-of($color) == 'color' {
|
|
398
|
-
$r: math.div(color.
|
|
399
|
-
$g: math.div(color.
|
|
400
|
-
$b: math.div(color.
|
|
444
|
+
$r: math.div(color.channel($color, 'red', $space: rgb), 255);
|
|
445
|
+
$g: math.div(color.channel($color, 'green', $space: rgb), 255);
|
|
446
|
+
$b: math.div(color.channel($color, 'blue', $space: rgb), 255);
|
|
401
447
|
|
|
402
448
|
@return 0.2126 * _lcv($r) + 0.7152 * _lcv($g) + 0.0722 * _lcv($b);
|
|
403
449
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use '../index' as *;
|
|
5
|
+
@use '../elevations/presets/material' as *;
|
|
6
|
+
|
|
7
|
+
$theme-schemas: () !default;
|
|
8
|
+
|
|
9
|
+
@mixin generate-color-vars {
|
|
10
|
+
@each $colorName, $shades in $IPaletteColors {
|
|
11
|
+
@each $shade in $shades {
|
|
12
|
+
--color-#{$colorName}-#{$shade}: var(--ig-#{$colorName}-#{$shade});
|
|
13
|
+
--color-#{$colorName}-#{$shade}-contrast: var(--ig-#{$colorName}-#{$shade}-contrast);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin generate-shadow-vars {
|
|
19
|
+
@each $level, $shadow in $elevations {
|
|
20
|
+
--shadow-elevation-#{$level}: var(--ig-elevation-#{$level});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin generate-typography-utilities {
|
|
25
|
+
@each $type in $ITypeScale {
|
|
26
|
+
@utility type-style-#{$type} {
|
|
27
|
+
@each $prop, $_ in $ITypeStyle {
|
|
28
|
+
#{$prop}: var(--ig-#{$type}-#{$prop});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin tailwind-theme($component, $props: ()) {
|
|
35
|
+
$has-theme: meta.function-exists(#{$component}-theme);
|
|
36
|
+
|
|
37
|
+
@if $has-theme {
|
|
38
|
+
$fn: meta.get-function(#{$component}-theme);
|
|
39
|
+
|
|
40
|
+
@each $_, $schema in $theme-schemas {
|
|
41
|
+
$_theme: meta.call($fn, $schema: $schema);
|
|
42
|
+
$_defaults: ();
|
|
43
|
+
|
|
44
|
+
@each $prop in $props {
|
|
45
|
+
$_defaults: map.merge(
|
|
46
|
+
$_defaults,
|
|
47
|
+
(
|
|
48
|
+
$prop: map.get($_theme, $prop),
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
$_t: meta.call($fn, $schema: $schema, $_defaults...);
|
|
54
|
+
$_name: map.get($_t, name);
|
|
55
|
+
$_variant: map.get($_t, _meta, variant);
|
|
56
|
+
|
|
57
|
+
@utility #{$_variant}-#{$component} {
|
|
58
|
+
@include css-vars-from-theme($_t, $_name);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
5
|
@include palette($dark-bootstrap-palette);
|
|
6
6
|
@include typography($bootstrap-typeface, $bootstrap-type-scale);
|
|
7
7
|
@include elevations($material-elevations);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
|
+
@include palette($dark-fluent-palette);
|
|
6
|
+
@include typography($fluent-typeface, $fluent-type-scale);
|
|
7
|
+
@include elevations($material-elevations);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
|
+
@include palette($dark-indigo-palette);
|
|
6
|
+
@include typography($indigo-typeface, $indigo-type-scale);
|
|
7
|
+
@include elevations($indigo-elevations);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
5
|
@include palette($dark-material-palette);
|
|
6
6
|
@include typography($material-typeface, $material-type-scale);
|
|
7
7
|
@include elevations($material-elevations);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
5
|
@include palette($light-bootstrap-palette);
|
|
6
6
|
@include typography($bootstrap-typeface, $bootstrap-type-scale);
|
|
7
7
|
@include elevations($material-elevations);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
|
+
@include palette($light-fluent-palette);
|
|
6
|
+
@include typography($fluent-typeface, $fluent-type-scale);
|
|
7
|
+
@include elevations($material-elevations);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
|
+
@include palette($light-indigo-palette);
|
|
6
|
+
@include typography($indigo-typeface, $indigo-type-scale);
|
|
7
|
+
@include elevations($indigo-elevations);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
1
|
+
@use '../../../index' as *;
|
|
2
|
+
@use '../../../color/presets' as *;
|
|
3
|
+
@use '../../../typography/presets' as *;
|
|
4
|
+
@use '../../../elevations/presets' as *;
|
|
5
5
|
@include palette($light-material-palette);
|
|
6
6
|
@include typography($material-typeface, $material-type-scale);
|
|
7
7
|
@include elevations($material-elevations);
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../themes/mixins' as *;
|
|
3
|
+
@use '../../themes/functions' as *;
|
|
4
|
+
@use '../_mixins.scss' as *;
|
|
5
|
+
|
|
6
|
+
$theme-schemas: () !default;
|
|
7
|
+
|
|
8
|
+
@mixin tailwind-themes() {
|
|
9
|
+
// Avatar
|
|
10
|
+
@include tailwind-theme(
|
|
11
|
+
$component: avatar,
|
|
12
|
+
$props: (
|
|
13
|
+
background,
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Badge
|
|
18
|
+
@include tailwind-theme(
|
|
19
|
+
$component: badge,
|
|
20
|
+
$props: (
|
|
21
|
+
background-color,
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
// Bottom Navigation
|
|
26
|
+
@include tailwind-theme(
|
|
27
|
+
$component: bottom-nav,
|
|
28
|
+
$props: (
|
|
29
|
+
background,
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
// Button Group
|
|
34
|
+
@include tailwind-theme(
|
|
35
|
+
$component: button-group,
|
|
36
|
+
$props: (
|
|
37
|
+
item-background,
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
// Flat Button
|
|
42
|
+
@include tailwind-theme(
|
|
43
|
+
$component: flat-button,
|
|
44
|
+
$props: (
|
|
45
|
+
foreground,
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// Contained Button
|
|
50
|
+
@include tailwind-theme(
|
|
51
|
+
$component: contained-button,
|
|
52
|
+
$props: (
|
|
53
|
+
background,
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
// Outlined Button
|
|
58
|
+
@include tailwind-theme(
|
|
59
|
+
$component: outlined-button,
|
|
60
|
+
$props: (
|
|
61
|
+
foreground,
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
// FAB Button
|
|
66
|
+
@include tailwind-theme(
|
|
67
|
+
$component: fab-button,
|
|
68
|
+
$props: (
|
|
69
|
+
background,
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
// Card
|
|
74
|
+
@include tailwind-theme(
|
|
75
|
+
$component: card,
|
|
76
|
+
$props: (
|
|
77
|
+
background,
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
// Chip
|
|
82
|
+
@include tailwind-theme(
|
|
83
|
+
$component: chip,
|
|
84
|
+
$props: (
|
|
85
|
+
background,
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// Carousel
|
|
90
|
+
@include tailwind-theme(
|
|
91
|
+
$component: carousel,
|
|
92
|
+
$props: (
|
|
93
|
+
button-background,
|
|
94
|
+
indicator-background,
|
|
95
|
+
)
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
// Calendar
|
|
99
|
+
@include tailwind-theme(
|
|
100
|
+
$component: calendar,
|
|
101
|
+
$props: (
|
|
102
|
+
header-background,
|
|
103
|
+
content-background,
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
// Checkbox
|
|
108
|
+
@include tailwind-theme(
|
|
109
|
+
$component: checkbox,
|
|
110
|
+
$props: (
|
|
111
|
+
empty-color,
|
|
112
|
+
fill-color,
|
|
113
|
+
)
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
// Combo
|
|
117
|
+
@include tailwind-theme(
|
|
118
|
+
$component: combo,
|
|
119
|
+
$props: (
|
|
120
|
+
toggle-button-background,
|
|
121
|
+
)
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
// // Expansion Panel
|
|
125
|
+
@include tailwind-theme(
|
|
126
|
+
$component: expansion-panel,
|
|
127
|
+
$props: (
|
|
128
|
+
header-background,
|
|
129
|
+
body-background,
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
// Grid
|
|
134
|
+
@include tailwind-theme(
|
|
135
|
+
$component: grid,
|
|
136
|
+
$props: (
|
|
137
|
+
content-background,
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
// Icon
|
|
142
|
+
@include tailwind-theme(
|
|
143
|
+
$component: icon,
|
|
144
|
+
$props: (
|
|
145
|
+
color,
|
|
146
|
+
)
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
// Flat Icon Button
|
|
150
|
+
@include tailwind-theme(
|
|
151
|
+
$component: flat-icon-button,
|
|
152
|
+
$props: (
|
|
153
|
+
foreground,
|
|
154
|
+
)
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
// Contained Icon Button
|
|
158
|
+
@include tailwind-theme(
|
|
159
|
+
$component: contained-icon-button,
|
|
160
|
+
$props: (
|
|
161
|
+
background,
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
// Outlined Icon Button
|
|
166
|
+
@include tailwind-theme(
|
|
167
|
+
$component: outlined-icon-button,
|
|
168
|
+
$props: (
|
|
169
|
+
foreground,
|
|
170
|
+
)
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
// Input Group
|
|
174
|
+
@include tailwind-theme(
|
|
175
|
+
$component: input-group,
|
|
176
|
+
$props: (
|
|
177
|
+
box-background,
|
|
178
|
+
search-background,
|
|
179
|
+
border-color,
|
|
180
|
+
)
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
// List
|
|
184
|
+
@include tailwind-theme(
|
|
185
|
+
$component: list,
|
|
186
|
+
$props: (
|
|
187
|
+
background,
|
|
188
|
+
item-background,
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
// Navbar
|
|
193
|
+
@include tailwind-theme(
|
|
194
|
+
$component: navbar,
|
|
195
|
+
$props: (
|
|
196
|
+
background,
|
|
197
|
+
)
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
// // Navdrawer
|
|
201
|
+
@include tailwind-theme(
|
|
202
|
+
$component: navdrawer,
|
|
203
|
+
$props: (
|
|
204
|
+
background,
|
|
205
|
+
)
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
// Query Builder
|
|
209
|
+
@include tailwind-theme(
|
|
210
|
+
$component: query-builder,
|
|
211
|
+
$props: (
|
|
212
|
+
background,
|
|
213
|
+
)
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
// Radio
|
|
217
|
+
@include tailwind-theme(
|
|
218
|
+
$component: radio,
|
|
219
|
+
$props: (
|
|
220
|
+
empty-color,
|
|
221
|
+
fill-color,
|
|
222
|
+
)
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
// Select
|
|
226
|
+
@include tailwind-theme(
|
|
227
|
+
$component: select,
|
|
228
|
+
$props: (
|
|
229
|
+
toggle-button-background,
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
// Snackbar
|
|
234
|
+
@include tailwind-theme(
|
|
235
|
+
$component: snackbar-theme,
|
|
236
|
+
$props: (
|
|
237
|
+
background,
|
|
238
|
+
)
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
// Splitter
|
|
242
|
+
@include tailwind-theme(
|
|
243
|
+
$component: splitter,
|
|
244
|
+
$props: (
|
|
245
|
+
bar-color,
|
|
246
|
+
)
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
// Stepper
|
|
250
|
+
@include tailwind-theme(
|
|
251
|
+
$component: stepper,
|
|
252
|
+
$props: (
|
|
253
|
+
step-background,
|
|
254
|
+
)
|
|
255
|
+
);
|
|
256
|
+
|
|
257
|
+
// Tabs
|
|
258
|
+
@include tailwind-theme(
|
|
259
|
+
$component: tabs,
|
|
260
|
+
$props: (
|
|
261
|
+
item-background,
|
|
262
|
+
)
|
|
263
|
+
);
|
|
264
|
+
|
|
265
|
+
// Toast
|
|
266
|
+
@include tailwind-theme(
|
|
267
|
+
$component: toast,
|
|
268
|
+
$props: (
|
|
269
|
+
background,
|
|
270
|
+
)
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
// Tooltip
|
|
274
|
+
@include tailwind-theme(
|
|
275
|
+
$component: tooltip,
|
|
276
|
+
$props: (
|
|
277
|
+
background,
|
|
278
|
+
)
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
// Tree - use with tree-node, not tree directly
|
|
282
|
+
@include tailwind-theme(
|
|
283
|
+
$component: tree,
|
|
284
|
+
$props: (
|
|
285
|
+
background,
|
|
286
|
+
)
|
|
287
|
+
);
|
|
288
|
+
}
|