@gainsight-hub/design-tokens 0.1.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.
- package/README.md +305 -0
- package/dist/applyTheme.d.ts +14 -0
- package/dist/applyTheme.js +66 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/styles.css +457 -0
- package/dist/tailwind.preset.cjs +289 -0
- package/dist/tailwind.preset.mjs +289 -0
- package/dist/theme-manifest.json +212 -0
- package/dist/themes/antd.css +48 -0
- package/dist/themes/antd.css.d.ts +2 -0
- package/dist/themes/dark.css +47 -0
- package/dist/themes/dark.css.d.ts +2 -0
- package/dist/themes/legacy.css +165 -0
- package/dist/themes/legacy.css.d.ts +2 -0
- package/dist/themes/mui.css +48 -0
- package/dist/themes/mui.css.d.ts +2 -0
- package/dist/themes/spectrum.css +48 -0
- package/dist/themes/spectrum.css.d.ts +2 -0
- package/dist/themes.css +8 -0
- package/dist/token-catalog.json +5107 -0
- package/dist/tokens.d.ts +525 -0
- package/dist/tokens.js +371 -0
- package/dist/tokens.json +617 -0
- package/dist/tokens.scss +360 -0
- package/package.json +55 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"themes": [
|
|
3
|
+
{
|
|
4
|
+
"id": "gainsight-light",
|
|
5
|
+
"label": "Light",
|
|
6
|
+
"description": "Gainsight design system — default light theme",
|
|
7
|
+
"selector": null,
|
|
8
|
+
"cssFile": null,
|
|
9
|
+
"variables": {}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "dark",
|
|
13
|
+
"label": "Dark",
|
|
14
|
+
"description": "Gainsight design system — dark mode",
|
|
15
|
+
"selector": "[data-theme=\"dark\"]",
|
|
16
|
+
"cssFile": "@gainsight-hub/design-tokens/themes/dark.css",
|
|
17
|
+
"variables": {
|
|
18
|
+
"--theme-neutral-0": "#2B3346",
|
|
19
|
+
"--theme-neutral-100": "#3B4254",
|
|
20
|
+
"--theme-neutral-200": "#4F5663",
|
|
21
|
+
"--theme-neutral-300": "#696E7C",
|
|
22
|
+
"--theme-neutral-400": "#7B808E",
|
|
23
|
+
"--theme-neutral-500": "#8D919B",
|
|
24
|
+
"--theme-neutral-600": "#B8BBC2",
|
|
25
|
+
"--theme-neutral-700": "#DEDFE2",
|
|
26
|
+
"--theme-neutral-800": "#F4F5F6",
|
|
27
|
+
"--theme-neutral-900": "#FAFAFA",
|
|
28
|
+
"--theme-neutral-1000": "#FFFFFF",
|
|
29
|
+
"--config-hero-color": "#FFFFFF",
|
|
30
|
+
"--theme-brand-100": "#1C2B41",
|
|
31
|
+
"--theme-brand-200": "#09326C",
|
|
32
|
+
"--theme-brand-300": "#0055CC",
|
|
33
|
+
"--theme-brand-400": "#0C66E4",
|
|
34
|
+
"--theme-brand-500": "#1D7AFC",
|
|
35
|
+
"--theme-brand-600": "#388BFF",
|
|
36
|
+
"--theme-brand-700": "#579DFF",
|
|
37
|
+
"--theme-brand-800": "#85B8FF",
|
|
38
|
+
"--theme-brand-900": "#CCE0FF",
|
|
39
|
+
"--theme-brand-1000": "#E9F2FF",
|
|
40
|
+
"--color-status-success-bold": "#4BCE7F",
|
|
41
|
+
"--color-status-information-bold": "#579DFF",
|
|
42
|
+
"--color-status-danger-bold": "#F86A68",
|
|
43
|
+
"--color-community-answered": "#4BCE7F",
|
|
44
|
+
"--color-community-highlighted": "#F5CD47",
|
|
45
|
+
"--color-community-pinned": "#579DFF",
|
|
46
|
+
"--color-overlay-interactive-hover": "rgba(255, 255, 255, 0.08)",
|
|
47
|
+
"--color-overlay-interactive-pressed": "rgba(255, 255, 255, 0.14)",
|
|
48
|
+
"--color-overlay-backdrop": "rgba(9, 30, 66, 0.72)",
|
|
49
|
+
"--color-skeleton-default": "#4F5663",
|
|
50
|
+
"--color-skeleton-subtle": "#3B4254"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "legacy",
|
|
55
|
+
"label": "Legacy",
|
|
56
|
+
"description": "Gainsight legacy defaults (pre design-system migration)",
|
|
57
|
+
"selector": "[data-theme=\"legacy\"]",
|
|
58
|
+
"cssFile": "@gainsight-hub/design-tokens/themes/legacy.css",
|
|
59
|
+
"variables": {
|
|
60
|
+
"--theme-brand-600": "oklch(from var(--theme-brand-700) calc(l + 0.037) c h)",
|
|
61
|
+
"--theme-brand-500": "oklch(from var(--theme-brand-700) calc(l + 0.100) c h)",
|
|
62
|
+
"--theme-brand-400": "oklch(from var(--theme-brand-700) calc(l + 0.185) c h)",
|
|
63
|
+
"--theme-brand-300": "oklch(from var(--theme-brand-700) calc(l + 0.270) c h)",
|
|
64
|
+
"--theme-brand-200": "oklch(from var(--theme-brand-700) calc(l + 0.353) c h)",
|
|
65
|
+
"--theme-brand-100": "oklch(from var(--theme-brand-700) calc(l + 0.415) c h)",
|
|
66
|
+
"--theme-brand-800": "oklch(from var(--theme-brand-700) calc(l - 0.087) c h)",
|
|
67
|
+
"--theme-brand-900": "oklch(from var(--theme-brand-700) calc(l - 0.184) c h)",
|
|
68
|
+
"--theme-brand-1000": "oklch(from var(--theme-brand-700) calc(l - 0.279) c h)",
|
|
69
|
+
"--theme-neutral-0": "#FFFFFF",
|
|
70
|
+
"--theme-neutral-100": "oklch(from var(--theme-neutral-1000) calc(l + 0.654) calc(c * 0.003) h)",
|
|
71
|
+
"--theme-neutral-200": "oklch(from var(--theme-neutral-1000) calc(l + 0.624) calc(c * 0.003) h)",
|
|
72
|
+
"--theme-neutral-300": "oklch(from var(--theme-neutral-1000) calc(l + 0.567) calc(c * 0.042) h)",
|
|
73
|
+
"--theme-neutral-400": "oklch(from var(--theme-neutral-1000) calc(l + 0.482) calc(c * 0.087) h)",
|
|
74
|
+
"--theme-neutral-500": "oklch(from var(--theme-neutral-1000) calc(l + 0.361) calc(c * 0.383) h)",
|
|
75
|
+
"--theme-neutral-600": "oklch(from var(--theme-neutral-1000) calc(l + 0.291) calc(c * 0.626) h)",
|
|
76
|
+
"--theme-neutral-700": "oklch(from var(--theme-neutral-1000) calc(l + 0.219) calc(c * 0.888) h)",
|
|
77
|
+
"--theme-neutral-800": "oklch(from var(--theme-neutral-1000) calc(l + 0.139) calc(c * 1.011) h)",
|
|
78
|
+
"--theme-neutral-900": "oklch(from var(--theme-neutral-1000) calc(l + 0.066) calc(c * 1.045) h)"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "mui",
|
|
83
|
+
"label": "Material UI",
|
|
84
|
+
"description": "Material Design 3–inspired theme",
|
|
85
|
+
"selector": "[data-theme=\"mui\"]",
|
|
86
|
+
"cssFile": "@gainsight-hub/design-tokens/themes/mui.css",
|
|
87
|
+
"variables": {
|
|
88
|
+
"--theme-brand-100": "#E3F2FD",
|
|
89
|
+
"--theme-brand-200": "#BBDEFB",
|
|
90
|
+
"--theme-brand-300": "#90CAF9",
|
|
91
|
+
"--theme-brand-400": "#64B5F6",
|
|
92
|
+
"--theme-brand-500": "#42A5F5",
|
|
93
|
+
"--theme-brand-600": "#1E88E5",
|
|
94
|
+
"--theme-brand-700": "#1976D2",
|
|
95
|
+
"--theme-brand-800": "#1565C0",
|
|
96
|
+
"--theme-brand-900": "#0D47A1",
|
|
97
|
+
"--theme-brand-1000": "#072363",
|
|
98
|
+
"--theme-neutral-0": "#FFFFFF",
|
|
99
|
+
"--theme-neutral-100": "#FAFAFA",
|
|
100
|
+
"--theme-neutral-200": "#F5F5F5",
|
|
101
|
+
"--theme-neutral-300": "#E0E0E0",
|
|
102
|
+
"--theme-neutral-400": "#BDBDBD",
|
|
103
|
+
"--theme-neutral-500": "#9E9E9E",
|
|
104
|
+
"--theme-neutral-600": "#757575",
|
|
105
|
+
"--theme-neutral-700": "#616161",
|
|
106
|
+
"--theme-neutral-800": "#424242",
|
|
107
|
+
"--theme-neutral-900": "#303030",
|
|
108
|
+
"--theme-neutral-1000": "#212121",
|
|
109
|
+
"--font-family-sans": "Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
110
|
+
"--font-family-mono": "'Roboto Mono', 'Courier New', monospace",
|
|
111
|
+
"--radius-025": "1px",
|
|
112
|
+
"--radius-050": "2px",
|
|
113
|
+
"--radius-100": "4px",
|
|
114
|
+
"--radius-150": "6px",
|
|
115
|
+
"--radius-200": "8px",
|
|
116
|
+
"--shadow-100": "0px 2px 1px -1px rgba(0,0,0,0.20), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",
|
|
117
|
+
"--shadow-200": "0px 2px 4px -1px rgba(0,0,0,0.20), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",
|
|
118
|
+
"--shadow-300": "0px 5px 5px -3px rgba(0,0,0,0.20), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",
|
|
119
|
+
"--color-status-success-bold": "#2E7D32",
|
|
120
|
+
"--color-status-danger-bold": "#D32F2F",
|
|
121
|
+
"--color-status-information-bold": "#0288D1"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "antd",
|
|
126
|
+
"label": "Ant Design",
|
|
127
|
+
"description": "Ant Design 5.x–inspired theme",
|
|
128
|
+
"selector": "[data-theme=\"antd\"]",
|
|
129
|
+
"cssFile": "@gainsight-hub/design-tokens/themes/antd.css",
|
|
130
|
+
"variables": {
|
|
131
|
+
"--theme-brand-100": "#E6F4FF",
|
|
132
|
+
"--theme-brand-200": "#BAE0FF",
|
|
133
|
+
"--theme-brand-300": "#91CAFF",
|
|
134
|
+
"--theme-brand-400": "#69B1FF",
|
|
135
|
+
"--theme-brand-500": "#4096FF",
|
|
136
|
+
"--theme-brand-600": "#2880EB",
|
|
137
|
+
"--theme-brand-700": "#1677FF",
|
|
138
|
+
"--theme-brand-800": "#0958D9",
|
|
139
|
+
"--theme-brand-900": "#003EB3",
|
|
140
|
+
"--theme-brand-1000": "#002C8C",
|
|
141
|
+
"--theme-neutral-0": "#FFFFFF",
|
|
142
|
+
"--theme-neutral-100": "#FAFAFA",
|
|
143
|
+
"--theme-neutral-200": "#F5F5F5",
|
|
144
|
+
"--theme-neutral-300": "#D9D9D9",
|
|
145
|
+
"--theme-neutral-400": "#BFBFBF",
|
|
146
|
+
"--theme-neutral-500": "#8C8C8C",
|
|
147
|
+
"--theme-neutral-600": "#595959",
|
|
148
|
+
"--theme-neutral-700": "#434343",
|
|
149
|
+
"--theme-neutral-800": "#262626",
|
|
150
|
+
"--theme-neutral-900": "#1F1F1F",
|
|
151
|
+
"--theme-neutral-1000": "#141414",
|
|
152
|
+
"--font-family-sans": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
153
|
+
"--font-family-mono": "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",
|
|
154
|
+
"--radius-025": "2px",
|
|
155
|
+
"--radius-050": "6px",
|
|
156
|
+
"--radius-100": "8px",
|
|
157
|
+
"--radius-150": "12px",
|
|
158
|
+
"--radius-200": "16px",
|
|
159
|
+
"--shadow-100": "0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02), 0 2px 4px 0 rgba(0,0,0,0.02)",
|
|
160
|
+
"--shadow-200": "0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)",
|
|
161
|
+
"--shadow-300": "0 6px 16px -8px rgba(0,0,0,0.08), 0 9px 28px 0 rgba(0,0,0,0.05), 0 12px 48px 16px rgba(0,0,0,0.03)",
|
|
162
|
+
"--color-status-success-bold": "#52C41A",
|
|
163
|
+
"--color-status-danger-bold": "#FF4D4F",
|
|
164
|
+
"--color-status-information-bold": "#1677FF"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "spectrum",
|
|
169
|
+
"label": "Adobe Spectrum",
|
|
170
|
+
"description": "Adobe Spectrum–inspired theme",
|
|
171
|
+
"selector": "[data-theme=\"spectrum\"]",
|
|
172
|
+
"cssFile": "@gainsight-hub/design-tokens/themes/spectrum.css",
|
|
173
|
+
"variables": {
|
|
174
|
+
"--theme-brand-100": "#EAF1FB",
|
|
175
|
+
"--theme-brand-200": "#CBE0F8",
|
|
176
|
+
"--theme-brand-300": "#A8CCF2",
|
|
177
|
+
"--theme-brand-400": "#7FB7EB",
|
|
178
|
+
"--theme-brand-500": "#5093DA",
|
|
179
|
+
"--theme-brand-600": "#2171C5",
|
|
180
|
+
"--theme-brand-700": "#0265DC",
|
|
181
|
+
"--theme-brand-800": "#0550AE",
|
|
182
|
+
"--theme-brand-900": "#1B3E6E",
|
|
183
|
+
"--theme-brand-1000": "#0C2143",
|
|
184
|
+
"--theme-neutral-0": "#FFFFFF",
|
|
185
|
+
"--theme-neutral-100": "#F5F5F5",
|
|
186
|
+
"--theme-neutral-200": "#EAEAEA",
|
|
187
|
+
"--theme-neutral-300": "#D3D3D3",
|
|
188
|
+
"--theme-neutral-400": "#BCBCBC",
|
|
189
|
+
"--theme-neutral-500": "#909090",
|
|
190
|
+
"--theme-neutral-600": "#6E6E6E",
|
|
191
|
+
"--theme-neutral-700": "#4B4B4B",
|
|
192
|
+
"--theme-neutral-800": "#2C2C2C",
|
|
193
|
+
"--theme-neutral-900": "#222222",
|
|
194
|
+
"--theme-neutral-1000": "#1A1A1A",
|
|
195
|
+
"--font-family-sans": "'adobe-clean', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif",
|
|
196
|
+
"--font-family-mono": "'Source Code Pro', 'SFMono-Regular', Consolas, monospace",
|
|
197
|
+
"--radius-025": "0px",
|
|
198
|
+
"--radius-050": "0px",
|
|
199
|
+
"--radius-100": "0px",
|
|
200
|
+
"--radius-150": "0px",
|
|
201
|
+
"--radius-200": "0px",
|
|
202
|
+
"--shadow-100": "0px 1px 4px rgba(0, 0, 0, 0.16)",
|
|
203
|
+
"--shadow-200": "0px 4px 8px rgba(0, 0, 0, 0.12)",
|
|
204
|
+
"--shadow-300": "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
205
|
+
"--color-status-success-bold": "#008854",
|
|
206
|
+
"--color-status-danger-bold": "#D7373F",
|
|
207
|
+
"--color-status-information-bold": "#0265DC"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"defaultTheme": "gainsight-light"
|
|
212
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Auto-generated — do not edit manually. Source: themes/antd/index.js */
|
|
2
|
+
/**
|
|
3
|
+
* Ant Design 5.x–inspired theme
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* import "@gainsight-hub/design-tokens/styles.css"; // must load first
|
|
7
|
+
* import "@gainsight-hub/design-tokens/themes/antd.css";
|
|
8
|
+
* document.documentElement.setAttribute("data-theme", "antd");
|
|
9
|
+
*
|
|
10
|
+
* Restore default theme:
|
|
11
|
+
* document.documentElement.removeAttribute("data-theme");
|
|
12
|
+
*/
|
|
13
|
+
[data-theme="antd"] {
|
|
14
|
+
--theme-brand-100: #E6F4FF;
|
|
15
|
+
--theme-brand-200: #BAE0FF;
|
|
16
|
+
--theme-brand-300: #91CAFF;
|
|
17
|
+
--theme-brand-400: #69B1FF;
|
|
18
|
+
--theme-brand-500: #4096FF;
|
|
19
|
+
--theme-brand-600: #2880EB;
|
|
20
|
+
--theme-brand-700: #1677FF;
|
|
21
|
+
--theme-brand-800: #0958D9;
|
|
22
|
+
--theme-brand-900: #003EB3;
|
|
23
|
+
--theme-brand-1000: #002C8C;
|
|
24
|
+
--theme-neutral-0: #FFFFFF;
|
|
25
|
+
--theme-neutral-100: #FAFAFA;
|
|
26
|
+
--theme-neutral-200: #F5F5F5;
|
|
27
|
+
--theme-neutral-300: #D9D9D9;
|
|
28
|
+
--theme-neutral-400: #BFBFBF;
|
|
29
|
+
--theme-neutral-500: #8C8C8C;
|
|
30
|
+
--theme-neutral-600: #595959;
|
|
31
|
+
--theme-neutral-700: #434343;
|
|
32
|
+
--theme-neutral-800: #262626;
|
|
33
|
+
--theme-neutral-900: #1F1F1F;
|
|
34
|
+
--theme-neutral-1000: #141414;
|
|
35
|
+
--font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
36
|
+
--font-family-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
37
|
+
--radius-025: 2px;
|
|
38
|
+
--radius-050: 6px;
|
|
39
|
+
--radius-100: 8px;
|
|
40
|
+
--radius-150: 12px;
|
|
41
|
+
--radius-200: 16px;
|
|
42
|
+
--shadow-100: 0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02), 0 2px 4px 0 rgba(0,0,0,0.02);
|
|
43
|
+
--shadow-200: 0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05);
|
|
44
|
+
--shadow-300: 0 6px 16px -8px rgba(0,0,0,0.08), 0 9px 28px 0 rgba(0,0,0,0.05), 0 12px 48px 16px rgba(0,0,0,0.03);
|
|
45
|
+
--color-status-success-bold: #52C41A;
|
|
46
|
+
--color-status-danger-bold: #FF4D4F;
|
|
47
|
+
--color-status-information-bold: #1677FF;
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Auto-generated — do not edit manually. Source: themes/dark/index.js */
|
|
2
|
+
/**
|
|
3
|
+
* Gainsight design system — dark mode
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* import "@gainsight-hub/design-tokens/styles.css"; // must load first
|
|
7
|
+
* import "@gainsight-hub/design-tokens/themes/dark.css";
|
|
8
|
+
* document.documentElement.setAttribute("data-theme", "dark");
|
|
9
|
+
*
|
|
10
|
+
* Restore default theme:
|
|
11
|
+
* document.documentElement.removeAttribute("data-theme");
|
|
12
|
+
*/
|
|
13
|
+
[data-theme="dark"] {
|
|
14
|
+
--theme-neutral-0: #2B3346;
|
|
15
|
+
--theme-neutral-100: #3B4254;
|
|
16
|
+
--theme-neutral-200: #4F5663;
|
|
17
|
+
--theme-neutral-300: #696E7C;
|
|
18
|
+
--theme-neutral-400: #7B808E;
|
|
19
|
+
--theme-neutral-500: #8D919B;
|
|
20
|
+
--theme-neutral-600: #B8BBC2;
|
|
21
|
+
--theme-neutral-700: #DEDFE2;
|
|
22
|
+
--theme-neutral-800: #F4F5F6;
|
|
23
|
+
--theme-neutral-900: #FAFAFA;
|
|
24
|
+
--theme-neutral-1000: #FFFFFF;
|
|
25
|
+
--config-hero-color: #FFFFFF;
|
|
26
|
+
--theme-brand-100: #1C2B41;
|
|
27
|
+
--theme-brand-200: #09326C;
|
|
28
|
+
--theme-brand-300: #0055CC;
|
|
29
|
+
--theme-brand-400: #0C66E4;
|
|
30
|
+
--theme-brand-500: #1D7AFC;
|
|
31
|
+
--theme-brand-600: #388BFF;
|
|
32
|
+
--theme-brand-700: #579DFF;
|
|
33
|
+
--theme-brand-800: #85B8FF;
|
|
34
|
+
--theme-brand-900: #CCE0FF;
|
|
35
|
+
--theme-brand-1000: #E9F2FF;
|
|
36
|
+
--color-status-success-bold: #4BCE7F;
|
|
37
|
+
--color-status-information-bold: #579DFF;
|
|
38
|
+
--color-status-danger-bold: #F86A68;
|
|
39
|
+
--color-community-answered: #4BCE7F;
|
|
40
|
+
--color-community-highlighted: #F5CD47;
|
|
41
|
+
--color-community-pinned: #579DFF;
|
|
42
|
+
--color-overlay-interactive-hover: rgba(255, 255, 255, 0.08);
|
|
43
|
+
--color-overlay-interactive-pressed: rgba(255, 255, 255, 0.14);
|
|
44
|
+
--color-overlay-backdrop: rgba(9, 30, 66, 0.72);
|
|
45
|
+
--color-skeleton-default: #4F5663;
|
|
46
|
+
--color-skeleton-subtle: #3B4254;
|
|
47
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* Auto-generated — do not edit manually. Source: themes/legacy/index.js */
|
|
2
|
+
/**
|
|
3
|
+
* Gainsight legacy defaults (pre design-system migration)
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* import "@gainsight-hub/design-tokens/styles.css"; // must load first
|
|
7
|
+
* import "@gainsight-hub/design-tokens/themes/legacy.css";
|
|
8
|
+
* document.documentElement.setAttribute("data-theme", "legacy");
|
|
9
|
+
*
|
|
10
|
+
* Restore default theme:
|
|
11
|
+
* document.documentElement.removeAttribute("data-theme");
|
|
12
|
+
*/
|
|
13
|
+
[data-theme="legacy"] {
|
|
14
|
+
--theme-brand-700: var(--config--main-color-brand, #0C66E4);
|
|
15
|
+
--theme-brand-600: oklch(from var(--theme-brand-700) calc(l + 0.037) c h);
|
|
16
|
+
--theme-brand-500: oklch(from var(--theme-brand-700) calc(l + 0.100) c h);
|
|
17
|
+
--theme-brand-400: oklch(from var(--theme-brand-700) calc(l + 0.185) c h);
|
|
18
|
+
--theme-brand-300: oklch(from var(--theme-brand-700) calc(l + 0.270) c h);
|
|
19
|
+
--theme-brand-200: oklch(from var(--theme-brand-700) calc(l + 0.353) c h);
|
|
20
|
+
--theme-brand-100: oklch(from var(--theme-brand-700) calc(l + 0.415) c h);
|
|
21
|
+
--theme-brand-800: oklch(from var(--theme-brand-700) calc(l - 0.087) c h);
|
|
22
|
+
--theme-brand-900: oklch(from var(--theme-brand-700) calc(l - 0.184) c h);
|
|
23
|
+
--theme-brand-1000: oklch(from var(--theme-brand-700) calc(l - 0.279) c h);
|
|
24
|
+
--theme-neutral-1000: var(--config--main-color-night, #2B3346);
|
|
25
|
+
--theme-neutral-0: #FFFFFF;
|
|
26
|
+
--theme-neutral-100: oklch(from var(--theme-neutral-1000) calc(l + 0.654) calc(c * 0.003) h);
|
|
27
|
+
--theme-neutral-200: oklch(from var(--theme-neutral-1000) calc(l + 0.624) calc(c * 0.003) h);
|
|
28
|
+
--theme-neutral-300: oklch(from var(--theme-neutral-1000) calc(l + 0.567) calc(c * 0.042) h);
|
|
29
|
+
--theme-neutral-400: oklch(from var(--theme-neutral-1000) calc(l + 0.482) calc(c * 0.087) h);
|
|
30
|
+
--theme-neutral-500: oklch(from var(--theme-neutral-1000) calc(l + 0.361) calc(c * 0.383) h);
|
|
31
|
+
--theme-neutral-600: oklch(from var(--theme-neutral-1000) calc(l + 0.291) calc(c * 0.626) h);
|
|
32
|
+
--theme-neutral-700: oklch(from var(--theme-neutral-1000) calc(l + 0.219) calc(c * 0.888) h);
|
|
33
|
+
--theme-neutral-800: oklch(from var(--theme-neutral-1000) calc(l + 0.139) calc(c * 1.011) h);
|
|
34
|
+
--theme-neutral-900: oklch(from var(--theme-neutral-1000) calc(l + 0.066) calc(c * 1.045) h);
|
|
35
|
+
--color-action-primary-default: var(--config--main-color-brand, #0C66E4);
|
|
36
|
+
--color-action-destructive-default: var(--config--main-color-alert, #c92c2f);
|
|
37
|
+
--color-surface-page: var(--config-body-background-color, #FAFAFA);
|
|
38
|
+
--color-surface-inverse: var(--config--main-color-night, #2B3346);
|
|
39
|
+
--color-content-default: var(--config--main-color-night, #2B3346);
|
|
40
|
+
--color-content-subtle: var(--config-meta-text-color, #4F5663);
|
|
41
|
+
--color-content-subtlest: var(--config-main-navigation-search-placeholder-color, #696E7C);
|
|
42
|
+
--color-content-heading-default: var(--config-header-color, #2B3346);
|
|
43
|
+
--color-content-heading-hero: var(--config-hero-color, #FFFFFF);
|
|
44
|
+
--color-line-default: var(--config--main-color-disabled, #DEDFE2);
|
|
45
|
+
--color-status-success-bold: var(--config--main-color-success, #1f8444);
|
|
46
|
+
--color-status-information-bold: var(--config--main-color-info, #0c66e4);
|
|
47
|
+
--color-status-danger-bold: var(--config--main-color-alert, #c92c2f);
|
|
48
|
+
--color-community-answered: var(--config--main-color-success, #1f8444);
|
|
49
|
+
--color-community-unanswered: var(--config-topic-question-color, #696E7C);
|
|
50
|
+
--color-community-highlighted: var(--config--main-color-brand, #0C66E4);
|
|
51
|
+
--color-community-pinned: var(--config--main-color-brand, #0C66E4);
|
|
52
|
+
--color-link-default: var(--config--main-color-brand, #0C66E4);
|
|
53
|
+
--color-link-hover: var(--config-link-base-hover-color, #0055CC);
|
|
54
|
+
--color-skeleton-subtle: var(--color-skeleton-default, #2b33460a);
|
|
55
|
+
--space-layout-gutter: var(--gutter, 12px);
|
|
56
|
+
--backtotop-background: var(--config-footer-background-color, #2B3346);
|
|
57
|
+
--backtotop-content: var(--config-footer-color, #FFFFFF);
|
|
58
|
+
--button-radius: var(--config-button-border-radius, 8px);
|
|
59
|
+
--button-border-width: var(--config-button-border-width, 1px);
|
|
60
|
+
--button-font-weight: var(--config--main-button-base-font-weight, 500);
|
|
61
|
+
--button-text-transform: var(--config--main-button-base-texttransform, none);
|
|
62
|
+
--button-primary-background-default: var(--config-button-cta-background-color, #0C66E4);
|
|
63
|
+
--button-primary-background-hover: var(--config-button-cta-hover-background-color, #0055CC);
|
|
64
|
+
--button-primary-background-pressed: var(--config-button-cta-active-background-color, #09326C);
|
|
65
|
+
--button-primary-content-default: var(--config-button-cta-color, #FFFFFF);
|
|
66
|
+
--button-primary-content-hover: var(--config-button-cta-hover-color, #FFFFFF);
|
|
67
|
+
--button-primary-content-pressed: var(--config-button-cta-active-color, #FFFFFF);
|
|
68
|
+
--button-primary-border-default: var(--config-button-cta-border-color, #00000000);
|
|
69
|
+
--button-primary-border-hover: var(--config-button-cta-hover-border-color, #00000000);
|
|
70
|
+
--button-primary-border-pressed: var(--config-button-cta-active-border-color, #00000000);
|
|
71
|
+
--button-primary-shadow: var(--config-button-cta-box-shadow, none);
|
|
72
|
+
--button-secondary-background-default: var(--config-button-secondary-background-color, #FFFFFF);
|
|
73
|
+
--button-secondary-background-hover: var(--config-button-secondary-hover-background-color, #FAFAFA);
|
|
74
|
+
--button-secondary-background-pressed: var(--config-button-secondary-active-background-color, #F4F5F6);
|
|
75
|
+
--button-secondary-content-default: var(--config-button-secondary-color, #2B3346);
|
|
76
|
+
--button-secondary-content-hover: var(--config-button-secondary-hover-color, #2B3346);
|
|
77
|
+
--button-secondary-content-pressed: var(--config-button-secondary-active-color, #2B3346);
|
|
78
|
+
--button-secondary-border-default: var(--config-button-secondary-border-color, #DEDFE2);
|
|
79
|
+
--button-secondary-border-hover: var(--config-button-secondary-hover-border-color, #DEDFE2);
|
|
80
|
+
--button-secondary-border-pressed: var(--config-button-secondary-active-border-color, #DEDFE2);
|
|
81
|
+
--button-secondary-shadow: var(--config-button-secondary-box-shadow, none);
|
|
82
|
+
--button-destructive-background-default: var(--config-button-cancel-background-color, #c92c2f);
|
|
83
|
+
--button-destructive-background-hover: var(--config-button-cancel-hover-background-color, #ae2426);
|
|
84
|
+
--button-destructive-background-pressed: var(--config-button-cancel-active-background-color, #5d1a1c);
|
|
85
|
+
--button-destructive-content-default: var(--config-button-cancel-color, #FFFFFF);
|
|
86
|
+
--button-destructive-content-hover: var(--config-button-cancel-hover-color, #FFFFFF);
|
|
87
|
+
--button-destructive-content-pressed: var(--config-button-cancel-active-color, #FFFFFF);
|
|
88
|
+
--button-destructive-border-default: var(--config-button-cancel-border-color, #00000000);
|
|
89
|
+
--button-destructive-border-hover: var(--config-button-cancel-hover-border-color, #00000000);
|
|
90
|
+
--button-destructive-border-pressed: var(--config-button-cancel-active-border-color, #00000000);
|
|
91
|
+
--button-destructive-shadow: var(--config-button-cancel-box-shadow, none);
|
|
92
|
+
--button-vote-background-default: var(--config-button-toggle-background-color, #FFFFFF);
|
|
93
|
+
--button-vote-background-hover: var(--config-button-toggle-hover-background-color, #FAFAFA);
|
|
94
|
+
--button-vote-background-pressed: var(--config-button-toggle-active-background-color, #F4F5F6);
|
|
95
|
+
--button-vote-content-default: var(--config-button-toggle-color, #2B3346);
|
|
96
|
+
--button-vote-content-hover: var(--config-button-toggle-hover-color, #2B3346);
|
|
97
|
+
--button-vote-content-pressed: var(--config-button-toggle-active-color, #2B3346);
|
|
98
|
+
--button-vote-border-default: var(--config-button-toggle-border-color, #DEDFE2);
|
|
99
|
+
--button-vote-border-hover: var(--config-button-toggle-hover-border-color, #DEDFE2);
|
|
100
|
+
--button-vote-border-pressed: var(--config-button-toggle-active-border-color, #DEDFE2);
|
|
101
|
+
--button-vote-shadow-default: var(--config-button-toggle-box-shadow, none);
|
|
102
|
+
--button-vote-shadow-hover: var(--config-button-toggle-hover-box-shadow, none);
|
|
103
|
+
--button-vote-shadow-pressed: var(--config-button-toggle-active-box-shadow, none);
|
|
104
|
+
--button-vote-selected-background-default: var(--config-button-toggle-on-background-color, #0C66E4);
|
|
105
|
+
--button-vote-selected-background-hover: var(--config-button-toggle-on-hover-background-color, #0055CC);
|
|
106
|
+
--button-vote-selected-background-pressed: var(--config-button-toggle-on-active-background-color, #09326C);
|
|
107
|
+
--button-vote-selected-content-default: var(--config-button-toggle-on-color, #FFFFFF);
|
|
108
|
+
--button-vote-selected-content-hover: var(--config-button-toggle-on-hover-color, #FFFFFF);
|
|
109
|
+
--button-vote-selected-content-pressed: var(--config-button-toggle-on-active-color, #FFFFFF);
|
|
110
|
+
--button-vote-selected-border-default: var(--config-button-toggle-on-border-color, #00000000);
|
|
111
|
+
--button-vote-selected-border-hover: var(--config-button-toggle-on-hover-border-color, #00000000);
|
|
112
|
+
--button-vote-selected-border-pressed: var(--config-button-toggle-on-active-border-color, #00000000);
|
|
113
|
+
--button-vote-selected-shadow-default: var(--config-button-toggle-on-box-shadow, none);
|
|
114
|
+
--button-vote-selected-shadow-hover: var(--config-button-toggle-on-hover-box-shadow, none);
|
|
115
|
+
--button-vote-selected-shadow-pressed: var(--config-button-toggle-on-active-box-shadow, none);
|
|
116
|
+
--card-radius: var(--config-card-border-radius, 8px);
|
|
117
|
+
--card-border-width: var(--config-card-border-width, 1px);
|
|
118
|
+
--card-border-default: var(--config-card-border-color, #DEDFE2);
|
|
119
|
+
--card-border-hover: var(--config-card-hover-border-color, #DEDFE2);
|
|
120
|
+
--card-border-pressed: var(--config-card-active-border-color, #DEDFE2);
|
|
121
|
+
--card-background-default: var(--config-card-background-color, #FFFFFF);
|
|
122
|
+
--card-background-hover: var(--config-card-hover-background-color, #FFFFFF);
|
|
123
|
+
--card-background-pressed: var(--config-card-active-background-color, #FFFFFF);
|
|
124
|
+
--card-title-default: var(--config-card-title-color, #2B3346);
|
|
125
|
+
--card-title-hover: var(--config-card-hover-title-color, #0C66E4);
|
|
126
|
+
--card-title-pressed: var(--config-card-active-title-color, #2B3346);
|
|
127
|
+
--card-content-default: var(--config-card-text-color, #2B3346);
|
|
128
|
+
--card-content-hover: var(--config-card-hover-text-color, #2B3346);
|
|
129
|
+
--card-content-pressed: var(--config-card-active-text-color, #0055CC);
|
|
130
|
+
--card-shadow-default: var(--config-card-shadow, none);
|
|
131
|
+
--card-shadow-hover: var(--config-card-hover-shadow, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));
|
|
132
|
+
--card-shadow-pressed: var(--config-card-active-shadow, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));
|
|
133
|
+
--feed-item-radius: var(--config-list-views-card-border-radius, 8px);
|
|
134
|
+
--feed-item-border-width: var(--config-list-views-card-border-width, 1px);
|
|
135
|
+
--feed-item-border-default: var(--config-list-views-card-default-border-color, #DEDFE2);
|
|
136
|
+
--feed-item-border-hover: var(--config-list-views-card-hover-border-color, #DEDFE2);
|
|
137
|
+
--feed-item-border-pressed: var(--config-list-views-card-click-border-color, #DEDFE2);
|
|
138
|
+
--feed-item-background-default: var(--config-list-views-card-default-background-color, #FFFFFF);
|
|
139
|
+
--feed-item-background-hover: var(--config-list-views-card-hover-background-color, #FFFFFF);
|
|
140
|
+
--feed-item-background-pressed: var(--config-list-views-card-click-background-color, #FFFFFF);
|
|
141
|
+
--feed-item-title-default: var(--config-list-views-card-default-title-color, #2B3346);
|
|
142
|
+
--feed-item-title-hover: var(--config-list-views-card-hover-title-color, #0C66E4);
|
|
143
|
+
--feed-item-title-pressed: var(--config-list-views-card-click-title-color, #0055CC);
|
|
144
|
+
--feed-item-content-default: var(--config-list-views-card-default-text-color, #2B3346);
|
|
145
|
+
--feed-item-content-hover: var(--config-list-views-card-hover-text-color, #2B3346);
|
|
146
|
+
--feed-item-content-pressed: var(--config-list-views-card-click-text-color, #0055CC);
|
|
147
|
+
--navigation-background: var(--config-main-navigation-background-color, #FFFFFF);
|
|
148
|
+
--navigation-content: var(--config-main-navigation-nav-color, #2B3346);
|
|
149
|
+
--navigation-dropdown-background: var(--config-main-navigation-dropdown-background-color, #FFFFFF);
|
|
150
|
+
--navigation-dropdown-content: var(--config-main-navigation-dropdown-color, #2B3346);
|
|
151
|
+
--navigation-border-top: var(--config-main-navigation-border-top-color, #00000000);
|
|
152
|
+
--navigation-border-bottom: var(--config-main-navigation-border-bottom-color, #DEDFE2);
|
|
153
|
+
--widget-title: var(--config-header-color, #2B3346);
|
|
154
|
+
--widget-hero-title: var(--config-hero-color, #FFFFFF);
|
|
155
|
+
--widget-hero-subtitle: var(--config-hero-color, #FFFFFF);
|
|
156
|
+
--widget-hero-content-shadow: var(--config-hero-text-shadow, none);
|
|
157
|
+
--widget-hero-height: var(--hero-height, 240px);
|
|
158
|
+
--widget-featured-background: var(--config-notification-widget-background-color, #0c66e4);
|
|
159
|
+
--widget-featured-content: var(--config-notification-widget-color, #FFFFFF);
|
|
160
|
+
--widget-introduction-background: var(--config-widget-cta-background-color, #FFFFFF);
|
|
161
|
+
--widget-introduction-content: var(--config-widget-cta-color, #2B3346);
|
|
162
|
+
--widget-introduction-icon-background: var(--config-cta-icon-background-color, #1f8444);
|
|
163
|
+
--widget-introduction-icon-content: var(--config-cta-icon-check, #FFFFFF);
|
|
164
|
+
--widget-introduction-close-content: var(--config-cta-close-button-color, #696E7C);
|
|
165
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Auto-generated — do not edit manually. Source: themes/mui/index.js */
|
|
2
|
+
/**
|
|
3
|
+
* Material Design 3–inspired theme
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* import "@gainsight-hub/design-tokens/styles.css"; // must load first
|
|
7
|
+
* import "@gainsight-hub/design-tokens/themes/mui.css";
|
|
8
|
+
* document.documentElement.setAttribute("data-theme", "mui");
|
|
9
|
+
*
|
|
10
|
+
* Restore default theme:
|
|
11
|
+
* document.documentElement.removeAttribute("data-theme");
|
|
12
|
+
*/
|
|
13
|
+
[data-theme="mui"] {
|
|
14
|
+
--theme-brand-100: #E3F2FD;
|
|
15
|
+
--theme-brand-200: #BBDEFB;
|
|
16
|
+
--theme-brand-300: #90CAF9;
|
|
17
|
+
--theme-brand-400: #64B5F6;
|
|
18
|
+
--theme-brand-500: #42A5F5;
|
|
19
|
+
--theme-brand-600: #1E88E5;
|
|
20
|
+
--theme-brand-700: #1976D2;
|
|
21
|
+
--theme-brand-800: #1565C0;
|
|
22
|
+
--theme-brand-900: #0D47A1;
|
|
23
|
+
--theme-brand-1000: #072363;
|
|
24
|
+
--theme-neutral-0: #FFFFFF;
|
|
25
|
+
--theme-neutral-100: #FAFAFA;
|
|
26
|
+
--theme-neutral-200: #F5F5F5;
|
|
27
|
+
--theme-neutral-300: #E0E0E0;
|
|
28
|
+
--theme-neutral-400: #BDBDBD;
|
|
29
|
+
--theme-neutral-500: #9E9E9E;
|
|
30
|
+
--theme-neutral-600: #757575;
|
|
31
|
+
--theme-neutral-700: #616161;
|
|
32
|
+
--theme-neutral-800: #424242;
|
|
33
|
+
--theme-neutral-900: #303030;
|
|
34
|
+
--theme-neutral-1000: #212121;
|
|
35
|
+
--font-family-sans: Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
36
|
+
--font-family-mono: 'Roboto Mono', 'Courier New', monospace;
|
|
37
|
+
--radius-025: 1px;
|
|
38
|
+
--radius-050: 2px;
|
|
39
|
+
--radius-100: 4px;
|
|
40
|
+
--radius-150: 6px;
|
|
41
|
+
--radius-200: 8px;
|
|
42
|
+
--shadow-100: 0px 2px 1px -1px rgba(0,0,0,0.20), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
|
|
43
|
+
--shadow-200: 0px 2px 4px -1px rgba(0,0,0,0.20), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12);
|
|
44
|
+
--shadow-300: 0px 5px 5px -3px rgba(0,0,0,0.20), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
|
|
45
|
+
--color-status-success-bold: #2E7D32;
|
|
46
|
+
--color-status-danger-bold: #D32F2F;
|
|
47
|
+
--color-status-information-bold: #0288D1;
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Auto-generated — do not edit manually. Source: themes/spectrum/index.js */
|
|
2
|
+
/**
|
|
3
|
+
* Adobe Spectrum–inspired theme
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* import "@gainsight-hub/design-tokens/styles.css"; // must load first
|
|
7
|
+
* import "@gainsight-hub/design-tokens/themes/spectrum.css";
|
|
8
|
+
* document.documentElement.setAttribute("data-theme", "spectrum");
|
|
9
|
+
*
|
|
10
|
+
* Restore default theme:
|
|
11
|
+
* document.documentElement.removeAttribute("data-theme");
|
|
12
|
+
*/
|
|
13
|
+
[data-theme="spectrum"] {
|
|
14
|
+
--theme-brand-100: #EAF1FB;
|
|
15
|
+
--theme-brand-200: #CBE0F8;
|
|
16
|
+
--theme-brand-300: #A8CCF2;
|
|
17
|
+
--theme-brand-400: #7FB7EB;
|
|
18
|
+
--theme-brand-500: #5093DA;
|
|
19
|
+
--theme-brand-600: #2171C5;
|
|
20
|
+
--theme-brand-700: #0265DC;
|
|
21
|
+
--theme-brand-800: #0550AE;
|
|
22
|
+
--theme-brand-900: #1B3E6E;
|
|
23
|
+
--theme-brand-1000: #0C2143;
|
|
24
|
+
--theme-neutral-0: #FFFFFF;
|
|
25
|
+
--theme-neutral-100: #F5F5F5;
|
|
26
|
+
--theme-neutral-200: #EAEAEA;
|
|
27
|
+
--theme-neutral-300: #D3D3D3;
|
|
28
|
+
--theme-neutral-400: #BCBCBC;
|
|
29
|
+
--theme-neutral-500: #909090;
|
|
30
|
+
--theme-neutral-600: #6E6E6E;
|
|
31
|
+
--theme-neutral-700: #4B4B4B;
|
|
32
|
+
--theme-neutral-800: #2C2C2C;
|
|
33
|
+
--theme-neutral-900: #222222;
|
|
34
|
+
--theme-neutral-1000: #1A1A1A;
|
|
35
|
+
--font-family-sans: 'adobe-clean', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
|
|
36
|
+
--font-family-mono: 'Source Code Pro', 'SFMono-Regular', Consolas, monospace;
|
|
37
|
+
--radius-025: 0px;
|
|
38
|
+
--radius-050: 0px;
|
|
39
|
+
--radius-100: 0px;
|
|
40
|
+
--radius-150: 0px;
|
|
41
|
+
--radius-200: 0px;
|
|
42
|
+
--shadow-100: 0px 1px 4px rgba(0, 0, 0, 0.16);
|
|
43
|
+
--shadow-200: 0px 4px 8px rgba(0, 0, 0, 0.12);
|
|
44
|
+
--shadow-300: 0px 8px 16px rgba(0, 0, 0, 0.08);
|
|
45
|
+
--color-status-success-bold: #008854;
|
|
46
|
+
--color-status-danger-bold: #D7373F;
|
|
47
|
+
--color-status-information-bold: #0265DC;
|
|
48
|
+
}
|
package/dist/themes.css
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* All design tokens + every theme override in one import.
|
|
2
|
+
Use this unless you need to control which themes are loaded separately. */
|
|
3
|
+
@import "./styles.css";
|
|
4
|
+
@import "./themes/dark.css";
|
|
5
|
+
@import "./themes/legacy.css";
|
|
6
|
+
@import "./themes/mui.css";
|
|
7
|
+
@import "./themes/antd.css";
|
|
8
|
+
@import "./themes/spectrum.css";
|