@materializecss/materialize 2.2.2 → 2.3.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 (58) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -91
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +7988 -9470
  5. package/dist/css/materialize.min.css +6 -6
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -8239
  8. package/dist/js/materialize.d.ts +2552 -2593
  9. package/dist/js/materialize.js +8375 -8244
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -8211
  12. package/package.json +95 -81
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -402
  14. package/sass/{components/_global.scss → _global.scss} +490 -469
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -172
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -102
  18. package/sass/{components/_typography.scss → _typography.scss} +58 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +56 -57
  20. package/sass/components/forms/_forms.scss +19 -18
  21. package/sass/materialize.scss +48 -43
  22. package/sass/{components/mixins.module.scss → mixins.module.scss} +168 -159
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_breadcrumb.scss +0 -27
  25. package/sass/components/_buttons.scss +0 -348
  26. package/sass/components/_cards.scss +0 -229
  27. package/sass/components/_carousel.scss +0 -93
  28. package/sass/components/_chips.scss +0 -140
  29. package/sass/components/_collapsible.scss +0 -83
  30. package/sass/components/_collection.scss +0 -114
  31. package/sass/components/_datepicker.scss +0 -263
  32. package/sass/components/_dropdown.scss +0 -82
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -42
  35. package/sass/components/_modal.scss +0 -75
  36. package/sass/components/_navbar.scss +0 -232
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_pagination.scss +0 -47
  39. package/sass/components/_preloader.scss +0 -420
  40. package/sass/components/_pulse.scss +0 -35
  41. package/sass/components/_sidenav.scss +0 -247
  42. package/sass/components/_slider.scss +0 -119
  43. package/sass/components/_tabs.scss +0 -167
  44. package/sass/components/_timepicker.scss +0 -294
  45. package/sass/components/_toast.scss +0 -68
  46. package/sass/components/_tooltip.scss +0 -40
  47. package/sass/components/_transitions.scss +0 -12
  48. package/sass/components/colors.module.scss +0 -74
  49. package/sass/components/forms/_checkboxes.scss +0 -199
  50. package/sass/components/forms/_file-input.scss +0 -41
  51. package/sass/components/forms/_input-fields.scss +0 -356
  52. package/sass/components/forms/_radio-buttons.scss +0 -112
  53. package/sass/components/forms/_range.scss +0 -158
  54. package/sass/components/forms/_select.scss +0 -103
  55. package/sass/components/forms/_switches.scss +0 -124
  56. package/sass/components/theme.module.scss +0 -140
  57. package/sass/components/tokens.module.scss +0 -272
  58. package/sass/components/typography.module.scss +0 -150
@@ -1,112 +0,0 @@
1
- // Remove default Radio Buttons
2
- [type="radio"]:not(:checked),
3
- [type="radio"]:checked {
4
- position: absolute;
5
- opacity: 0;
6
- pointer-events: none;
7
- }
8
-
9
- [type="radio"]:not(:checked) + span,
10
- [type="radio"]:checked + span {
11
- position: relative;
12
- padding-left: 35px;
13
- cursor: pointer;
14
- display: inline-block;
15
- height: 25px;
16
- line-height: 25px;
17
- font-size: 1rem;
18
- transition: .28s ease;
19
- user-select: none;
20
- }
21
-
22
- [type="radio"] + span:before,
23
- [type="radio"] + span:after {
24
- content: '';
25
- position: absolute;
26
- left: 0;
27
- top: 0;
28
- margin: 4px;
29
- width: 16px;
30
- height: 16px;
31
- z-index: 0;
32
- transition: .28s ease;
33
- }
34
-
35
- /* Unchecked styles */
36
- [type="radio"]:not(:checked) + span:before,
37
- [type="radio"]:not(:checked) + span:after,
38
- [type="radio"]:checked + span:before,
39
- [type="radio"]:checked + span:after,
40
- [type="radio"].with-gap:checked + span:before,
41
- [type="radio"].with-gap:checked + span:after {
42
- border-radius: 50%;
43
- }
44
-
45
- [type="radio"]:not(:checked) + span:before,
46
- [type="radio"]:not(:checked) + span:after {
47
- border: 2px solid var(--md-sys-color-on-surface-variant);
48
- }
49
-
50
- [type="radio"]:not(:checked) + span:after {
51
- transform: scale(0);
52
- }
53
-
54
- /* Checked styles */
55
- [type="radio"]:checked + span:before {
56
- border: 2px solid transparent;
57
- }
58
-
59
- [type="radio"]:checked + span:after,
60
- [type="radio"].with-gap:checked + span:before,
61
- [type="radio"].with-gap:checked + span:after {
62
- border: 2px solid var(--md-sys-color-primary);
63
- }
64
-
65
- [type="radio"]:checked + span:after,
66
- [type="radio"].with-gap:checked + span:after {
67
- background-color: var(--md-sys-color-primary);
68
- }
69
-
70
- [type="radio"]:checked + span:after {
71
- transform: scale(1.02);
72
- }
73
-
74
- /* Radio With gap */
75
- [type="radio"].with-gap:checked + span:after {
76
- transform: scale(.5);
77
- }
78
-
79
- /* Focused styles */
80
- [type="radio"].tabbed:focus + span:before {
81
- box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
82
- }
83
-
84
- /* Disabled Radio With gap */
85
- [type="radio"].with-gap:disabled:checked + span:before {
86
- border: 2px solid var(--md-sys-color-on-surface);
87
- }
88
-
89
- [type="radio"].with-gap:disabled:checked + span:after {
90
- border: none;
91
- background-color: var(--md-sys-color-on-surface);
92
- }
93
-
94
- /* Disabled style */
95
- [type="radio"]:disabled:not(:checked) + span:before,
96
- [type="radio"]:disabled:checked + span:before {
97
- background-color: transparent;
98
- border-color: var(--md-sys-color-on-surface);
99
- }
100
-
101
- [type="radio"]:disabled + span {
102
- color: var(--md-sys-color-on-surface);
103
- }
104
-
105
- [type="radio"]:disabled:not(:checked) + span:before {
106
- border-color: var(--md-sys-color-on-surface);
107
- }
108
-
109
- [type="radio"]:disabled:checked + span:after {
110
- background-color: var(--md-sys-color-on-surface);
111
- border-color: var(--md-sys-color-on-surface);
112
- }
@@ -1,158 +0,0 @@
1
- @use '../global' as *;
2
- @use '../colors.module.scss' as *;
3
-
4
- .range-field {
5
- position: relative;
6
- }
7
-
8
- input[type=range],
9
- input[type=range] + .thumb {
10
- @extend .no-select;
11
- cursor: pointer;
12
- }
13
-
14
- input[type=range] {
15
- position: relative;
16
- background: linear-gradient(var(--md-sys-color-outline-variant), var(--md-sys-color-outline-variant));
17
- border: none;
18
- outline: none;
19
- width: 100%;
20
- margin: 15px 0;
21
- padding: 0;
22
- height: 3px;
23
-
24
- &:focus {
25
- outline: none;
26
- }
27
- }
28
-
29
- input[type=range] + .thumb {
30
- position: absolute;
31
- top: 10px;
32
- left: 0;
33
- border: none;
34
- height: 0;
35
- width: 0;
36
- border-radius: 50%;
37
- background-color: var(--md-sys-color-primary);
38
- margin-left: 7px;
39
-
40
- transform-origin: 50% 50%;
41
- transform: rotate(-45deg);
42
-
43
- .value {
44
- display: block;
45
- width: 30px;
46
- text-align: center;
47
- color: var(--md-sys-color-primary);
48
- font-size: 0;
49
- transform: rotate(45deg);
50
- }
51
-
52
- &.active {
53
- border-radius: 50% 50% 50% 0;
54
-
55
- .value {
56
- color: var(--md-sys-color-on-primary);
57
- margin-left: -1px;
58
- margin-top: 8px;
59
- font-size: 10px;
60
- }
61
- }
62
- }
63
-
64
- // Shared
65
- @mixin range-track {
66
- height: 3px;
67
- @extend .surface-variant;
68
- border: none;
69
- }
70
-
71
- @mixin range-thumb {
72
- border: none;
73
- height: 14px;
74
- width: 14px;
75
- border-radius: 50%;
76
- background: var(--md-sys-color-primary);
77
- transition: box-shadow .3s;
78
- }
79
-
80
- // WebKit
81
- input[type=range] {
82
- appearance: none;
83
- -webkit-appearance: none;
84
- }
85
-
86
- input[type=range]::-webkit-slider-runnable-track {
87
- @include range-track;
88
- }
89
-
90
- input[type=range]::-webkit-slider-thumb {
91
- @include range-thumb;
92
- -webkit-appearance: none;
93
- background-color: var(--md-sys-color-primary);
94
- transform-origin: 50% 50%;
95
- margin: -5px 0 0 0;
96
-
97
- }
98
-
99
- .keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb {
100
- box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
101
- }
102
-
103
- // FireFox
104
- input[type=range] {
105
- /*required for proper track sizing in FF*/
106
- }
107
-
108
- input[type=range]::-moz-range-track {
109
- @include range-track;
110
- }
111
-
112
- input[type=range]::-moz-focus-inner {
113
- border: 0;
114
- }
115
-
116
- input[type=range]::-moz-range-thumb {
117
- @include range-thumb;
118
- margin-top: -5px;
119
- }
120
-
121
- // hide the outline behind the border
122
- input[type=range]:-moz-focusring {
123
- outline: 1px solid #fff;
124
- outline-offset: -1px;
125
- }
126
-
127
- .keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb {
128
- box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
129
- }
130
-
131
- //------------------------------- Remove this?
132
- // IE 10+
133
- input[type=range]::-ms-track {
134
- height: 3px;
135
- // remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
136
- background: transparent;
137
- // leave room for the larger thumb to overflow with a transparent border */
138
- border-color: transparent;
139
- border-width: 6px 0;
140
- /*remove default tick marks*/
141
- color: transparent;
142
- }
143
- input[type=range]::-ms-fill-lower,
144
- input[type=range]::-moz-range-progress {
145
- background: var(--md-sys-color-primary);
146
- }
147
- input[type=range]::-ms-fill-upper,
148
- input[type=range]::-moz-range-track {
149
- background: var(--md-sys-color-shadow-light);
150
- }
151
- input[type=range]::-ms-thumb {
152
- @include range-thumb;
153
- }
154
- //--------------------------------
155
-
156
- .keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {
157
- box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
158
- }
@@ -1,103 +0,0 @@
1
- @use '../variables' as *;
2
-
3
- select.browser-default {
4
- opacity: 1;
5
- color: var(--md-sys-color-on-background);
6
- }
7
-
8
- // TODO: Change to ".select" and not use tag name directly
9
- // Keep selects useable without javascript
10
-
11
- select {
12
- background-color: var(--md-sys-color-surface);
13
- width: 100%;
14
- padding: 5px;
15
- border: 1px solid var(--md-sys-color-outline-variant);
16
- border-radius: 2px;
17
- height: 3rem;
18
- }
19
-
20
- .select-wrapper:focus-within {
21
- outline: 2px solid var(--md-sys-color-primary);
22
- border-radius: 4px;
23
- }
24
-
25
- .select-wrapper {
26
- position: relative;
27
-
28
- .caret {
29
- position: absolute;
30
- right: 0;
31
- top: 0;
32
- bottom: 0;
33
- margin: auto 0;
34
- z-index: 0;
35
- fill: var(--md-sys-color-on-background);
36
- pointer-events: none;
37
- }
38
-
39
- // Hide select with overflow hidden instead of using display none
40
- // (this prevents form validation errors with hidden form elements)
41
- .hide-select {
42
- width: 0;
43
- height: 0;
44
- overflow: hidden;
45
- position: absolute;
46
- top: 0;
47
- z-index: -1;
48
- }
49
- }
50
-
51
- select:disabled {
52
- color: var(--md-sys-color-on-surface);
53
- }
54
-
55
- .select-wrapper.disabled {
56
- + label {
57
- color: var(--md-sys-color-on-surface);
58
- }
59
- .caret {
60
- fill: var(--md-sys-color-on-surface);
61
- }
62
- }
63
-
64
- .select-wrapper input.select-dropdown:disabled {
65
- color: var(--md-sys-color-on-surface);
66
- cursor: default;
67
- user-select: none;
68
- }
69
-
70
- .select-wrapper i {
71
- color: var(--md-sys-color-on-surface);
72
- }
73
-
74
- .select-dropdown li.disabled,
75
- .select-dropdown li.disabled > span,
76
- .select-dropdown li.optgroup {
77
- color: var(--md-sys-color-on-surface);
78
- //background-color: transparent;
79
- }
80
-
81
- // Icons
82
- .select-dropdown li {
83
- img {
84
- height: $dropdown-item-height - 10;
85
- width: $dropdown-item-height - 10;
86
- margin: 5px 15px;
87
- float: right;
88
- }
89
- }
90
-
91
- // Optgroup styles
92
- .select-dropdown li.optgroup {
93
- border-top: 1px solid rgba(0, 0, 0, 0.04);
94
- &.selected > span {
95
- color: var(--md-sys-color-on-background);
96
- }
97
- & > span {
98
- color: var(--md-sys-color-on-surface-variant);
99
- }
100
- & ~ li.optgroup-option {
101
- padding-left: 1rem;
102
- }
103
- }
@@ -1,124 +0,0 @@
1
- @use '../colors.module.scss' as *;
2
-
3
- .switch {
4
- --track-height: 32px;
5
- --track-width: 52px;
6
- --border-width: 2px;
7
- --size-off: 16px;
8
- --size-on: 24px;
9
- --icon-size: 16px;
10
- --gap-on: calc(((var(--track-height) - var(--size-on)) / 2) - var(--border-width));
11
- --gap-off: calc(((var(--track-height) - var(--size-off)) / 2) - var(--border-width));
12
- }
13
-
14
- .switch,
15
- .switch * {
16
- -webkit-tap-highlight-color: transparent;
17
- user-select: none;
18
- }
19
-
20
- .switch label {
21
- cursor: pointer;
22
- }
23
-
24
- .switch label input[type=checkbox] {
25
- opacity: 0;
26
- width: 0;
27
- height: 0;
28
-
29
- // CHECKED
30
- // Track
31
- &:checked + .lever{
32
- background-color: var(--md-sys-color-primary);
33
- border-color: var(--md-sys-color-primary);
34
- }
35
- // Dot
36
- &:checked + .lever {
37
- &:before, &:after {
38
- top: var(--gap-on);
39
- left: calc(var(--track-width) - var(--size-on) - var(--gap-on) - 2 * var(--border-width));
40
- width: var(--size-on);
41
- height: var(--size-on);
42
- }
43
- &:after {
44
- @extend .surface;
45
- }
46
- }
47
- }
48
-
49
- .switch label .lever {
50
- content: "";
51
- display: inline-block;
52
- position: relative;
53
- width: var(--track-width);
54
- height: var(--track-height);
55
- border-style: solid;
56
- border-width: 2px;
57
- border-color: var(--md-sys-color-outline);
58
-
59
- //@extend .surface-variant;
60
- background-color: var(--md-sys-color-surface-variant);
61
-
62
- border-radius: 15px;
63
- margin-right: 10px;
64
- transition: background 0.3s ease;
65
- vertical-align: middle;
66
- margin: 0 16px;
67
-
68
- // DOT
69
- &:before, &:after {
70
- content: "";
71
- position: absolute;
72
- display: inline-block;
73
- width: var(--size-off);
74
- height: var(--size-off);
75
- border-radius: 50%;
76
-
77
- left: var(--gap-off);
78
- top: var(--gap-off);
79
-
80
- transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
81
- }
82
-
83
- // NOT CHECKED [DOT]
84
- &:after {
85
- @extend .outline;
86
- height: var(--size-off);
87
- width: var(--size-off);
88
-
89
- //@extend .surface-variant;
90
- //box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
91
- }
92
- }
93
-
94
- input[type=checkbox]:not(:disabled) ~ .lever:active:before,
95
- input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before,
96
- input[type=checkbox]:not(:disabled) ~ .lever:hover::before {
97
- transform: scale(2.4);
98
- }
99
-
100
- input[type=checkbox]:checked:not(:disabled) ~ .lever:hover::before {
101
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
102
- }
103
-
104
- // Switch active style
105
- input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,
106
- input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before {
107
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
108
- }
109
-
110
- input[type=checkbox]:not(:disabled) ~ .lever:hover::before {
111
- background-color: rgba(0, 0, 0, 0.04);
112
- }
113
-
114
- input[type=checkbox]:not(:disabled) ~ .lever:active:before,
115
- input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {
116
- background-color: rgba(0, 0, 0, 0.12);
117
- }
118
-
119
- // Disabled Styles
120
- .switch input[type=checkbox][disabled] + .lever {
121
- cursor: default;
122
- opacity: 0.5;
123
- }
124
-
@@ -1,140 +0,0 @@
1
- /* System Defaults */
2
- :root, :host {
3
- color-scheme: light;
4
- --md-sys-color-primary: var(--md-sys-color-primary-light);
5
- --md-sys-color-on-primary: var(--md-sys-color-on-primary-light);
6
- --md-sys-color-primary-container: var(--md-sys-color-primary-container-light);
7
- --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-light);
8
- --md-sys-color-secondary: var(--md-sys-color-secondary-light);
9
- --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-light);
10
- --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-light);
11
- --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-light);
12
- --md-sys-color-tertiary: var(--md-sys-color-tertiary-light);
13
- --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-light);
14
- --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-light);
15
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-light);
16
- --md-sys-color-error: var(--md-sys-color-error-light);
17
- --md-sys-color-on-error: var(--md-sys-color-on-error-light);
18
- --md-sys-color-error-container: var(--md-sys-color-error-container-light);
19
- --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-light);
20
- --md-sys-color-outline: var(--md-sys-color-outline-light);
21
- --md-sys-color-background: var(--md-sys-color-background-light);
22
- --md-sys-color-on-background: var(--md-sys-color-on-background-light);
23
- --md-sys-color-surface: var(--md-sys-color-surface-light);
24
- --md-sys-color-on-surface: var(--md-sys-color-on-surface-light);
25
- --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-light);
26
- --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-light);
27
- --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-light);
28
- --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-light);
29
- --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-light);
30
- --md-sys-color-shadow: var(--md-sys-color-shadow-light);
31
- --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-light);
32
- --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-light);
33
- --md-sys-color-scrim: var(--md-sys-color-scrim-light);
34
- }
35
-
36
- @media (prefers-color-scheme: dark) {
37
- :root, :host {
38
- color-scheme: dark;
39
- --md-sys-color-primary: var(--md-sys-color-primary-dark);
40
- --md-sys-color-on-primary: var(--md-sys-color-on-primary-dark);
41
- --md-sys-color-primary-container: var(--md-sys-color-primary-container-dark);
42
- --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-dark);
43
- --md-sys-color-secondary: var(--md-sys-color-secondary-dark);
44
- --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-dark);
45
- --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-dark);
46
- --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-dark);
47
- --md-sys-color-tertiary: var(--md-sys-color-tertiary-dark);
48
- --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-dark);
49
- --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-dark);
50
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-dark);
51
- --md-sys-color-error: var(--md-sys-color-error-dark);
52
- --md-sys-color-on-error: var(--md-sys-color-on-error-dark);
53
- --md-sys-color-error-container: var(--md-sys-color-error-container-dark);
54
- --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-dark);
55
- --md-sys-color-outline: var(--md-sys-color-outline-dark);
56
- --md-sys-color-background: var(--md-sys-color-background-dark);
57
- --md-sys-color-on-background: var(--md-sys-color-on-background-dark);
58
- --md-sys-color-surface: var(--md-sys-color-surface-dark);
59
- --md-sys-color-on-surface: var(--md-sys-color-on-surface-dark);
60
- --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-dark);
61
- --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-dark);
62
- --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-dark);
63
- --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-dark);
64
- --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-dark);
65
- --md-sys-color-shadow: var(--md-sys-color-shadow-dark);
66
- --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-dark);
67
- --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-dark);
68
- --md-sys-color-scrim: var(--md-sys-color-scrim-dark);
69
- }
70
- }
71
-
72
- /* ===================================================================== Themes */
73
-
74
- :root[theme='light'] {
75
- color-scheme: light;
76
- --md-sys-color-primary: var(--md-sys-color-primary-light);
77
- --md-sys-color-on-primary: var(--md-sys-color-on-primary-light);
78
- --md-sys-color-primary-container: var(--md-sys-color-primary-container-light);
79
- --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-light);
80
- --md-sys-color-secondary: var(--md-sys-color-secondary-light);
81
- --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-light);
82
- --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-light);
83
- --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-light);
84
- --md-sys-color-tertiary: var(--md-sys-color-tertiary-light);
85
- --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-light);
86
- --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-light);
87
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-light);
88
- --md-sys-color-error: var(--md-sys-color-error-light);
89
- --md-sys-color-on-error: var(--md-sys-color-on-error-light);
90
- --md-sys-color-error-container: var(--md-sys-color-error-container-light);
91
- --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-light);
92
- --md-sys-color-outline: var(--md-sys-color-outline-light);
93
- --md-sys-color-background: var(--md-sys-color-background-light);
94
- --md-sys-color-on-background: var(--md-sys-color-on-background-light);
95
- --md-sys-color-surface: var(--md-sys-color-surface-light);
96
- --md-sys-color-on-surface: var(--md-sys-color-on-surface-light);
97
- --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-light);
98
- --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-light);
99
- --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-light);
100
- --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-light);
101
- --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-light);
102
- --md-sys-color-shadow: var(--md-sys-color-shadow-light);
103
- --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-light);
104
- --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-light);
105
- --md-sys-color-scrim: var(--md-sys-color-scrim-light);
106
- }
107
-
108
- :root[theme='dark'] {
109
- color-scheme: dark;
110
- --md-sys-color-primary: var(--md-sys-color-primary-dark);
111
- --md-sys-color-on-primary: var(--md-sys-color-on-primary-dark);
112
- --md-sys-color-primary-container: var(--md-sys-color-primary-container-dark);
113
- --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-dark);
114
- --md-sys-color-secondary: var(--md-sys-color-secondary-dark);
115
- --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-dark);
116
- --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-dark);
117
- --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-dark);
118
- --md-sys-color-tertiary: var(--md-sys-color-tertiary-dark);
119
- --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-dark);
120
- --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-dark);
121
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-dark);
122
- --md-sys-color-error: var(--md-sys-color-error-dark);
123
- --md-sys-color-on-error: var(--md-sys-color-on-error-dark);
124
- --md-sys-color-error-container: var(--md-sys-color-error-container-dark);
125
- --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-dark);
126
- --md-sys-color-outline: var(--md-sys-color-outline-dark);
127
- --md-sys-color-background: var(--md-sys-color-background-dark);
128
- --md-sys-color-on-background: var(--md-sys-color-on-background-dark);
129
- --md-sys-color-surface: var(--md-sys-color-surface-dark);
130
- --md-sys-color-on-surface: var(--md-sys-color-on-surface-dark);
131
- --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-dark);
132
- --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-dark);
133
- --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-dark);
134
- --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-dark);
135
- --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-dark);
136
- --md-sys-color-shadow: var(--md-sys-color-shadow-dark);
137
- --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-dark);
138
- --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-dark);
139
- --md-sys-color-scrim: var(--md-sys-color-scrim-dark);
140
- }