@open-pioneer/base-theme 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +14 -6
- package/package.json +12 -2
- package/theme.d.ts +0 -4
- package/theme.js +253 -2
- package/theme.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @open-pioneer/base-theme
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be236af: Remove unused button variants and color scheme from base-theme.
|
|
8
|
+
- 5ff8f30: Update package.json metadata.
|
|
9
|
+
- Updated dependencies [5ff8f30]
|
|
10
|
+
- @open-pioneer/chakra-integration@1.1.2
|
|
11
|
+
|
|
12
|
+
## 0.3.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 6380aa4: Merge developments from @open-pioneer/theme.
|
|
17
|
+
This package now provides the `"trails"` color scheme, among other things.
|
|
18
|
+
|
|
3
19
|
## 0.2.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# @open-pioneer/base-theme
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides the default theme for all open pioneer trails applications.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import { theme as baseTheme } from "@open-pioneer/base-theme";
|
|
7
|
-
```
|
|
5
|
+
## Usage
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
This theme is automatically used as the default theme for all open pioneer trails applications.
|
|
8
|
+
When using this theme, the `trails` color scheme becomes the default color scheme for all Chakra UI components.
|
|
9
|
+
|
|
10
|
+
### How to override the theme
|
|
11
|
+
|
|
12
|
+
It is possible to override the theme by implementing an own theme extension.
|
|
13
|
+
In particular, it is possible to override the `trails` color scheme.
|
|
14
|
+
For an explanation how to override the theme, refer to ["How to theme an app" Tutorial](https://github.com/open-pioneer/trails-starter/blob/main/docs/tutorials/HowToThemeAnApp.md).
|
|
15
|
+
|
|
16
|
+
## License
|
|
17
|
+
|
|
18
|
+
Apache-2.0 (see `LICENSE` file)
|
package/package.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/base-theme",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
|
+
"description": "This package provides the default theme for all open pioneer trails applications.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"open-pioneer-trails"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/open-pioneer",
|
|
5
10
|
"license": "Apache-2.0",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/open-pioneer/trails-core-packages",
|
|
14
|
+
"directory": "src/packages/base-theme"
|
|
15
|
+
},
|
|
6
16
|
"peerDependencies": {
|
|
7
|
-
"@open-pioneer/chakra-integration": "^1.1.
|
|
17
|
+
"@open-pioneer/chakra-integration": "^1.1.2"
|
|
8
18
|
},
|
|
9
19
|
"exports": {
|
|
10
20
|
"./package.json": "./package.json",
|
package/theme.d.ts
CHANGED
package/theme.js
CHANGED
|
@@ -1,6 +1,257 @@
|
|
|
1
|
-
import { extendTheme } from '@open-pioneer/chakra-integration';
|
|
1
|
+
import { extendTheme, theme as theme$1, withDefaultColorScheme } from '@open-pioneer/chakra-integration';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const fonts = {
|
|
4
|
+
/* heading: "Tahoma",
|
|
5
|
+
body: "Courier New" */
|
|
6
|
+
};
|
|
7
|
+
const colors = {
|
|
8
|
+
//trails = default color scheme
|
|
9
|
+
trails: {
|
|
10
|
+
50: "#eaf2f5",
|
|
11
|
+
100: "#d5e5ec",
|
|
12
|
+
200: "#abcbd9",
|
|
13
|
+
300: "#81b1c5",
|
|
14
|
+
400: "#5797b2",
|
|
15
|
+
500: "#2d7d9f",
|
|
16
|
+
600: "#24647f",
|
|
17
|
+
700: "#1b4b5f",
|
|
18
|
+
800: "#123240",
|
|
19
|
+
900: "#091920"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const semanticTokens = {
|
|
23
|
+
colors: {
|
|
24
|
+
"background_body": "white",
|
|
25
|
+
"background_primary": "trails.500",
|
|
26
|
+
"background_light": "trails.50",
|
|
27
|
+
//"background_secondary": "trails.700",
|
|
28
|
+
"placeholder": "gray.500",
|
|
29
|
+
"font_primary": "black",
|
|
30
|
+
//"font_secondary": "gray.500",
|
|
31
|
+
"font_inverse": "white",
|
|
32
|
+
"font_link": "trails.600",
|
|
33
|
+
"border": "gray.300",
|
|
34
|
+
//override internal chakra theming variables
|
|
35
|
+
//https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/theme/src/semantic-tokens.ts
|
|
36
|
+
"chakra-body-text": "font_primary",
|
|
37
|
+
"chakra-body-bg": "background_body",
|
|
38
|
+
"chakra-border-color": "border",
|
|
39
|
+
"chakra-placeholder-color": "placeholder"
|
|
40
|
+
//"chakra-inverse-text": "font_inverse",
|
|
41
|
+
//"chakra-subtle-bg": "background_secondary",
|
|
42
|
+
//"chakra-subtle-text": "font_secondary"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const intermediateTheme = extendTheme({ fonts, colors, semanticTokens }, theme$1);
|
|
46
|
+
const getColor = (semanticToken, theme2) => {
|
|
47
|
+
const color = theme2.semanticTokens.colors[semanticToken];
|
|
48
|
+
if (color && color.includes(".")) {
|
|
49
|
+
const kvp = color.split(".");
|
|
50
|
+
const key = kvp[0], value = kvp[1];
|
|
51
|
+
return theme2.colors[key][value];
|
|
52
|
+
}
|
|
53
|
+
return color;
|
|
54
|
+
};
|
|
55
|
+
const theme = extendTheme(
|
|
56
|
+
withDefaultColorScheme({ colorScheme: "trails" }),
|
|
57
|
+
{
|
|
58
|
+
styles: {
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
|
+
global({ theme: theme2 }) {
|
|
61
|
+
return {
|
|
62
|
+
".chakra-host": {
|
|
63
|
+
//TODO: Hack! Additional Hex digits only work because colors are hex, too
|
|
64
|
+
//opacity-to-hex: 0.6 => 99
|
|
65
|
+
"--trails-theme-shadow-color": `${getColor("background_primary", theme2)}99`
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
shadows: {
|
|
71
|
+
outline: `0 0 0 3px var(--trails-theme-shadow-color)`
|
|
72
|
+
},
|
|
73
|
+
components: {
|
|
74
|
+
Button: {
|
|
75
|
+
defaultProps: {
|
|
76
|
+
//colorScheme: "gray"
|
|
77
|
+
//size: "md", //"lg" | "md" | "sm" | "xs"
|
|
78
|
+
//variant: "solid" //"primary" | "secondary" | "cancel" | "solid" | "outline" | "ghost" | "link"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
Checkbox: {
|
|
82
|
+
defaultProps: {
|
|
83
|
+
//colorScheme: "blue"
|
|
84
|
+
//size: "md" //"lg" | "md" | "sm"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
Divider: {
|
|
88
|
+
baseStyle: {
|
|
89
|
+
borderColor: "background_primary"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
Input: {
|
|
93
|
+
defaultProps: {
|
|
94
|
+
//size: "md" //"lg" | "md" | "sm" | "xs"
|
|
95
|
+
//variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
|
|
96
|
+
},
|
|
97
|
+
variants: {
|
|
98
|
+
outline({ theme: theme2 }) {
|
|
99
|
+
return {
|
|
100
|
+
field: {
|
|
101
|
+
borderColor: "border",
|
|
102
|
+
_focusVisible: {
|
|
103
|
+
borderColor: "background_primary",
|
|
104
|
+
boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
addon: {
|
|
108
|
+
borderColor: "border",
|
|
109
|
+
bg: "background_primary"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
filled: {
|
|
114
|
+
field: {
|
|
115
|
+
_focusVisible: {
|
|
116
|
+
borderColor: "background_primary"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
addon: {
|
|
120
|
+
bg: "background_primary"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
flushed({ theme: theme2 }) {
|
|
124
|
+
return {
|
|
125
|
+
field: {
|
|
126
|
+
_focusVisible: {
|
|
127
|
+
borderColor: "background_primary",
|
|
128
|
+
boxShadow: `0px 1px 0px 0px ${getColor(
|
|
129
|
+
"background_primary",
|
|
130
|
+
theme2
|
|
131
|
+
)}`
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
Link: {
|
|
139
|
+
baseStyle: {
|
|
140
|
+
color: "font_link"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
Radio: {
|
|
144
|
+
defaultProps: {
|
|
145
|
+
//colorScheme: "blue",
|
|
146
|
+
//size: "md" //"lg" | "md" | "sm"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
Select: {
|
|
150
|
+
defaultProps: {
|
|
151
|
+
//size: "md" //"lg" | "md" | "sm" | "xs"
|
|
152
|
+
//variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
|
|
153
|
+
},
|
|
154
|
+
variants: {
|
|
155
|
+
outline({ theme: theme2 }) {
|
|
156
|
+
return {
|
|
157
|
+
field: {
|
|
158
|
+
borderColor: "border",
|
|
159
|
+
_focusVisible: {
|
|
160
|
+
borderColor: "background_primary",
|
|
161
|
+
boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
filled: {
|
|
167
|
+
field: {
|
|
168
|
+
_focusVisible: {
|
|
169
|
+
borderColor: "background_primary"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
addon: {
|
|
173
|
+
bg: "background_primary"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
flushed({ theme: theme2 }) {
|
|
177
|
+
return {
|
|
178
|
+
field: {
|
|
179
|
+
_focusVisible: {
|
|
180
|
+
borderColor: "background_primary",
|
|
181
|
+
boxShadow: `0px 1px 0px 0px ${getColor(
|
|
182
|
+
"background_primary",
|
|
183
|
+
theme2
|
|
184
|
+
)}`
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
Slider: {
|
|
192
|
+
defaultProps: {
|
|
193
|
+
//colorScheme: "blue"
|
|
194
|
+
//size: "md" //"lg" | "md" | "sm"
|
|
195
|
+
},
|
|
196
|
+
baseStyle: {
|
|
197
|
+
thumb: {
|
|
198
|
+
borderColor: "background_primary",
|
|
199
|
+
_hover: {
|
|
200
|
+
bg: "background_primary"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
Switch: {
|
|
206
|
+
defaultProps: {
|
|
207
|
+
//colorScheme: "blue",
|
|
208
|
+
//size: "md" //"lg" | "md" | "sm"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
Textarea: {
|
|
212
|
+
defaultProps: {
|
|
213
|
+
//size: "md", //"lg" | "md" | "sm" | "xs"
|
|
214
|
+
//variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
|
|
215
|
+
},
|
|
216
|
+
variants: {
|
|
217
|
+
outline({ theme: theme2 }) {
|
|
218
|
+
return {
|
|
219
|
+
borderColor: "border",
|
|
220
|
+
_focusVisible: {
|
|
221
|
+
borderColor: "background_primary",
|
|
222
|
+
boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
filled: {
|
|
227
|
+
_focusVisible: {
|
|
228
|
+
borderColor: "background_primary"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
flushed({ theme: theme2 }) {
|
|
232
|
+
return {
|
|
233
|
+
_focusVisible: {
|
|
234
|
+
borderColor: "background_primary",
|
|
235
|
+
boxShadow: `0px 1px 0px 0px ${getColor(
|
|
236
|
+
"background_primary",
|
|
237
|
+
theme2
|
|
238
|
+
)}`
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
Tooltip: {
|
|
245
|
+
baseStyle: {
|
|
246
|
+
//bg: "background_primary",
|
|
247
|
+
//color: "font_inverse",
|
|
248
|
+
borderRadius: "md"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
intermediateTheme
|
|
254
|
+
);
|
|
4
255
|
|
|
5
256
|
export { theme };
|
|
6
257
|
//# sourceMappingURL=theme.js.map
|
package/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sources":["theme.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { extendTheme } from \"@open-pioneer/chakra-integration\";\n\n/**\n * Base theme for open pioneer trails applications.\n *\n * All custom themes should extend this theme:\n *\n * ```ts\n * import { extendTheme } from \"@open-pioneer/chakra-integration\";\n * import { theme as baseTheme } from \"@open-pioneer/base-theme\";\n *\n * export const theme = extendTheme({\n * // Your overrides\n * }, baseTheme);\n * ```\n *\n * NOTE: this API is still _experimental_.\n *\n * @experimental\n */\nexport const theme = extendTheme({});\n"],"names":[],"mappings":";;AAsBa,MAAA,KAAA,GAAQ,WAAY,CAAA,EAAE;;;;"}
|
|
1
|
+
{"version":3,"file":"theme.js","sources":["theme.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport {\n StyleFunctionProps,\n extendTheme,\n withDefaultColorScheme,\n theme as baseTheme\n} from \"@open-pioneer/chakra-integration\";\n\nconst fonts = {\n /* heading: \"Tahoma\",\n body: \"Courier New\" */\n};\n\n//10 colors as hex values from 50 to 900 (light to dark)\nconst colors = {\n //trails = default color scheme\n trails: {\n 50: \"#eaf2f5\",\n 100: \"#d5e5ec\",\n 200: \"#abcbd9\",\n 300: \"#81b1c5\",\n 400: \"#5797b2\",\n 500: \"#2d7d9f\",\n 600: \"#24647f\",\n 700: \"#1b4b5f\",\n 800: \"#123240\",\n 900: \"#091920\"\n }\n};\n\nconst semanticTokens = {\n colors: {\n \"background_body\": \"white\",\n \"background_primary\": \"trails.500\",\n \"background_light\": \"trails.50\",\n //\"background_secondary\": \"trails.700\",\n \"placeholder\": \"gray.500\",\n \"font_primary\": \"black\",\n //\"font_secondary\": \"gray.500\",\n \"font_inverse\": \"white\",\n \"font_link\": \"trails.600\",\n \"border\": \"gray.300\",\n\n //override internal chakra theming variables\n //https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/theme/src/semantic-tokens.ts\n \"chakra-body-text\": \"font_primary\",\n \"chakra-body-bg\": \"background_body\",\n \"chakra-border-color\": \"border\",\n \"chakra-placeholder-color\": \"placeholder\"\n //\"chakra-inverse-text\": \"font_inverse\",\n //\"chakra-subtle-bg\": \"background_secondary\",\n //\"chakra-subtle-text\": \"font_secondary\"\n }\n};\n\n//Create an intermediate theme to have access to all colors and semantic tokens (function: getColor)\nconst intermediateTheme = extendTheme({ fonts, colors, semanticTokens }, baseTheme);\n\n//Get the color defined by a semantic token.\n//If it points to a color (e.g. red.500), get the hex color value out of the color scheme.\n//Overrides: \"boxShadow\" and \"outline\"\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getColor = (semanticToken: string, theme: any) => {\n const color = theme.semanticTokens.colors[semanticToken];\n if (color && color.includes(\".\")) {\n const kvp = color.split(\".\");\n const key = kvp[0],\n value = kvp[1];\n return theme.colors[key][value];\n }\n return color;\n};\n\n/**\n * Base theme for open pioneer trails applications.\n *\n * All custom themes should extend this theme:\n *\n * ```ts\n * import { extendTheme } from \"@open-pioneer/chakra-integration\";\n * import { theme as baseTheme } from \"@open-pioneer/base-theme\";\n *\n * export const theme = extendTheme({\n * // Your overrides\n * }, baseTheme);\n * ```\n */\nexport const theme = extendTheme(\n withDefaultColorScheme({ colorScheme: \"trails\" }),\n {\n styles: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n global({ theme }: any) {\n return {\n \".chakra-host\": {\n //TODO: Hack! Additional Hex digits only work because colors are hex, too\n //opacity-to-hex: 0.6 => 99\n \"--trails-theme-shadow-color\": `${getColor(\"background_primary\", theme)}99`\n }\n };\n }\n },\n shadows: {\n outline: `0 0 0 3px var(--trails-theme-shadow-color)`\n },\n components: {\n Button: {\n defaultProps: {\n //colorScheme: \"gray\"\n //size: \"md\", //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"solid\" //\"primary\" | \"secondary\" | \"cancel\" | \"solid\" | \"outline\" | \"ghost\" | \"link\"\n }\n },\n Checkbox: {\n defaultProps: {\n //colorScheme: \"blue\"\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Divider: {\n baseStyle: {\n borderColor: \"background_primary\"\n }\n },\n Input: {\n defaultProps: {\n //size: \"md\" //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n field: {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n },\n addon: {\n borderColor: \"border\",\n bg: \"background_primary\"\n }\n };\n },\n filled: {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n addon: {\n bg: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n }\n };\n }\n }\n },\n Link: {\n baseStyle: {\n color: \"font_link\"\n }\n },\n Radio: {\n defaultProps: {\n //colorScheme: \"blue\",\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Select: {\n defaultProps: {\n //size: \"md\" //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n field: {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n }\n };\n },\n filled: {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n addon: {\n bg: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n }\n };\n }\n }\n },\n Slider: {\n defaultProps: {\n //colorScheme: \"blue\"\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n },\n baseStyle: {\n thumb: {\n borderColor: \"background_primary\",\n _hover: {\n bg: \"background_primary\"\n }\n }\n }\n },\n Switch: {\n defaultProps: {\n //colorScheme: \"blue\",\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Textarea: {\n defaultProps: {\n //size: \"md\", //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n };\n },\n filled: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n };\n }\n }\n },\n Tooltip: {\n baseStyle: {\n //bg: \"background_primary\",\n //color: \"font_inverse\",\n borderRadius: \"md\"\n }\n }\n }\n },\n intermediateTheme\n);\n"],"names":["baseTheme","theme"],"mappings":";;AASA,MAAM,KAAQ,GAAA;AAAA;AAAA;AAGd,CAAA,CAAA;AAGA,MAAM,MAAS,GAAA;AAAA;AAAA,EAEX,MAAQ,EAAA;AAAA,IACJ,EAAI,EAAA,SAAA;AAAA,IACJ,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,GACT;AACJ,CAAA,CAAA;AAEA,MAAM,cAAiB,GAAA;AAAA,EACnB,MAAQ,EAAA;AAAA,IACJ,iBAAmB,EAAA,OAAA;AAAA,IACnB,oBAAsB,EAAA,YAAA;AAAA,IACtB,kBAAoB,EAAA,WAAA;AAAA;AAAA,IAEpB,aAAe,EAAA,UAAA;AAAA,IACf,cAAgB,EAAA,OAAA;AAAA;AAAA,IAEhB,cAAgB,EAAA,OAAA;AAAA,IAChB,WAAa,EAAA,YAAA;AAAA,IACb,QAAU,EAAA,UAAA;AAAA;AAAA;AAAA,IAIV,kBAAoB,EAAA,cAAA;AAAA,IACpB,gBAAkB,EAAA,iBAAA;AAAA,IAClB,qBAAuB,EAAA,QAAA;AAA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