@xwiki/cristal-dsvuetify 0.8.0

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 (68) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +505 -0
  3. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
  4. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  5. package/dist/components/componentsInit.d.ts +5 -0
  6. package/dist/components/vuetifyDesignSystemLoader.d.ts +6 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.es.js +20958 -0
  9. package/dist/index.es.js.map +1 -0
  10. package/dist/index.umd.js +26 -0
  11. package/dist/index.umd.js.map +1 -0
  12. package/dist/style.css +5 -0
  13. package/dist/vue/x-alert.vue.d.ts +22 -0
  14. package/dist/vue/x-avatar.vue.d.ts +20 -0
  15. package/dist/vue/x-breadcrumb.vue.d.ts +13 -0
  16. package/dist/vue/x-btn.vue.d.ts +9 -0
  17. package/dist/vue/x-card.vue.d.ts +12 -0
  18. package/dist/vue/x-dialog.vue.d.ts +25 -0
  19. package/dist/vue/x-divider.vue.d.ts +2 -0
  20. package/dist/vue/x-img.vue.d.ts +12 -0
  21. package/dist/vue/x-load.vue.d.ts +3 -0
  22. package/dist/vue/x-menu-item.vue.d.ts +22 -0
  23. package/dist/vue/x-menu.vue.d.ts +23 -0
  24. package/dist/vue/x-search.vue.d.ts +2 -0
  25. package/dist/x-alert-Cm6mzRpR.js +29 -0
  26. package/dist/x-alert-Cm6mzRpR.js.map +1 -0
  27. package/dist/x-avatar-But_Z7ic.js +20 -0
  28. package/dist/x-avatar-But_Z7ic.js.map +1 -0
  29. package/dist/x-breadcrumb-DKUFjeVQ.js +17 -0
  30. package/dist/x-breadcrumb-DKUFjeVQ.js.map +1 -0
  31. package/dist/x-btn-DsACLwMY.js +17 -0
  32. package/dist/x-btn-DsACLwMY.js.map +1 -0
  33. package/dist/x-card-CRM9KUby.js +22 -0
  34. package/dist/x-card-CRM9KUby.js.map +1 -0
  35. package/dist/x-dialog-Ce8KWptm.js +38 -0
  36. package/dist/x-dialog-Ce8KWptm.js.map +1 -0
  37. package/dist/x-divider-7cmRuxTV.js +16 -0
  38. package/dist/x-divider-7cmRuxTV.js.map +1 -0
  39. package/dist/x-img-BYgs_O1F.js +13 -0
  40. package/dist/x-img-BYgs_O1F.js.map +1 -0
  41. package/dist/x-load-CDyapJH_.js +11 -0
  42. package/dist/x-load-CDyapJH_.js.map +1 -0
  43. package/dist/x-menu-VerLAd9F.js +32 -0
  44. package/dist/x-menu-VerLAd9F.js.map +1 -0
  45. package/dist/x-menu-item-DGurfOCF.js +22 -0
  46. package/dist/x-menu-item-DGurfOCF.js.map +1 -0
  47. package/dist/x-search-C4yZLrSp.js +20 -0
  48. package/dist/x-search-C4yZLrSp.js.map +1 -0
  49. package/package.json +45 -0
  50. package/src/components/componentsInit.ts +37 -0
  51. package/src/components/vuetifyDesignSystemLoader.ts +98 -0
  52. package/src/index.ts +28 -0
  53. package/src/vue/css/style.css +541 -0
  54. package/src/vue/x-alert.vue +45 -0
  55. package/src/vue/x-avatar.vue +36 -0
  56. package/src/vue/x-breadcrumb.vue +36 -0
  57. package/src/vue/x-btn.vue +30 -0
  58. package/src/vue/x-card.vue +35 -0
  59. package/src/vue/x-dialog.vue +50 -0
  60. package/src/vue/x-divider.vue +28 -0
  61. package/src/vue/x-img.vue +34 -0
  62. package/src/vue/x-load.vue +33 -0
  63. package/src/vue/x-menu-item.vue +35 -0
  64. package/src/vue/x-menu.vue +42 -0
  65. package/src/vue/x-search.vue +40 -0
  66. package/src/vue.d.ts +32 -0
  67. package/tsconfig.json +8 -0
  68. package/vite.config.ts +28 -0
@@ -0,0 +1,98 @@
1
+ /**
2
+ * See the LICENSE file distributed with this work for additional
3
+ * information regarding copyright ownership.
4
+ *
5
+ * This is free software; you can redistribute it and/or modify it
6
+ * under the terms of the GNU Affero General Public License as
7
+ * published by the Free Software Foundation; either version 2.1 of
8
+ * the License, or (at your option) any later version.
9
+ *
10
+ * This software is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public
16
+ * License along with this software; if not, write to the Free
17
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
+ *
20
+ * This file is part of the Cristal Wiki software prototype
21
+ * @copyright Copyright (c) 2023 XWiki SAS
22
+ * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
+ *
24
+ **/
25
+
26
+ import type { App } from "vue";
27
+ import * as components from "vuetify/components";
28
+ import { VCol, VContainer, VRow, VTextField } from "vuetify/components";
29
+ import type { DesignSystemLoader } from "@xwiki/cristal-api";
30
+
31
+ import { createVuetify } from "vuetify";
32
+ import { mdi } from "vuetify/iconsets/mdi";
33
+ import * as directives from "vuetify/directives";
34
+ import { injectable } from "inversify";
35
+ import { registerAsyncComponent } from "@xwiki/cristal-api";
36
+
37
+ @injectable()
38
+ export class VuetifyDesignSystemLoader implements DesignSystemLoader {
39
+ loadDesignSystem(app: App): void {
40
+ /*
41
+ // Manuel importing to reduce build size
42
+ const vuetify = createVuetify({
43
+ components : { VApp, VContainer, VRow, VCol, VAvatar },
44
+ directives : {},
45
+ icons: {
46
+ defaultSet: 'fa',
47
+ aliases,
48
+ sets: {
49
+ fa,
50
+ mdi,
51
+ }
52
+ })
53
+ */
54
+
55
+ const vuetify = createVuetify({
56
+ components,
57
+ directives,
58
+ icons: {
59
+ defaultSet: "mdi",
60
+ sets: {
61
+ mdi,
62
+ },
63
+ },
64
+ });
65
+ app.use(vuetify);
66
+ // Native Vuetify components
67
+ app.component("XContainer", VContainer);
68
+ app.component("XRow", VRow);
69
+ app.component("XCol", VCol);
70
+ app.component("XTextField", VTextField);
71
+
72
+ // Custom wrapped components
73
+ registerAsyncComponent(app, "XLoad", () => import("../vue/x-load.vue"));
74
+ registerAsyncComponent(app, "XBtn", () => import("../vue/x-btn.vue"));
75
+ registerAsyncComponent(app, "XImg", () => import("../vue/x-img.vue"));
76
+ registerAsyncComponent(app, "XAvatar", () => import("../vue/x-avatar.vue"));
77
+ registerAsyncComponent(
78
+ app,
79
+ "XDivider",
80
+ () => import("../vue/x-divider.vue"),
81
+ );
82
+ registerAsyncComponent(app, "XCard", () => import("../vue/x-card.vue"));
83
+ registerAsyncComponent(app, "XAlert", () => import("../vue/x-alert.vue"));
84
+ registerAsyncComponent(app, "XDialog", () => import("../vue/x-dialog.vue"));
85
+ registerAsyncComponent(app, "XMenu", () => import("../vue/x-menu.vue"));
86
+ registerAsyncComponent(
87
+ app,
88
+ "XMenuItem",
89
+ () => import("../vue/x-menu-item.vue"),
90
+ );
91
+ registerAsyncComponent(
92
+ app,
93
+ "XBreadcrumb",
94
+ () => import("../vue/x-breadcrumb.vue"),
95
+ );
96
+ registerAsyncComponent(app, "XSearch", () => import("../vue/x-search.vue"));
97
+ }
98
+ }
package/src/index.ts ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * See the LICENSE file distributed with this work for additional
3
+ * information regarding copyright ownership.
4
+ *
5
+ * This is free software; you can redistribute it and/or modify it
6
+ * under the terms of the GNU Affero General Public License as
7
+ * published by the Free Software Foundation; either version 2.1 of
8
+ * the License, or (at your option) any later version.
9
+ *
10
+ * This software is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public
16
+ * License along with this software; if not, write to the Free
17
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
+ *
20
+ * This file is part of the Cristal Wiki software prototype
21
+ * @copyright Copyright (c) 2023 XWiki SAS
22
+ * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
+ *
24
+ **/
25
+
26
+ import ComponentInit from "./components/componentsInit.js";
27
+
28
+ export { ComponentInit };
@@ -0,0 +1,541 @@
1
+ .load-spinner {
2
+ background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle fill="%23B9B9B9" stroke="%23B9B9B9" stroke-width="6" r="15" cx="40" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.4"></animate></circle><circle fill="%23B9B9B9" stroke="%23B9B9B9" stroke-width="6" r="15" cx="100" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.2"></animate></circle><circle fill="%23B9B9B9" stroke="%23B9B9B9" stroke-width="6" r="15" cx="160" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="0"></animate></circle></svg>') ;
3
+ background-size: cover;
4
+ width: 64px;
5
+ height: 64px;
6
+ }
7
+
8
+ :root {
9
+ --cr-sizes-max-page-width: 960px; /*This value controls the width of the main content. It should be 100% for spanning text along the whole width or an arbitraty value*/
10
+ --cr-sizes-left-sidebar-width: 15%; /*The default width of the sidebar*/
11
+ --cr-sizes-left-sidebar-min-width: 250px; /*The minimum width of the sidebar*/
12
+ --cr-sizes-collapsed-sidebar-width: 32px; /*The width of the bar that gets shown containing the menu button to reopen the standard left sidebar*/
13
+ --cr-base-font-size: 16px;
14
+
15
+
16
+
17
+ /*
18
+ * Typography
19
+ */
20
+
21
+ /* Fonts */
22
+ --cr-font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
23
+ --cr-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
24
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
25
+ --cr-font-serif: Georgia, 'Times New Roman', serif;
26
+
27
+ /* Font sizes */
28
+ --cr-font-size-2x-small: 0.625rem; /* 10px */
29
+ --cr-font-size-x-small: 0.75rem; /* 12px */
30
+ --cr-font-size-small: 0.875rem; /* 14px */
31
+ --cr-font-size-medium: 1rem; /* 16px */
32
+ --cr-font-size-large: 1.25rem; /* 20px */
33
+ --cr-font-size-x-large: 1.5rem; /* 24px */
34
+ --cr-font-size-2x-large: 2.25rem; /* 36px */
35
+ --cr-font-size-3x-large: 3rem; /* 48px */
36
+ --cr-font-size-4x-large: 4.5rem; /* 72px */
37
+
38
+ /* Font weights */
39
+ --cr-font-weight-light: 300;
40
+ --cr-font-weight-normal: 400;
41
+ --cr-font-weight-semibold: 500;
42
+ --cr-font-weight-bold: 700;
43
+
44
+ /* Letter spacings */
45
+ --cr-letter-spacing-denser: -0.03em;
46
+ --cr-letter-spacing-dense: -0.015em;
47
+ --cr-letter-spacing-normal: normal;
48
+ --cr-letter-spacing-loose: 0.075em;
49
+ --cr-letter-spacing-looser: 0.15em;
50
+
51
+ /* Line heights */
52
+ --cr-line-height-denser: 1;
53
+ --cr-line-height-dense: 1.4;
54
+ --cr-line-height-normal: 1.8;
55
+ --cr-line-height-loose: 2.2;
56
+ --cr-line-height-looser: 2.6;
57
+
58
+ /* Focus rings */
59
+ --cr-focus-ring-color: var(--cr-color-primary-600);
60
+ --cr-focus-ring-style: solid;
61
+ --cr-focus-ring-width: 3px;
62
+ --cr-focus-ring: var(--cr-focus-ring-style) var(--cr-focus-ring-width) var(--cr-focus-ring-color);
63
+ --cr-focus-ring-offset: 1px;
64
+
65
+ /*
66
+ * Color Primitives
67
+ */
68
+
69
+ /* Gray */
70
+ --cr-color-gray-50: hsl(0 0% 97.5%);
71
+ --cr-color-gray-100: hsl(240 4.8% 95.9%);
72
+ --cr-color-gray-200: hsl(240 5.9% 90%);
73
+ --cr-color-gray-300: hsl(240 4.9% 83.9%);
74
+ --cr-color-gray-400: hsl(240 5% 64.9%);
75
+ --cr-color-gray-500: hsl(240 3.8% 46.1%);
76
+ --cr-color-gray-600: hsl(240 5.2% 33.9%);
77
+ --cr-color-gray-700: hsl(240 5.3% 26.1%);
78
+ --cr-color-gray-800: hsl(240 3.7% 15.9%);
79
+ --cr-color-gray-900: hsl(240 5.9% 10%);
80
+ --cr-color-gray-950: hsl(240 7.3% 8%);
81
+
82
+ /* Red */
83
+ --cr-color-red-50: hsl(0 85.7% 97.3%);
84
+ --cr-color-red-100: hsl(0 93.3% 94.1%);
85
+ --cr-color-red-200: hsl(0 96.3% 89.4%);
86
+ --cr-color-red-300: hsl(0 93.5% 81.8%);
87
+ --cr-color-red-400: hsl(0 90.6% 70.8%);
88
+ --cr-color-red-500: hsl(0 84.2% 60.2%);
89
+ --cr-color-red-600: hsl(0 72.2% 50.6%);
90
+ --cr-color-red-700: hsl(0 73.7% 41.8%);
91
+ --cr-color-red-800: hsl(0 70% 35.3%);
92
+ --cr-color-red-900: hsl(0 62.8% 30.6%);
93
+ --cr-color-red-950: hsl(0 60% 19.6%);
94
+
95
+ /* Orange */
96
+ --cr-color-orange-50: hsl(33.3 100% 96.5%);
97
+ --cr-color-orange-100: hsl(34.3 100% 91.8%);
98
+ --cr-color-orange-200: hsl(32.1 97.7% 83.1%);
99
+ --cr-color-orange-300: hsl(30.7 97.2% 72.4%);
100
+ --cr-color-orange-400: hsl(27 96% 61%);
101
+ --cr-color-orange-500: hsl(24.6 95% 53.1%);
102
+ --cr-color-orange-600: hsl(20.5 90.2% 48.2%);
103
+ --cr-color-orange-700: hsl(17.5 88.3% 40.4%);
104
+ --cr-color-orange-800: hsl(15 79.1% 33.7%);
105
+ --cr-color-orange-900: hsl(15.3 74.6% 27.8%);
106
+ --cr-color-orange-950: hsl(15.2 69.1% 19%);
107
+
108
+ /* Amber */
109
+ --cr-color-amber-50: hsl(48 100% 96.1%);
110
+ --cr-color-amber-100: hsl(48 96.5% 88.8%);
111
+ --cr-color-amber-200: hsl(48 96.6% 76.7%);
112
+ --cr-color-amber-300: hsl(45.9 96.7% 64.5%);
113
+ --cr-color-amber-400: hsl(43.3 96.4% 56.3%);
114
+ --cr-color-amber-500: hsl(37.7 92.1% 50.2%);
115
+ --cr-color-amber-600: hsl(32.1 94.6% 43.7%);
116
+ --cr-color-amber-700: hsl(26 90.5% 37.1%);
117
+ --cr-color-amber-800: hsl(22.7 82.5% 31.4%);
118
+ --cr-color-amber-900: hsl(21.7 77.8% 26.5%);
119
+ --cr-color-amber-950: hsl(22.9 74.1% 16.7%);
120
+
121
+ /* Yellow */
122
+ --cr-color-yellow-50: hsl(54.5 91.7% 95.3%);
123
+ --cr-color-yellow-100: hsl(54.9 96.7% 88%);
124
+ --cr-color-yellow-200: hsl(52.8 98.3% 76.9%);
125
+ --cr-color-yellow-300: hsl(50.4 97.8% 63.5%);
126
+ --cr-color-yellow-400: hsl(47.9 95.8% 53.1%);
127
+ --cr-color-yellow-500: hsl(45.4 93.4% 47.5%);
128
+ --cr-color-yellow-600: hsl(40.6 96.1% 40.4%);
129
+ --cr-color-yellow-700: hsl(35.5 91.7% 32.9%);
130
+ --cr-color-yellow-800: hsl(31.8 81% 28.8%);
131
+ --cr-color-yellow-900: hsl(28.4 72.5% 25.7%);
132
+ --cr-color-yellow-950: hsl(33.1 69% 13.9%);
133
+
134
+ /* Lime */
135
+ --cr-color-lime-50: hsl(78.3 92% 95.1%);
136
+ --cr-color-lime-100: hsl(79.6 89.1% 89.2%);
137
+ --cr-color-lime-200: hsl(80.9 88.5% 79.6%);
138
+ --cr-color-lime-300: hsl(82 84.5% 67.1%);
139
+ --cr-color-lime-400: hsl(82.7 78% 55.5%);
140
+ --cr-color-lime-500: hsl(83.7 80.5% 44.3%);
141
+ --cr-color-lime-600: hsl(84.8 85.2% 34.5%);
142
+ --cr-color-lime-700: hsl(85.9 78.4% 27.3%);
143
+ --cr-color-lime-800: hsl(86.3 69% 22.7%);
144
+ --cr-color-lime-900: hsl(87.6 61.2% 20.2%);
145
+ --cr-color-lime-950: hsl(86.5 60.6% 13.9%);
146
+
147
+ /* Green */
148
+ --cr-color-green-50: hsl(138.5 76.5% 96.7%);
149
+ --cr-color-green-100: hsl(140.6 84.2% 92.5%);
150
+ --cr-color-green-200: hsl(141 78.9% 85.1%);
151
+ --cr-color-green-300: hsl(141.7 76.6% 73.1%);
152
+ --cr-color-green-400: hsl(141.9 69.2% 58%);
153
+ --cr-color-green-500: hsl(142.1 70.6% 45.3%);
154
+ --cr-color-green-600: hsl(142.1 76.2% 36.3%);
155
+ --cr-color-green-700: hsl(142.4 71.8% 29.2%);
156
+ --cr-color-green-800: hsl(142.8 64.2% 24.1%);
157
+ --cr-color-green-900: hsl(143.8 61.2% 20.2%);
158
+ --cr-color-green-950: hsl(144.3 60.7% 12%);
159
+
160
+ /* Emerald */
161
+ --cr-color-emerald-50: hsl(151.8 81% 95.9%);
162
+ --cr-color-emerald-100: hsl(149.3 80.4% 90%);
163
+ --cr-color-emerald-200: hsl(152.4 76% 80.4%);
164
+ --cr-color-emerald-300: hsl(156.2 71.6% 66.9%);
165
+ --cr-color-emerald-400: hsl(158.1 64.4% 51.6%);
166
+ --cr-color-emerald-500: hsl(160.1 84.1% 39.4%);
167
+ --cr-color-emerald-600: hsl(161.4 93.5% 30.4%);
168
+ --cr-color-emerald-700: hsl(162.9 93.5% 24.3%);
169
+ --cr-color-emerald-800: hsl(163.1 88.1% 19.8%);
170
+ --cr-color-emerald-900: hsl(164.2 85.7% 16.5%);
171
+ --cr-color-emerald-950: hsl(164.3 87.5% 9.4%);
172
+
173
+ /* Teal */
174
+ --cr-color-teal-50: hsl(166.2 76.5% 96.7%);
175
+ --cr-color-teal-100: hsl(167.2 85.5% 89.2%);
176
+ --cr-color-teal-200: hsl(168.4 83.8% 78.2%);
177
+ --cr-color-teal-300: hsl(170.6 76.9% 64.3%);
178
+ --cr-color-teal-400: hsl(172.5 66% 50.4%);
179
+ --cr-color-teal-500: hsl(173.4 80.4% 40%);
180
+ --cr-color-teal-600: hsl(174.7 83.9% 31.6%);
181
+ --cr-color-teal-700: hsl(175.3 77.4% 26.1%);
182
+ --cr-color-teal-800: hsl(176.1 69.4% 21.8%);
183
+ --cr-color-teal-900: hsl(175.9 60.8% 19%);
184
+ --cr-color-teal-950: hsl(176.5 58.6% 11.4%);
185
+
186
+ /* Cyan */
187
+ --cr-color-cyan-50: hsl(183.2 100% 96.3%);
188
+ --cr-color-cyan-100: hsl(185.1 95.9% 90.4%);
189
+ --cr-color-cyan-200: hsl(186.2 93.5% 81.8%);
190
+ --cr-color-cyan-300: hsl(187 92.4% 69%);
191
+ --cr-color-cyan-400: hsl(187.9 85.7% 53.3%);
192
+ --cr-color-cyan-500: hsl(188.7 94.5% 42.7%);
193
+ --cr-color-cyan-600: hsl(191.6 91.4% 36.5%);
194
+ --cr-color-cyan-700: hsl(192.9 82.3% 31%);
195
+ --cr-color-cyan-800: hsl(194.4 69.6% 27.1%);
196
+ --cr-color-cyan-900: hsl(196.4 63.6% 23.7%);
197
+ --cr-color-cyan-950: hsl(196.8 61% 16.1%);
198
+
199
+ /* Sky */
200
+ --cr-color-sky-50: hsl(204 100% 97.1%);
201
+ --cr-color-sky-100: hsl(204 93.8% 93.7%);
202
+ --cr-color-sky-200: hsl(200.6 94.4% 86.1%);
203
+ --cr-color-sky-300: hsl(199.4 95.5% 73.9%);
204
+ --cr-color-sky-400: hsl(198.4 93.2% 59.6%);
205
+ --cr-color-sky-500: hsl(198.6 88.7% 48.4%);
206
+ --cr-color-sky-600: hsl(200.4 98% 39.4%);
207
+ --cr-color-sky-700: hsl(201.3 96.3% 32.2%);
208
+ --cr-color-sky-800: hsl(201 90% 27.5%);
209
+ --cr-color-sky-900: hsl(202 80.3% 23.9%);
210
+ --cr-color-sky-950: hsl(202.3 73.8% 16.5%);
211
+
212
+ /* Blue */
213
+ --cr-color-blue-50: hsl(213.8 100% 96.9%);
214
+ --cr-color-blue-100: hsl(214.3 94.6% 92.7%);
215
+ --cr-color-blue-200: hsl(213.3 96.9% 87.3%);
216
+ --cr-color-blue-300: hsl(211.7 96.4% 78.4%);
217
+ --cr-color-blue-400: hsl(213.1 93.9% 67.8%);
218
+ --cr-color-blue-500: hsl(217.2 91.2% 59.8%);
219
+ --cr-color-blue-600: hsl(221.2 83.2% 53.3%);
220
+ --cr-color-blue-700: hsl(224.3 76.3% 48%);
221
+ --cr-color-blue-800: hsl(225.9 70.7% 40.2%);
222
+ --cr-color-blue-900: hsl(224.4 64.3% 32.9%);
223
+ --cr-color-blue-950: hsl(226.2 55.3% 18.4%);
224
+
225
+ /* Indigo */
226
+ --cr-color-indigo-50: hsl(225.9 100% 96.7%);
227
+ --cr-color-indigo-100: hsl(226.5 100% 93.9%);
228
+ --cr-color-indigo-200: hsl(228 96.5% 88.8%);
229
+ --cr-color-indigo-300: hsl(229.7 93.5% 81.8%);
230
+ --cr-color-indigo-400: hsl(234.5 89.5% 73.9%);
231
+ --cr-color-indigo-500: hsl(238.7 83.5% 66.7%);
232
+ --cr-color-indigo-600: hsl(243.4 75.4% 58.6%);
233
+ --cr-color-indigo-700: hsl(244.5 57.9% 50.6%);
234
+ --cr-color-indigo-800: hsl(243.7 54.5% 41.4%);
235
+ --cr-color-indigo-900: hsl(242.2 47.4% 34.3%);
236
+ --cr-color-indigo-950: hsl(243.5 43.6% 22.9%);
237
+
238
+ /* Violet */
239
+ --cr-color-violet-50: hsl(250 100% 97.6%);
240
+ --cr-color-violet-100: hsl(251.4 91.3% 95.5%);
241
+ --cr-color-violet-200: hsl(250.5 95.2% 91.8%);
242
+ --cr-color-violet-300: hsl(252.5 94.7% 85.1%);
243
+ --cr-color-violet-400: hsl(255.1 91.7% 76.3%);
244
+ --cr-color-violet-500: hsl(258.3 89.5% 66.3%);
245
+ --cr-color-violet-600: hsl(262.1 83.3% 57.8%);
246
+ --cr-color-violet-700: hsl(263.4 70% 50.4%);
247
+ --cr-color-violet-800: hsl(263.4 69.3% 42.2%);
248
+ --cr-color-violet-900: hsl(263.5 67.4% 34.9%);
249
+ --cr-color-violet-950: hsl(265.1 61.5% 21.4%);
250
+
251
+ /* Purple */
252
+ --cr-color-purple-50: hsl(270 100% 98%);
253
+ --cr-color-purple-100: hsl(268.7 100% 95.5%);
254
+ --cr-color-purple-200: hsl(268.6 100% 91.8%);
255
+ --cr-color-purple-300: hsl(269.2 97.4% 85.1%);
256
+ --cr-color-purple-400: hsl(270 95.2% 75.3%);
257
+ --cr-color-purple-500: hsl(270.7 91% 65.1%);
258
+ --cr-color-purple-600: hsl(271.5 81.3% 55.9%);
259
+ --cr-color-purple-700: hsl(272.1 71.7% 47.1%);
260
+ --cr-color-purple-800: hsl(272.9 67.2% 39.4%);
261
+ --cr-color-purple-900: hsl(273.6 65.6% 32%);
262
+ --cr-color-purple-950: hsl(276 59.5% 16.5%);
263
+
264
+ /* Fuchsia */
265
+ --cr-color-fuchsia-50: hsl(289.1 100% 97.8%);
266
+ --cr-color-fuchsia-100: hsl(287 100% 95.5%);
267
+ --cr-color-fuchsia-200: hsl(288.3 95.8% 90.6%);
268
+ --cr-color-fuchsia-300: hsl(291.1 93.1% 82.9%);
269
+ --cr-color-fuchsia-400: hsl(292 91.4% 72.5%);
270
+ --cr-color-fuchsia-500: hsl(292.2 84.1% 60.6%);
271
+ --cr-color-fuchsia-600: hsl(293.4 69.5% 48.8%);
272
+ --cr-color-fuchsia-700: hsl(294.7 72.4% 39.8%);
273
+ --cr-color-fuchsia-800: hsl(295.4 70.2% 32.9%);
274
+ --cr-color-fuchsia-900: hsl(296.7 63.6% 28%);
275
+ --cr-color-fuchsia-950: hsl(297.1 56.8% 14.5%);
276
+
277
+ /* Pink */
278
+ --cr-color-pink-50: hsl(327.3 73.3% 97.1%);
279
+ --cr-color-pink-100: hsl(325.7 77.8% 94.7%);
280
+ --cr-color-pink-200: hsl(325.9 84.6% 89.8%);
281
+ --cr-color-pink-300: hsl(327.4 87.1% 81.8%);
282
+ --cr-color-pink-400: hsl(328.6 85.5% 70.2%);
283
+ --cr-color-pink-500: hsl(330.4 81.2% 60.4%);
284
+ --cr-color-pink-600: hsl(333.3 71.4% 50.6%);
285
+ --cr-color-pink-700: hsl(335.1 77.6% 42%);
286
+ --cr-color-pink-800: hsl(335.8 74.4% 35.3%);
287
+ --cr-color-pink-900: hsl(335.9 69% 30.4%);
288
+ --cr-color-pink-950: hsl(336.2 65.4% 15.9%);
289
+
290
+ /* Rose */
291
+ --cr-color-rose-50: hsl(355.7 100% 97.3%);
292
+ --cr-color-rose-100: hsl(355.6 100% 94.7%);
293
+ --cr-color-rose-200: hsl(352.7 96.1% 90%);
294
+ --cr-color-rose-300: hsl(352.6 95.7% 81.8%);
295
+ --cr-color-rose-400: hsl(351.3 94.5% 71.4%);
296
+ --cr-color-rose-500: hsl(349.7 89.2% 60.2%);
297
+ --cr-color-rose-600: hsl(346.8 77.2% 49.8%);
298
+ --cr-color-rose-700: hsl(345.3 82.7% 40.8%);
299
+ --cr-color-rose-800: hsl(343.4 79.7% 34.7%);
300
+ --cr-color-rose-900: hsl(341.5 75.5% 30.4%);
301
+ --cr-color-rose-950: hsl(341.3 70.1% 17.1%);
302
+
303
+ /*
304
+ * Theme Tokens
305
+ */
306
+
307
+ /* Primary */
308
+ --cr-color-primary-50: var(--cr-color-sky-50);
309
+ --cr-color-primary-100: var(--cr-color-sky-100);
310
+ --cr-color-primary-200: var(--cr-color-sky-200);
311
+ --cr-color-primary-300: var(--cr-color-sky-300);
312
+ --cr-color-primary-400: var(--cr-color-sky-400);
313
+ --cr-color-primary-500: var(--cr-color-sky-500);
314
+ --cr-color-primary-600: var(--cr-color-sky-600);
315
+ --cr-color-primary-700: var(--cr-color-sky-700);
316
+ --cr-color-primary-800: var(--cr-color-sky-800);
317
+ --cr-color-primary-900: var(--cr-color-sky-900);
318
+ --cr-color-primary-950: var(--cr-color-sky-950);
319
+
320
+ /* Success */
321
+ --cr-color-success-50: var(--cr-color-green-50);
322
+ --cr-color-success-100: var(--cr-color-green-100);
323
+ --cr-color-success-200: var(--cr-color-green-200);
324
+ --cr-color-success-300: var(--cr-color-green-300);
325
+ --cr-color-success-400: var(--cr-color-green-400);
326
+ --cr-color-success-500: var(--cr-color-green-500);
327
+ --cr-color-success-600: var(--cr-color-green-600);
328
+ --cr-color-success-700: var(--cr-color-green-700);
329
+ --cr-color-success-800: var(--cr-color-green-800);
330
+ --cr-color-success-900: var(--cr-color-green-900);
331
+ --cr-color-success-950: var(--cr-color-green-950);
332
+
333
+ /* Warning */
334
+ --cr-color-warning-50: var(--cr-color-amber-50);
335
+ --cr-color-warning-100: var(--cr-color-amber-100);
336
+ --cr-color-warning-200: var(--cr-color-amber-200);
337
+ --cr-color-warning-300: var(--cr-color-amber-300);
338
+ --cr-color-warning-400: var(--cr-color-amber-400);
339
+ --cr-color-warning-500: var(--cr-color-amber-500);
340
+ --cr-color-warning-600: var(--cr-color-amber-600);
341
+ --cr-color-warning-700: var(--cr-color-amber-700);
342
+ --cr-color-warning-800: var(--cr-color-amber-800);
343
+ --cr-color-warning-900: var(--cr-color-amber-900);
344
+ --cr-color-warning-950: var(--cr-color-amber-950);
345
+
346
+ /* Danger */
347
+ --cr-color-danger-50: var(--cr-color-red-50);
348
+ --cr-color-danger-100: var(--cr-color-red-100);
349
+ --cr-color-danger-200: var(--cr-color-red-200);
350
+ --cr-color-danger-300: var(--cr-color-red-300);
351
+ --cr-color-danger-400: var(--cr-color-red-400);
352
+ --cr-color-danger-500: var(--cr-color-red-500);
353
+ --cr-color-danger-600: var(--cr-color-red-600);
354
+ --cr-color-danger-700: var(--cr-color-red-700);
355
+ --cr-color-danger-800: var(--cr-color-red-800);
356
+ --cr-color-danger-900: var(--cr-color-red-900);
357
+ --cr-color-danger-950: var(--cr-color-red-950);
358
+
359
+ /* Neutral */
360
+ --cr-color-neutral-50: var(--cr-color-gray-50);
361
+ --cr-color-neutral-100: var(--cr-color-gray-100);
362
+ --cr-color-neutral-200: var(--cr-color-gray-200);
363
+ --cr-color-neutral-300: var(--cr-color-gray-300);
364
+ --cr-color-neutral-400: var(--cr-color-gray-400);
365
+ --cr-color-neutral-500: var(--cr-color-gray-500);
366
+ --cr-color-neutral-600: var(--cr-color-gray-600);
367
+ --cr-color-neutral-700: var(--cr-color-gray-700);
368
+ --cr-color-neutral-800: var(--cr-color-gray-800);
369
+ --cr-color-neutral-900: var(--cr-color-gray-900);
370
+ --cr-color-neutral-950: var(--cr-color-gray-950);
371
+
372
+ /* Neutral one-offs */
373
+ --cr-color-neutral-0: hsl(0, 0%, 100%);
374
+ --cr-color-neutral-1000: hsl(0, 0%, 0%);
375
+
376
+ /*
377
+ * Border radii
378
+ */
379
+
380
+ --cr-border-radius-small: 0.1875rem; /* 3px */
381
+ --cr-border-radius-medium: 0.25rem; /* 4px */
382
+ --cr-border-radius-large: 0.5rem; /* 8px */
383
+ --cr-border-radius-x-large: 1rem; /* 16px */
384
+
385
+ --cr-border-radius-circle: 50%;
386
+ --cr-border-radius-pill: 9999px;
387
+
388
+ /*
389
+ * Elevations
390
+ */
391
+
392
+ --cr-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);
393
+ --cr-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);
394
+ --cr-shadow-medium: 0 2px 4px hsl(240 3.8% 46.1% / 12%);
395
+ --cr-shadow-large: 0 2px 8px hsl(240 3.8% 46.1% / 12%);
396
+ --cr-shadow-x-large: 0 4px 16px hsl(240 3.8% 46.1% / 12%);
397
+
398
+ /*
399
+ * Spacings
400
+ */
401
+
402
+ --cr-spacing-3x-small: 0.125rem; /* 2px */
403
+ --cr-spacing-2x-small: 0.25rem; /* 4px */
404
+ --cr-spacing-x-small: 0.5rem; /* 8px */
405
+ --cr-spacing-small: 0.75rem; /* 12px */
406
+ --cr-spacing-medium: 1rem; /* 16px */
407
+ --cr-spacing-large: 1.25rem; /* 20px */
408
+ --cr-spacing-x-large: 1.75rem; /* 28px */
409
+ --cr-spacing-2x-large: 2.25rem; /* 36px */
410
+ --cr-spacing-3x-large: 3rem; /* 48px */
411
+ --cr-spacing-4x-large: 4.5rem; /* 72px */
412
+
413
+ /*
414
+ * Transitions
415
+ */
416
+
417
+ --cr-transition-x-slow: 1000ms;
418
+ --cr-transition-slow: 500ms;
419
+ --cr-transition-medium: 250ms;
420
+ --cr-transition-fast: 150ms;
421
+ --cr-transition-x-fast: 50ms;
422
+
423
+
424
+ /*
425
+ * Forms
426
+ */
427
+
428
+ /* Buttons */
429
+ --cr-button-font-size-small: var(--cr-font-size-x-small);
430
+ --cr-button-font-size-medium: var(--cr-font-size-small);
431
+ --cr-button-font-size-large: var(--cr-font-size-medium);
432
+
433
+ /* Inputs */
434
+ --cr-input-height-small: 1.875rem; /* 30px */
435
+ --cr-input-height-medium: 2.5rem; /* 40px */
436
+ --cr-input-height-large: 3.125rem; /* 50px */
437
+
438
+ --cr-input-background-color: var(--cr-color-neutral-0);
439
+ --cr-input-background-color-hover: var(--cr-input-background-color);
440
+ --cr-input-background-color-focus: var(--cr-input-background-color);
441
+ --cr-input-background-color-disabled: var(--cr-color-neutral-100);
442
+ --cr-input-border-color: var(--cr-color-neutral-300);
443
+ --cr-input-border-color-hover: var(--cr-color-neutral-400);
444
+ --cr-input-border-color-focus: var(--cr-color-primary-500);
445
+ --cr-input-border-color-disabled: var(--cr-color-neutral-300);
446
+ --cr-input-border-width: 1px;
447
+ --cr-input-required-content: '*';
448
+ --cr-input-required-content-offset: -2px;
449
+ --cr-input-required-content-color: var(--cr-input-label-color);
450
+
451
+ --cr-input-border-radius-small: var(--cr-border-radius-medium);
452
+ --cr-input-border-radius-medium: var(--cr-border-radius-medium);
453
+ --cr-input-border-radius-large: var(--cr-border-radius-medium);
454
+
455
+ --cr-input-font-family: var(--cr-font-sans);
456
+ --cr-input-font-weight: var(--cr-font-weight-normal);
457
+ --cr-input-font-size-small: var(--cr-font-size-small);
458
+ --cr-input-font-size-medium: var(--cr-font-size-medium);
459
+ --cr-input-font-size-large: var(--cr-font-size-large);
460
+ --cr-input-letter-spacing: var(--cr-letter-spacing-normal);
461
+
462
+ --cr-input-color: var(--cr-color-neutral-700);
463
+ --cr-input-color-hover: var(--cr-color-neutral-700);
464
+ --cr-input-color-focus: var(--cr-color-neutral-700);
465
+ --cr-input-color-disabled: var(--cr-color-neutral-900);
466
+ --cr-input-icon-color: var(--cr-color-neutral-500);
467
+ --cr-input-icon-color-hover: var(--cr-color-neutral-600);
468
+ --cr-input-icon-color-focus: var(--cr-color-neutral-600);
469
+ --cr-input-placeholder-color: var(--cr-color-neutral-500);
470
+ --cr-input-placeholder-color-disabled: var(--cr-color-neutral-600);
471
+ --cr-input-spacing-small: var(--cr-spacing-small);
472
+ --cr-input-spacing-medium: var(--cr-spacing-medium);
473
+ --cr-input-spacing-large: var(--cr-spacing-large);
474
+
475
+ --cr-input-focus-ring-color: hsl(198.6 88.7% 48.4% / 40%);
476
+ --cr-input-focus-ring-offset: 0;
477
+
478
+ --cr-input-filled-background-color: var(--cr-color-neutral-100);
479
+ --cr-input-filled-background-color-hover: var(--cr-color-neutral-100);
480
+ --cr-input-filled-background-color-focus: var(--cr-color-neutral-100);
481
+ --cr-input-filled-background-color-disabled: var(--cr-color-neutral-100);
482
+ --cr-input-filled-color: var(--cr-color-neutral-800);
483
+ --cr-input-filled-color-hover: var(--cr-color-neutral-800);
484
+ --cr-input-filled-color-focus: var(--cr-color-neutral-700);
485
+ --cr-input-filled-color-disabled: var(--cr-color-neutral-800);
486
+
487
+ /* Labels */
488
+ --cr-input-label-font-size-small: var(--cr-font-size-small);
489
+ --cr-input-label-font-size-medium: var(--cr-font-size-medium);
490
+ --cr-input-label-font-size-large: var(--cr-font-size-large);
491
+ --cr-input-label-color: inherit;
492
+
493
+ /* Help text */
494
+ --cr-input-help-text-font-size-small: var(--cr-font-size-x-small);
495
+ --cr-input-help-text-font-size-medium: var(--cr-font-size-small);
496
+ --cr-input-help-text-font-size-large: var(--cr-font-size-medium);
497
+ --cr-input-help-text-color: var(--cr-color-neutral-500);
498
+
499
+ /* Toggles (checkboxes, radios, switches) */
500
+ --cr-toggle-size-small: 0.875rem; /* 14px */
501
+ --cr-toggle-size-medium: 1.125rem; /* 18px */
502
+ --cr-toggle-size-large: 1.375rem; /* 22px */
503
+
504
+ /*
505
+ * Overlays
506
+ */
507
+
508
+ --cr-overlay-background-color: hsl(240 3.8% 46.1% / 33%);
509
+
510
+ /*
511
+ * Panels
512
+ */
513
+
514
+ --cr-panel-background-color: var(--cr-color-neutral-0);
515
+ --cr-panel-border-color: var(--cr-color-neutral-200);
516
+ --cr-panel-border-width: 1px;
517
+
518
+ /*
519
+ * Tooltips
520
+ */
521
+
522
+ --cr-tooltip-border-radius: var(--cr-border-radius-medium);
523
+ --cr-tooltip-background-color: var(--cr-color-neutral-800);
524
+ --cr-tooltip-color: var(--cr-color-neutral-0);
525
+ --cr-tooltip-font-family: var(--cr-font-sans);
526
+ --cr-tooltip-font-weight: var(--cr-font-weight-normal);
527
+ --cr-tooltip-font-size: var(--cr-font-size-small);
528
+ --cr-tooltip-line-height: var(--cr-line-height-dense);
529
+ --cr-tooltip-padding: var(--cr-spacing-2x-small) var(--cr-spacing-x-small);
530
+ --cr-tooltip-arrow-size: 6px;
531
+
532
+ /*
533
+ * Z-indexes
534
+ */
535
+
536
+ --cr-z-index-drawer: 700;
537
+ --cr-z-index-dialog: 800;
538
+ --cr-z-index-dropdown: 900;
539
+ --cr-z-index-toast: 950;
540
+ --cr-z-index-tooltip: 1000;
541
+ }