@vandeurenglenn/lite-elements 0.3.18

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 (158) hide show
  1. package/exports/banner/banner.d.ts +7 -0
  2. package/exports/banner.js +68 -0
  3. package/exports/bundle/banner.js +37 -0
  4. package/exports/bundle/button.js +144 -0
  5. package/exports/bundle/card.js +140 -0
  6. package/exports/bundle/code.js +35 -0
  7. package/exports/bundle/custom-element-c2e883ba.js +1 -0
  8. package/exports/bundle/demo-elements.js +1 -0
  9. package/exports/bundle/demo-icons.js +16 -0
  10. package/exports/bundle/demo-shell.js +540 -0
  11. package/exports/bundle/demo.js +457 -0
  12. package/exports/bundle/dial.js +1 -0
  13. package/exports/bundle/dialog.js +149 -0
  14. package/exports/bundle/divider.js +21 -0
  15. package/exports/bundle/drawer-button.js +18 -0
  16. package/exports/bundle/drawer-item.js +39 -0
  17. package/exports/bundle/drawer-layout.js +96 -0
  18. package/exports/bundle/drawer.js +56 -0
  19. package/exports/bundle/dropdown-menu.js +59 -0
  20. package/exports/bundle/dropdown.js +26 -0
  21. package/exports/bundle/elements.js +1 -0
  22. package/exports/bundle/elevation.js +56 -0
  23. package/exports/bundle/hour-field.js +1 -0
  24. package/exports/bundle/icon-button.js +13 -0
  25. package/exports/bundle/icon-set.js +5 -0
  26. package/exports/bundle/icon.js +16 -0
  27. package/exports/bundle/index-3c006227.js +1 -0
  28. package/exports/bundle/index.html +590 -0
  29. package/exports/bundle/input.js +6 -0
  30. package/exports/bundle/it-d4d177bf.js +1 -0
  31. package/exports/bundle/list-item.js +43 -0
  32. package/exports/bundle/list.js +1 -0
  33. package/exports/bundle/menu.js +13 -0
  34. package/exports/bundle/menu2.js +1 -0
  35. package/exports/bundle/minute-field.js +5 -0
  36. package/exports/bundle/pages.js +43 -0
  37. package/exports/bundle/pane.js +96 -0
  38. package/exports/bundle/property-58e28172.js +11 -0
  39. package/exports/bundle/query-73dacde5.js +1 -0
  40. package/exports/bundle/rail.js +58 -0
  41. package/exports/bundle/root.js +8 -0
  42. package/exports/bundle/scroll-mixin.js +1 -0
  43. package/exports/bundle/section.js +11 -0
  44. package/exports/bundle/section2.js +25 -0
  45. package/exports/bundle/select-mixin.js +1 -0
  46. package/exports/bundle/selector-mixin.js +1 -0
  47. package/exports/bundle/selector.js +31 -0
  48. package/exports/bundle/supporting-pane.js +47 -0
  49. package/exports/bundle/tab.js +22 -0
  50. package/exports/bundle/tabs.js +51 -0
  51. package/exports/bundle/text-field.js +10 -0
  52. package/exports/bundle/theme.js +1 -0
  53. package/exports/bundle/themes/default/colors.module.css +180 -0
  54. package/exports/bundle/themes/default/missing/motion.css +4 -0
  55. package/exports/bundle/themes/default/missing/shape.css +13 -0
  56. package/exports/bundle/themes/default/missing/theme.dark.css +5 -0
  57. package/exports/bundle/themes/default/missing/theme.light.css +5 -0
  58. package/exports/bundle/themes/default/missing/tokens.css +9 -0
  59. package/exports/bundle/themes/default/theme.css +10 -0
  60. package/exports/bundle/themes/default/theme.dark.css +33 -0
  61. package/exports/bundle/themes/default/theme.light.css +33 -0
  62. package/exports/bundle/themes/default/tokens.css +256 -0
  63. package/exports/bundle/themes/default/typography.module.css +150 -0
  64. package/exports/bundle/time-picker.js +21 -0
  65. package/exports/bundle/title.js +1 -0
  66. package/exports/bundle/toggle-button.js +4 -0
  67. package/exports/bundle/toggle.js +5 -0
  68. package/exports/bundle/top-app-bar-e6e33a9e.js +114 -0
  69. package/exports/bundle/top-app-bar.js +1 -0
  70. package/exports/bundle/types.js +1 -0
  71. package/exports/bundle/typography.js +156 -0
  72. package/exports/button.js +227 -0
  73. package/exports/card/card.d.ts +13 -0
  74. package/exports/card.js +187 -0
  75. package/exports/code.js +77 -0
  76. package/exports/demo-elements.d.ts +9 -0
  77. package/exports/demo-elements.js +10 -0
  78. package/exports/demo-icons.js +48 -0
  79. package/exports/demo-shell.js +648 -0
  80. package/exports/demo.js +524 -0
  81. package/exports/dial.js +1 -0
  82. package/exports/dialog.js +256 -0
  83. package/exports/divider/divider.d.ts +17 -0
  84. package/exports/divider.js +54 -0
  85. package/exports/drawer/drawer-button.d.ts +9 -0
  86. package/exports/drawer/drawer-layout.d.ts +19 -0
  87. package/exports/drawer/drawer.d.ts +13 -0
  88. package/exports/drawer-button.js +83 -0
  89. package/exports/drawer-item.js +69 -0
  90. package/exports/drawer-layout.js +209 -0
  91. package/exports/drawer.js +140 -0
  92. package/exports/dropdown-menu.js +172 -0
  93. package/exports/dropdown.js +68 -0
  94. package/exports/elements.d.ts +63 -0
  95. package/exports/elements.js +41 -0
  96. package/exports/elevation/elevation.d.ts +11 -0
  97. package/exports/elevation.js +97 -0
  98. package/exports/hour-field.js +1 -0
  99. package/exports/icon-button.js +59 -0
  100. package/exports/icon-set.js +52 -0
  101. package/exports/icon.js +103 -0
  102. package/exports/input.js +36 -0
  103. package/exports/list/list.d.ts +1 -0
  104. package/exports/list-item.js +127 -0
  105. package/exports/list.js +1 -0
  106. package/exports/menu.js +68 -0
  107. package/exports/menu2.js +1 -0
  108. package/exports/minute-field.js +36 -0
  109. package/exports/mixins/scroll-mixin.d.ts +13 -0
  110. package/exports/mixins/select-mixin.d.ts +32 -0
  111. package/exports/mixins/selector-mixin.d.ts +8 -0
  112. package/exports/pages.js +88 -0
  113. package/exports/pane/pane.d.ts +14 -0
  114. package/exports/pane.js +182 -0
  115. package/exports/rail/rail.d.ts +9 -0
  116. package/exports/rail.js +124 -0
  117. package/exports/root.js +39 -0
  118. package/exports/scroll-mixin.js +36 -0
  119. package/exports/section.js +54 -0
  120. package/exports/section2.js +58 -0
  121. package/exports/select-mixin.js +139 -0
  122. package/exports/selector-mixin.js +43 -0
  123. package/exports/selector.js +63 -0
  124. package/exports/supporting-pane/supporting-pane.d.ts +12 -0
  125. package/exports/supporting-pane.js +133 -0
  126. package/exports/tab.js +47 -0
  127. package/exports/tabs/menu.d.ts +1 -0
  128. package/exports/tabs/tab.d.ts +4 -0
  129. package/exports/tabs/tabs.d.ts +5 -0
  130. package/exports/tabs.js +80 -0
  131. package/exports/text-field.js +88 -0
  132. package/exports/theme/theme.d.ts +15 -0
  133. package/exports/theme.js +123 -0
  134. package/exports/themes/default/colors.module.css +180 -0
  135. package/exports/themes/default/missing/motion.css +4 -0
  136. package/exports/themes/default/missing/shape.css +13 -0
  137. package/exports/themes/default/missing/theme.dark.css +5 -0
  138. package/exports/themes/default/missing/theme.light.css +5 -0
  139. package/exports/themes/default/missing/tokens.css +9 -0
  140. package/exports/themes/default/theme.css +10 -0
  141. package/exports/themes/default/theme.dark.css +33 -0
  142. package/exports/themes/default/theme.light.css +33 -0
  143. package/exports/themes/default/tokens.css +256 -0
  144. package/exports/themes/default/typography.module.css +150 -0
  145. package/exports/time-picker/dial.d.ts +1 -0
  146. package/exports/time-picker/hour-field.d.ts +1 -0
  147. package/exports/time-picker.js +52 -0
  148. package/exports/title.js +1 -0
  149. package/exports/toggle/toggle-button.d.ts +13 -0
  150. package/exports/toggle-button.js +63 -0
  151. package/exports/toggle.js +78 -0
  152. package/exports/top-app-bar.js +143 -0
  153. package/exports/tslib.es6-d3ba6528.js +57 -0
  154. package/exports/types.d.ts +18 -0
  155. package/exports/types.js +1 -0
  156. package/exports/typography/title.d.ts +1 -0
  157. package/exports/typography.js +206 -0
  158. package/package.json +256 -0
@@ -0,0 +1,123 @@
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-d3ba6528.js';
2
+ import { customElement, property, LiteElement } from '@vandeurenglenn/lite';
3
+
4
+ // @material-symbols
5
+ let CustomTheme = (() => {
6
+ let _classDecorators = [customElement('custom-theme')];
7
+ let _classDescriptor;
8
+ let _classExtraInitializers = [];
9
+ let _classThis;
10
+ let _classSuper = LiteElement;
11
+ let _loadFont_decorators;
12
+ let _loadFont_initializers = [];
13
+ let _loadFont_extraInitializers = [];
14
+ let _narrowTrigger_decorators;
15
+ let _narrowTrigger_initializers = [];
16
+ let _narrowTrigger_extraInitializers = [];
17
+ let _narrow_decorators;
18
+ let _narrow_initializers = [];
19
+ let _narrow_extraInitializers = [];
20
+ (class extends _classSuper {
21
+ static { _classThis = this; }
22
+ static {
23
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
24
+ _loadFont_decorators = [property({ type: Boolean })];
25
+ _narrowTrigger_decorators = [property({ type: String, attribute: 'mobile-trigger' })];
26
+ _narrow_decorators = [property({ type: Boolean })];
27
+ __esDecorate(this, null, _loadFont_decorators, { kind: "accessor", name: "loadFont", static: false, private: false, access: { has: obj => "loadFont" in obj, get: obj => obj.loadFont, set: (obj, value) => { obj.loadFont = value; } }, metadata: _metadata }, _loadFont_initializers, _loadFont_extraInitializers);
28
+ __esDecorate(this, null, _narrowTrigger_decorators, { kind: "accessor", name: "narrowTrigger", static: false, private: false, access: { has: obj => "narrowTrigger" in obj, get: obj => obj.narrowTrigger, set: (obj, value) => { obj.narrowTrigger = value; } }, metadata: _metadata }, _narrowTrigger_initializers, _narrowTrigger_extraInitializers);
29
+ __esDecorate(this, null, _narrow_decorators, { kind: "accessor", name: "narrow", static: false, private: false, access: { has: obj => "narrow" in obj, get: obj => obj.narrow, set: (obj, value) => { obj.narrow = value; } }, metadata: _metadata }, _narrow_initializers, _narrow_extraInitializers);
30
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
31
+ _classThis = _classDescriptor.value;
32
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
33
+ __runInitializers(_classThis, _classExtraInitializers);
34
+ }
35
+ #loadFont_accessor_storage = __runInitializers(this, _loadFont_initializers, true);
36
+ get loadFont() { return this.#loadFont_accessor_storage; }
37
+ set loadFont(value) { this.#loadFont_accessor_storage = value; }
38
+ #narrowTrigger_accessor_storage = (__runInitializers(this, _loadFont_extraInitializers), __runInitializers(this, _narrowTrigger_initializers, '(max-width: 860px)'));
39
+ get narrowTrigger() { return this.#narrowTrigger_accessor_storage; }
40
+ set narrowTrigger(value) { this.#narrowTrigger_accessor_storage = value; }
41
+ #narrow_accessor_storage = (__runInitializers(this, _narrowTrigger_extraInitializers), __runInitializers(this, _narrow_initializers, void 0));
42
+ get narrow() { return this.#narrow_accessor_storage; }
43
+ set narrow(value) { this.#narrow_accessor_storage = value; }
44
+ #loadLink(href, rel, attributes) {
45
+ let link = document.createElement('link');
46
+ link.rel = rel;
47
+ link.href = href;
48
+ if (attributes) {
49
+ for (const attribute of attributes) {
50
+ link.setAttribute(attribute, '');
51
+ }
52
+ }
53
+ document.head.appendChild(link);
54
+ }
55
+ #generateSymbolsLink() {
56
+ let link = 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0&display=swap';
57
+ if (globalThis.symbols) {
58
+ link += `&text=${globalThis.symbols}`;
59
+ }
60
+ return link;
61
+ }
62
+ constructor() {
63
+ super();
64
+ const media = matchMedia('(max-width: 860px)');
65
+ media.onchange = this.#mediaQueryChange;
66
+ this.#mediaQueryChange({ matches: media.matches });
67
+ // this.load('./themes/default/tokens.js')
68
+ this.load('./themes/default/theme.css');
69
+ const style = document.createElement('style');
70
+ style.innerHTML = `
71
+ html, body {
72
+ inset: 0;
73
+ position: absolute;
74
+ margin: 0;
75
+ background: var(--md-sys-color-background);
76
+ color: var(--md-sys-color-on-background);
77
+ overflow: hidden;
78
+ }`;
79
+ document.head.appendChild(style);
80
+ const loadSymbols = this.hasAttribute('load-symbols') ? this.getAttribute('load-symbols') !== 'false' : true;
81
+ if (this.loadFont || loadSymbols)
82
+ this.#loadLink('https://fonts.googleapis.com', 'preconnect');
83
+ this.#loadLink('https://fonts.gstatic.com', 'preconnect', ['crossorigin']);
84
+ if (this.loadFont)
85
+ this.#loadLink('https://fonts.googleapis.com/css2?family=Roboto&display=swap', 'stylesheet');
86
+ if (loadSymbols)
87
+ this.#loadLink(this.#generateSymbolsLink(), 'stylesheet');
88
+ }
89
+ #mediaQueryChange = (__runInitializers(this, _narrow_extraInitializers), ({ matches }) => {
90
+ this.narrow = matches;
91
+ document.dispatchEvent(new CustomEvent('custom-theme-narrow', { detail: this.narrow }));
92
+ });
93
+ set language(value) {
94
+ this.setAttribute('language', value);
95
+ }
96
+ // todo: support css & json
97
+ get language() {
98
+ return this.getAttribute('language') || 'css';
99
+ }
100
+ /**
101
+ * loads given path and converst (when needed) to css variables
102
+ * @param {string} path
103
+ */
104
+ async load(path) {
105
+ if (this.language === 'js') {
106
+ const importee = await import(path);
107
+ for (const [property, value] of Object.entries(importee)) {
108
+ const cssProperty = `--${property.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase()}`;
109
+ document.body.style.setProperty(cssProperty, value);
110
+ }
111
+ }
112
+ else if (this.language === 'css') {
113
+ const link = document.createElement('link');
114
+ link.rel = 'stylesheet';
115
+ link.href = path;
116
+ document.head.appendChild(link);
117
+ }
118
+ }
119
+ });
120
+ return _classThis;
121
+ })();
122
+
123
+ export { CustomTheme };
@@ -0,0 +1,180 @@
1
+ .primary {
2
+ background-color: var(--md-sys-color-primary);
3
+ }
4
+ .primary-text {
5
+ color: var(--md-sys-color-primary);
6
+ }
7
+ .on-primary {
8
+ background-color: var(--md-sys-color-on-primary);
9
+ }
10
+ .on-primary-text {
11
+ color: var(--md-sys-color-on-primary);
12
+ }
13
+ .primary-container {
14
+ background-color: var(--md-sys-color-primary-container);
15
+ }
16
+ .primary-container-text {
17
+ color: var(--md-sys-color-primary-container);
18
+ }
19
+ .on-primary-container {
20
+ background-color: var(--md-sys-color-on-primary-container);
21
+ }
22
+ .on-primary-container-text {
23
+ color: var(--md-sys-color-on-primary-container);
24
+ }
25
+ .secondary {
26
+ background-color: var(--md-sys-color-secondary);
27
+ }
28
+ .secondary-text {
29
+ color: var(--md-sys-color-secondary);
30
+ }
31
+ .on-secondary {
32
+ background-color: var(--md-sys-color-on-secondary);
33
+ }
34
+ .on-secondary-text {
35
+ color: var(--md-sys-color-on-secondary);
36
+ }
37
+ .secondary-container {
38
+ background-color: var(--md-sys-color-secondary-container);
39
+ }
40
+ .secondary-container-text {
41
+ color: var(--md-sys-color-secondary-container);
42
+ }
43
+ .on-secondary-container {
44
+ background-color: var(--md-sys-color-on-secondary-container);
45
+ }
46
+ .on-secondary-container-text {
47
+ color: var(--md-sys-color-on-secondary-container);
48
+ }
49
+ .tertiary {
50
+ background-color: var(--md-sys-color-tertiary);
51
+ }
52
+ .tertiary-text {
53
+ color: var(--md-sys-color-tertiary);
54
+ }
55
+ .on-tertiary {
56
+ background-color: var(--md-sys-color-on-tertiary);
57
+ }
58
+ .on-tertiary-text {
59
+ color: var(--md-sys-color-on-tertiary);
60
+ }
61
+ .tertiary-container {
62
+ background-color: var(--md-sys-color-tertiary-container);
63
+ }
64
+ .tertiary-container-text {
65
+ color: var(--md-sys-color-tertiary-container);
66
+ }
67
+ .on-tertiary-container {
68
+ background-color: var(--md-sys-color-on-tertiary-container);
69
+ }
70
+ .on-tertiary-container-text {
71
+ color: var(--md-sys-color-on-tertiary-container);
72
+ }
73
+ .error {
74
+ background-color: var(--md-sys-color-error);
75
+ }
76
+ .error-text {
77
+ color: var(--md-sys-color-error);
78
+ }
79
+ .on-error {
80
+ background-color: var(--md-sys-color-on-error);
81
+ }
82
+ .on-error-text {
83
+ color: var(--md-sys-color-on-error);
84
+ }
85
+ .error-container {
86
+ background-color: var(--md-sys-color-error-container);
87
+ }
88
+ .error-container-text {
89
+ color: var(--md-sys-color-error-container);
90
+ }
91
+ .on-error-container {
92
+ background-color: var(--md-sys-color-on-error-container);
93
+ }
94
+ .on-error-container-text {
95
+ color: var(--md-sys-color-on-error-container);
96
+ }
97
+ .outline {
98
+ background-color: var(--md-sys-color-outline);
99
+ }
100
+ .outline-text {
101
+ color: var(--md-sys-color-outline);
102
+ }
103
+ .background {
104
+ background-color: var(--md-sys-color-background);
105
+ }
106
+ .background-text {
107
+ color: var(--md-sys-color-background);
108
+ }
109
+ .on-background {
110
+ background-color: var(--md-sys-color-on-background);
111
+ }
112
+ .on-background-text {
113
+ color: var(--md-sys-color-on-background);
114
+ }
115
+ .surface {
116
+ background-color: var(--md-sys-color-surface);
117
+ }
118
+ .surface-text {
119
+ color: var(--md-sys-color-surface);
120
+ }
121
+ .on-surface {
122
+ background-color: var(--md-sys-color-on-surface);
123
+ }
124
+ .on-surface-text {
125
+ color: var(--md-sys-color-on-surface);
126
+ }
127
+ .surface-variant {
128
+ background-color: var(--md-sys-color-surface-variant);
129
+ }
130
+ .surface-variant-text {
131
+ color: var(--md-sys-color-surface-variant);
132
+ }
133
+ .on-surface-variant {
134
+ background-color: var(--md-sys-color-on-surface-variant);
135
+ }
136
+ .on-surface-variant-text {
137
+ color: var(--md-sys-color-on-surface-variant);
138
+ }
139
+ .inverse-surface {
140
+ background-color: var(--md-sys-color-inverse-surface);
141
+ }
142
+ .inverse-surface-text {
143
+ color: var(--md-sys-color-inverse-surface);
144
+ }
145
+ .inverse-on-surface {
146
+ background-color: var(--md-sys-color-inverse-on-surface);
147
+ }
148
+ .inverse-on-surface-text {
149
+ color: var(--md-sys-color-inverse-on-surface);
150
+ }
151
+ .inverse-primary {
152
+ background-color: var(--md-sys-color-inverse-primary);
153
+ }
154
+ .inverse-primary-text {
155
+ color: var(--md-sys-color-inverse-primary);
156
+ }
157
+ .shadow {
158
+ background-color: var(--md-sys-color-shadow);
159
+ }
160
+ .shadow-text {
161
+ color: var(--md-sys-color-shadow);
162
+ }
163
+ .surface-tint {
164
+ background-color: var(--md-sys-color-surface-tint);
165
+ }
166
+ .surface-tint-text {
167
+ color: var(--md-sys-color-surface-tint);
168
+ }
169
+ .outline-variant {
170
+ background-color: var(--md-sys-color-outline-variant);
171
+ }
172
+ .outline-variant-text {
173
+ color: var(--md-sys-color-outline-variant);
174
+ }
175
+ .scrim {
176
+ background-color: var(--md-sys-color-scrim);
177
+ }
178
+ .scrim-text {
179
+ color: var(--md-sys-color-scrim);
180
+ }
@@ -0,0 +1,4 @@
1
+ :root {
2
+ --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
3
+ --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
4
+ }
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --md-sys-shape-corner-none: 0;
3
+ --md-sys-shape-corner-extra-small: 4px;
4
+ --md-sys-shape-corner-extra-small-top: 4px 4px 0 0;
5
+ --md-sys-shape-corner-small: 8px;
6
+ --md-sys-shape-corner-medium: 12px;
7
+ --md-sys-shape-corner-large: 16px;
8
+ --md-sys-shape-corner-large-end: 0 16px 16px 0;
9
+ --md-sys-shape-corner-large-top: 16px 16px 0 0;
10
+ --md-sys-shape-corner-extra-large: 28px;
11
+ --md-sys-shape-corner-extra-large-top: 28px 28px 0 0;
12
+ --md-sys-shape-corner-full: 100%;
13
+ }
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --md-sys-color-surface-container: var(--md-sys-color-surface-container-dark);
3
+ --md-sys-color-surface-container-high: var(--md-sys-color-surface-container-high-dark);
4
+ --md-sys-color-surface-container-highest: var(--md-sys-color-surface-container-highest-dark);
5
+ }
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --md-sys-color-surface-container: var(--md-sys-color-surface-container-light);
3
+ --md-sys-color-surface-container-high: var(--md-sys-color-surface-container-high-light);
4
+ --md-sys-color-surface-container-highest: var(--md-sys-color-surface-container-highest-light);
5
+ }
@@ -0,0 +1,9 @@
1
+ :root {
2
+ --md-sys-color-surface-container-light: var(--md-ref-palette-neutral99);
3
+ --md-sys-color-surface-container-high-light: var(--md-ref-palette-neutral95);
4
+ --md-sys-color-surface-container-highest-light: var(--md-ref-palette-neutral90);
5
+
6
+ --md-sys-color-surface-container-dark: var(--md-ref-palette-neutral10);
7
+ --md-sys-color-surface-container-high-dark: var(--md-ref-palette-neutral20);
8
+ --md-sys-color-surface-container-highest-dark: var(--md-ref-palette-neutral30);
9
+ }
@@ -0,0 +1,10 @@
1
+ @import url(tokens.css);
2
+ @import url(colors.module.css);
3
+ @import url(typography.module.css);
4
+ @import url(missing/motion.css);
5
+ @import url(missing/shape.css);
6
+ @import url(missing/tokens.css);
7
+ @import url(missing/theme.dark.css) (prefers-color-scheme: dark);
8
+ @import url(missing/theme.light.css) (prefers-color-scheme: light);
9
+ @import url(theme.light.css) (prefers-color-scheme: light);
10
+ @import url(theme.dark.css) (prefers-color-scheme: dark);
@@ -0,0 +1,33 @@
1
+ :root {
2
+ --md-sys-color-primary: var(--md-sys-color-primary-dark);
3
+ --md-sys-color-on-primary: var(--md-sys-color-on-primary-dark);
4
+ --md-sys-color-primary-container: var(--md-sys-color-primary-container-dark);
5
+ --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-dark);
6
+ --md-sys-color-secondary: var(--md-sys-color-secondary-dark);
7
+ --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-dark);
8
+ --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-dark);
9
+ --md-sys-color-secondary-container-hover: var(--md-sys-color-secondary-container-hover-dark);
10
+ --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-dark);
11
+ --md-sys-color-tertiary: var(--md-sys-color-tertiary-dark);
12
+ --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-dark);
13
+ --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-dark);
14
+ --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-dark);
15
+ --md-sys-color-error: var(--md-sys-color-error-dark);
16
+ --md-sys-color-on-error: var(--md-sys-color-on-error-dark);
17
+ --md-sys-color-error-container: var(--md-sys-color-error-container-dark);
18
+ --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-dark);
19
+ --md-sys-color-outline: var(--md-sys-color-outline-dark);
20
+ --md-sys-color-background: var(--md-sys-color-background-dark);
21
+ --md-sys-color-on-background: var(--md-sys-color-on-background-dark);
22
+ --md-sys-color-surface: var(--md-sys-color-surface-dark);
23
+ --md-sys-color-on-surface: var(--md-sys-color-on-surface-dark);
24
+ --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-dark);
25
+ --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-dark);
26
+ --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-dark);
27
+ --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-dark);
28
+ --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-dark);
29
+ --md-sys-color-shadow: var(--md-sys-color-shadow-dark);
30
+ --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-dark);
31
+ --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-dark);
32
+ --md-sys-color-scrim: var(--md-sys-color-scrim-dark);
33
+ }
@@ -0,0 +1,33 @@
1
+ :root {
2
+ --md-sys-color-primary: var(--md-sys-color-primary-light);
3
+ --md-sys-color-on-primary: var(--md-sys-color-on-primary-light);
4
+ --md-sys-color-primary-container: var(--md-sys-color-primary-container-light);
5
+ --md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-light);
6
+ --md-sys-color-secondary: var(--md-sys-color-secondary-light);
7
+ --md-sys-color-on-secondary: var(--md-sys-color-on-secondary-light);
8
+ --md-sys-color-secondary-container: var(--md-sys-color-secondary-container-light);
9
+ --md-sys-color-secondary-container-hover: var(--md-sys-color-secondary-container-hover-light);
10
+ --md-sys-color-on-secondary-container: var(--md-sys-color-on-secondary-container-light);
11
+ --md-sys-color-tertiary: var(--md-sys-color-tertiary-light);
12
+ --md-sys-color-on-tertiary: var(--md-sys-color-on-tertiary-light);
13
+ --md-sys-color-tertiary-container: var(--md-sys-color-tertiary-container-light);
14
+ --md-sys-color-on-tertiary-container: var(--md-sys-color-on-tertiary-container-light);
15
+ --md-sys-color-error: var(--md-sys-color-error-light);
16
+ --md-sys-color-on-error: var(--md-sys-color-on-error-light);
17
+ --md-sys-color-error-container: var(--md-sys-color-error-container-light);
18
+ --md-sys-color-on-error-container: var(--md-sys-color-on-error-container-light);
19
+ --md-sys-color-outline: var(--md-sys-color-outline-light);
20
+ --md-sys-color-background: var(--md-sys-color-background-light);
21
+ --md-sys-color-on-background: var(--md-sys-color-on-background-light);
22
+ --md-sys-color-surface: var(--md-sys-color-surface-light);
23
+ --md-sys-color-on-surface: var(--md-sys-color-on-surface-light);
24
+ --md-sys-color-surface-variant: var(--md-sys-color-surface-variant-light);
25
+ --md-sys-color-on-surface-variant: var(--md-sys-color-on-surface-variant-light);
26
+ --md-sys-color-inverse-surface: var(--md-sys-color-inverse-surface-light);
27
+ --md-sys-color-inverse-on-surface: var(--md-sys-color-inverse-on-surface-light);
28
+ --md-sys-color-inverse-primary: var(--md-sys-color-inverse-primary-light);
29
+ --md-sys-color-shadow: var(--md-sys-color-shadow-light);
30
+ --md-sys-color-surface-tint: var(--md-sys-color-surface-tint-light);
31
+ --md-sys-color-outline-variant: var(--md-sys-color-outline-variant-light);
32
+ --md-sys-color-scrim: var(--md-sys-color-scrim-light);
33
+ }
@@ -0,0 +1,256 @@
1
+ :root {
2
+ --md-source: #6750A4;
3
+ /* primary */
4
+ --md-ref-palette-primary0: #000000;
5
+ --md-ref-palette-primary10: #21005D;
6
+ --md-ref-palette-primary20: #381E72;
7
+ --md-ref-palette-primary30: #4F378B;
8
+ --md-ref-palette-primary40: #6750A4;
9
+ --md-ref-palette-primary50: #7F67BE;
10
+ --md-ref-palette-primary60: #9A82DB;
11
+ --md-ref-palette-primary70: #B69DF8;
12
+ --md-ref-palette-primary80: #D0BCFF;
13
+ --md-ref-palette-primary90: #EADDFF;
14
+ --md-ref-palette-primary95: #F6EDFF;
15
+ --md-ref-palette-primary99: #FFFBFE;
16
+ --md-ref-palette-primary100: #FFFFFF;
17
+ /* secondary */
18
+ --md-ref-palette-secondary0: #000000;
19
+ --md-ref-palette-secondary10: #1D192B;
20
+ --md-ref-palette-secondary20: #332D41;
21
+ --md-ref-palette-secondary30: #4A4458;
22
+ --md-ref-palette-secondary40: #625B71;
23
+ --md-ref-palette-secondary50: #7A7289;
24
+ --md-ref-palette-secondary60: #958DA5;
25
+ --md-ref-palette-secondary70: #B0A7C0;
26
+ --md-ref-palette-secondary80: #CCC2DC;
27
+ --md-ref-palette-secondary90: #E8DEF8;
28
+ --md-ref-palette-secondary95: #F6EDFF;
29
+ --md-ref-palette-secondary99: #FFFBFE;
30
+ --md-ref-palette-secondary100: #FFFFFF;
31
+ /* tertiary */
32
+ --md-ref-palette-tertiary0: #000000;
33
+ --md-ref-palette-tertiary10: #31111D;
34
+ --md-ref-palette-tertiary20: #492532;
35
+ --md-ref-palette-tertiary30: #633B48;
36
+ --md-ref-palette-tertiary40: #7D5260;
37
+ --md-ref-palette-tertiary50: #986977;
38
+ --md-ref-palette-tertiary60: #B58392;
39
+ --md-ref-palette-tertiary70: #D29DAC;
40
+ --md-ref-palette-tertiary80: #EFB8C8;
41
+ --md-ref-palette-tertiary90: #FFD8E4;
42
+ --md-ref-palette-tertiary95: #FFECF1;
43
+ --md-ref-palette-tertiary99: #FFFBFA;
44
+ --md-ref-palette-tertiary100: #FFFFFF;
45
+ /* error */
46
+ --md-ref-palette-error0: #000000;
47
+ --md-ref-palette-error10: #410E0B;
48
+ --md-ref-palette-error20: #601410;
49
+ --md-ref-palette-error30: #8C1D18;
50
+ --md-ref-palette-error40: #B3261E;
51
+ --md-ref-palette-error50: #DC362E;
52
+ --md-ref-palette-error60: #E46962;
53
+ --md-ref-palette-error70: #EC928E;
54
+ --md-ref-palette-error80: #F2B8B5;
55
+ --md-ref-palette-error90: #F9DEDC;
56
+ --md-ref-palette-error95: #FCEEEE;
57
+ --md-ref-palette-error99: #FFFBF9;
58
+ --md-ref-palette-error100: #FFFFFF;
59
+ /* neutral */
60
+ --md-ref-palette-neutral0: #000000;
61
+ --md-ref-palette-neutral10: #1C1B1F;
62
+ --md-ref-palette-neutral20: #313033;
63
+ --md-ref-palette-neutral30: #484649;
64
+ --md-ref-palette-neutral40: #605D62;
65
+ --md-ref-palette-neutral50: #787579;
66
+ --md-ref-palette-neutral60: #939094;
67
+ --md-ref-palette-neutral70: #AEAAAE;
68
+ --md-ref-palette-neutral80: #C9C5CA;
69
+ --md-ref-palette-neutral90: #E6E1E5;
70
+ --md-ref-palette-neutral95: #F4EFF4;
71
+ --md-ref-palette-neutral99: #FFFBFE;
72
+ --md-ref-palette-neutral100: #FFFFFF;
73
+ /* neutral-variant */
74
+ --md-ref-palette-neutral-variant0: #000000;
75
+ --md-ref-palette-neutral-variant10: #1D1A22;
76
+ --md-ref-palette-neutral-variant20: #322F37;
77
+ --md-ref-palette-neutral-variant30: #49454F;
78
+ --md-ref-palette-neutral-variant40: #605D66;
79
+ --md-ref-palette-neutral-variant50: #79747E;
80
+ --md-ref-palette-neutral-variant60: #938F99;
81
+ --md-ref-palette-neutral-variant70: #AEA9B4;
82
+ --md-ref-palette-neutral-variant80: #CAC4D0;
83
+ --md-ref-palette-neutral-variant90: #E7E0EC;
84
+ --md-ref-palette-neutral-variant95: #F5EEFA;
85
+ --md-ref-palette-neutral-variant99: #FFFBFE;
86
+ --md-ref-palette-neutral-variant100: #FFFFFF;
87
+ /* light */
88
+ --md-sys-color-primary-light: #6750A4;
89
+ --md-sys-color-on-primary-light: #FFFFFF;
90
+ --md-sys-color-primary-container-light: #EADDFF;
91
+ --md-sys-color-on-primary-container-light: #21005D;
92
+ --md-sys-color-secondary-light: #625B71;
93
+ --md-sys-color-on-secondary-light: #FFFFFF;
94
+ --md-sys-color-secondary-container-light: #E8DEF8;
95
+ --md-sys-color-on-secondary-container-light: #1D192B;
96
+ --md-sys-color-secondary-container-hover-light: #E8DEF87A;
97
+ --md-sys-color-tertiary-light: #7D5260;
98
+ --md-sys-color-on-tertiary-light: #FFFFFF;
99
+ --md-sys-color-tertiary-container-light: #FFD8E4;
100
+ --md-sys-color-on-tertiary-container-light: #31111D;
101
+ --md-sys-color-error-light: #B3261E;
102
+ --md-sys-color-on-error-light: #FFFFFF;
103
+ --md-sys-color-error-container-light: #F9DEDC;
104
+ --md-sys-color-on-error-container-light: #410E0B;
105
+ --md-sys-color-outline-light: #79747E;
106
+ --md-sys-color-background-light: #FFFBFE;
107
+ --md-sys-color-on-background-light: #1C1B1F;
108
+ --md-sys-color-surface-light: #FFFBFE;
109
+ --md-sys-color-on-surface-light: #1C1B1F;
110
+ --md-sys-color-surface-variant-light: #E7E0EC;
111
+ --md-sys-color-on-surface-variant-light: #49454F;
112
+ --md-sys-color-inverse-surface-light: #313033;
113
+ --md-sys-color-inverse-on-surface-light: #F4EFF4;
114
+ --md-sys-color-inverse-primary-light: #D0BCFF;
115
+ --md-sys-color-shadow-light: #000000;
116
+ --md-sys-color-surface-tint-light: #6750A4;
117
+ --md-sys-color-outline-variant-light: #CAC4D0;
118
+ --md-sys-color-scrim-light: #000000;
119
+ /* dark */
120
+ --md-sys-color-primary-dark: #D0BCFF;
121
+ --md-sys-color-on-primary-dark: #381E72;
122
+ --md-sys-color-primary-container-dark: #4F378B;
123
+ --md-sys-color-on-primary-container-dark: #EADDFF;
124
+ --md-sys-color-secondary-dark: #CCC2DC;
125
+ --md-sys-color-on-secondary-dark: #332D41;
126
+ --md-sys-color-secondary-container-dark: #4A4458;
127
+ --md-sys-color-on-secondary-container-dark: #E8DEF8;
128
+ --md-sys-color-secondary-container-hover-dark: #4A44587A;
129
+ --md-sys-color-tertiary-dark: #EFB8C8;
130
+ --md-sys-color-on-tertiary-dark: #492532;
131
+ --md-sys-color-tertiary-container-dark: #633B48;
132
+ --md-sys-color-on-tertiary-container-dark: #FFD8E4;
133
+ --md-sys-color-error-dark: #F2B8B5;
134
+ --md-sys-color-on-error-dark: #601410;
135
+ --md-sys-color-error-container-dark: #8C1D18;
136
+ --md-sys-color-on-error-container-dark: #F9DEDC;
137
+ --md-sys-color-outline-dark: #938F99;
138
+ --md-sys-color-background-dark: #1C1B1F;
139
+ --md-sys-color-on-background-dark: #E6E1E5;
140
+ --md-sys-color-surface-dark: #1C1B1F;
141
+ --md-sys-color-on-surface-dark: #E6E1E5;
142
+ --md-sys-color-surface-variant-dark: #49454F;
143
+ --md-sys-color-on-surface-variant-dark: #CAC4D0;
144
+ --md-sys-color-inverse-surface-dark: #E6E1E5;
145
+ --md-sys-color-inverse-on-surface-dark: #313033;
146
+ --md-sys-color-inverse-primary-dark: #6750A4;
147
+ --md-sys-color-shadow-dark: #000000;
148
+ --md-sys-color-surface-tint-dark: #D0BCFF;
149
+ --md-sys-color-outline-variant-dark: #49454F;
150
+ --md-sys-color-scrim-dark: #000000;
151
+ /* display - large */
152
+ --md-sys-typescale-display-large-font-family-name: Roboto;
153
+ --md-sys-typescale-display-large-font-family-style: Regular;
154
+ --md-sys-typescale-display-large-font-weight: 400px;
155
+ --md-sys-typescale-display-large-font-size: 57px;
156
+ --md-sys-typescale-display-large-line-height: 64px;
157
+ --md-sys-typescale-display-large-letter-spacing: -0.25px;
158
+ /* display - medium */
159
+ --md-sys-typescale-display-medium-font-family-name: Roboto;
160
+ --md-sys-typescale-display-medium-font-family-style: Regular;
161
+ --md-sys-typescale-display-medium-font-weight: 400px;
162
+ --md-sys-typescale-display-medium-font-size: 45px;
163
+ --md-sys-typescale-display-medium-line-height: 52px;
164
+ --md-sys-typescale-display-medium-letter-spacing: 0px;
165
+ /* display - small */
166
+ --md-sys-typescale-display-small-font-family-name: Roboto;
167
+ --md-sys-typescale-display-small-font-family-style: Regular;
168
+ --md-sys-typescale-display-small-font-weight: 400px;
169
+ --md-sys-typescale-display-small-font-size: 36px;
170
+ --md-sys-typescale-display-small-line-height: 44px;
171
+ --md-sys-typescale-display-small-letter-spacing: 0px;
172
+ /* headline - large */
173
+ --md-sys-typescale-headline-large-font-family-name: Roboto;
174
+ --md-sys-typescale-headline-large-font-family-style: Regular;
175
+ --md-sys-typescale-headline-large-font-weight: 400px;
176
+ --md-sys-typescale-headline-large-font-size: 32px;
177
+ --md-sys-typescale-headline-large-line-height: 40px;
178
+ --md-sys-typescale-headline-large-letter-spacing: 0px;
179
+ /* headline - medium */
180
+ --md-sys-typescale-headline-medium-font-family-name: Roboto;
181
+ --md-sys-typescale-headline-medium-font-family-style: Regular;
182
+ --md-sys-typescale-headline-medium-font-weight: 400px;
183
+ --md-sys-typescale-headline-medium-font-size: 28px;
184
+ --md-sys-typescale-headline-medium-line-height: 36px;
185
+ --md-sys-typescale-headline-medium-letter-spacing: 0px;
186
+ /* headline - small */
187
+ --md-sys-typescale-headline-small-font-family-name: Roboto;
188
+ --md-sys-typescale-headline-small-font-family-style: Regular;
189
+ --md-sys-typescale-headline-small-font-weight: 400px;
190
+ --md-sys-typescale-headline-small-font-size: 24px;
191
+ --md-sys-typescale-headline-small-line-height: 32px;
192
+ --md-sys-typescale-headline-small-letter-spacing: 0px;
193
+ /* body - large */
194
+ --md-sys-typescale-body-large-font-family-name: Roboto;
195
+ --md-sys-typescale-body-large-font-family-style: Regular;
196
+ --md-sys-typescale-body-large-font-weight: 400px;
197
+ --md-sys-typescale-body-large-font-size: 16px;
198
+ --md-sys-typescale-body-large-line-height: 24px;
199
+ --md-sys-typescale-body-large-letter-spacing: 0.50px;
200
+ /* body - medium */
201
+ --md-sys-typescale-body-medium-font-family-name: Roboto;
202
+ --md-sys-typescale-body-medium-font-family-style: Regular;
203
+ --md-sys-typescale-body-medium-font-weight: 400px;
204
+ --md-sys-typescale-body-medium-font-size: 14px;
205
+ --md-sys-typescale-body-medium-line-height: 20px;
206
+ --md-sys-typescale-body-medium-letter-spacing: 0.25px;
207
+ /* body - small */
208
+ --md-sys-typescale-body-small-font-family-name: Roboto;
209
+ --md-sys-typescale-body-small-font-family-style: Regular;
210
+ --md-sys-typescale-body-small-font-weight: 400px;
211
+ --md-sys-typescale-body-small-font-size: 12px;
212
+ --md-sys-typescale-body-small-line-height: 16px;
213
+ --md-sys-typescale-body-small-letter-spacing: 0.40px;
214
+ /* label - large */
215
+ --md-sys-typescale-label-large-font-family-name: Roboto;
216
+ --md-sys-typescale-label-large-font-family-style: Medium;
217
+ --md-sys-typescale-label-large-font-weight: 500px;
218
+ --md-sys-typescale-label-large-font-size: 14px;
219
+ --md-sys-typescale-label-large-line-height: 20px;
220
+ --md-sys-typescale-label-large-letter-spacing: 0.10px;
221
+ /* label - medium */
222
+ --md-sys-typescale-label-medium-font-family-name: Roboto;
223
+ --md-sys-typescale-label-medium-font-family-style: Medium;
224
+ --md-sys-typescale-label-medium-font-weight: 500px;
225
+ --md-sys-typescale-label-medium-font-size: 12px;
226
+ --md-sys-typescale-label-medium-line-height: 16px;
227
+ --md-sys-typescale-label-medium-letter-spacing: 0.50px;
228
+ /* label - small */
229
+ --md-sys-typescale-label-small-font-family-name: Roboto;
230
+ --md-sys-typescale-label-small-font-family-style: Medium;
231
+ --md-sys-typescale-label-small-font-weight: 500px;
232
+ --md-sys-typescale-label-small-font-size: 11px;
233
+ --md-sys-typescale-label-small-line-height: 16px;
234
+ --md-sys-typescale-label-small-letter-spacing: 0.50px;
235
+ /* title - large */
236
+ --md-sys-typescale-title-large-font-family-name: Roboto;
237
+ --md-sys-typescale-title-large-font-family-style: Regular;
238
+ --md-sys-typescale-title-large-font-weight: 400px;
239
+ --md-sys-typescale-title-large-font-size: 22px;
240
+ --md-sys-typescale-title-large-line-height: 28px;
241
+ --md-sys-typescale-title-large-letter-spacing: 0px;
242
+ /* title - medium */
243
+ --md-sys-typescale-title-medium-font-family-name: Roboto;
244
+ --md-sys-typescale-title-medium-font-family-style: Medium;
245
+ --md-sys-typescale-title-medium-font-weight: 500px;
246
+ --md-sys-typescale-title-medium-font-size: 16px;
247
+ --md-sys-typescale-title-medium-line-height: 24px;
248
+ --md-sys-typescale-title-medium-letter-spacing: 0.15px;
249
+ /* title - small */
250
+ --md-sys-typescale-title-small-font-family-name: Roboto;
251
+ --md-sys-typescale-title-small-font-family-style: Medium;
252
+ --md-sys-typescale-title-small-font-weight: 500px;
253
+ --md-sys-typescale-title-small-font-size: 14px;
254
+ --md-sys-typescale-title-small-line-height: 20px;
255
+ --md-sys-typescale-title-small-letter-spacing: 0.10px;
256
+ }