@vaadin/vaadin-material-styles 22.0.0-rc1 → 23.0.0-alpha2

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/all-imports.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './mixins/required-field.js';
5
5
  export * from './color.js';
6
6
  export * from './shadow.js';
7
7
  export * from './typography.js';
8
+ export * from './user-colors.js';
package/all-imports.js CHANGED
@@ -19,3 +19,5 @@ import './shadow.js';
19
19
  export * from './shadow.js';
20
20
  import './typography.js';
21
21
  export * from './typography.js';
22
+ import './user-colors.js';
23
+ export * from './user-colors.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-material-styles",
3
- "version": "22.0.0-rc1",
3
+ "version": "23.0.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/vaadin-themable-mixin": "22.0.0-rc1"
41
+ "@vaadin/vaadin-themable-mixin": "23.0.0-alpha2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "gulp": "^4.0.2",
@@ -47,5 +47,5 @@
47
47
  "gulp-sort": "^2.0.0",
48
48
  "gulp-svgmin": "^4.1.0"
49
49
  },
50
- "gitHead": "7b6f44bcd2c0fd415028ace666feeb0fedb1d540"
50
+ "gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
51
51
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { CSSResult } from 'lit';
7
+
8
+ export const userColors: CSSResult;
package/user-colors.js ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import './version.js';
7
+ import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
8
+
9
+ const userColors = css`
10
+ :host {
11
+ --vaadin-user-color-0: #ab47bc;
12
+ --vaadin-user-color-1: #546e7a;
13
+ --vaadin-user-color-2: #2e7d32;
14
+ --vaadin-user-color-3: #6d4c41;
15
+ --vaadin-user-color-4: #1976d2;
16
+ --vaadin-user-color-5: #00838f;
17
+ --vaadin-user-color-6: #827717;
18
+ }
19
+
20
+ [theme~='dark'] {
21
+ --vaadin-user-color-0: #9fa8da;
22
+ --vaadin-user-color-1: #00bcd4;
23
+ --vaadin-user-color-2: #ffeb3b;
24
+ --vaadin-user-color-3: #a1887f;
25
+ --vaadin-user-color-4: #2196f3;
26
+ --vaadin-user-color-5: #4caf50;
27
+ --vaadin-user-color-6: #ff9800;
28
+ }
29
+ `;
30
+
31
+ const $tpl = document.createElement('template');
32
+ $tpl.innerHTML = `<style>${userColors.toString().replace(':host', 'html')}</style>`;
33
+ document.head.appendChild($tpl.content);
34
+
35
+ export { userColors };
package/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  class Material extends HTMLElement {
7
7
  static get version() {
8
- return '22.0.0-rc1';
8
+ return '23.0.0-alpha2';
9
9
  }
10
10
  }
11
11