@redocly/theme 0.1.10 → 0.1.13
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/CodeBlock/CodeBlock.js +2 -1
- package/Markdown/StyledMarkdown.d.ts +0 -2
- package/Markdown/StyledMarkdown.js +5 -16
- package/Markdown/index.d.ts +0 -1
- package/Markdown/index.js +0 -1
- package/Navbar/NavbarMenu.js +1 -1
- package/OperationBadge/OperationBadge.js +1 -1
- package/Search/ClearIcon.js +2 -2
- package/Search/Input.js +1 -1
- package/Search/Popover.js +1 -1
- package/Search/SearchIcon.js +2 -2
- package/Sidebar/ApiCallItem.js +1 -1
- package/TableOfContent/TableOfContent.js +5 -6
- package/globalStyle.d.ts +1 -0
- package/globalStyle.js +25 -3
- package/mocks/Link.js +4 -1
- package/mocks/hooks/usePageData.js +4 -1
- package/package.json +1 -1
- package/src/CodeBlock/CodeBlock.ts +3 -42
- package/src/Markdown/StyledMarkdown.tsx +14 -28
- package/src/Markdown/index.ts +0 -1
- package/src/Navbar/NavbarMenu.tsx +1 -1
- package/src/OperationBadge/OperationBadge.ts +5 -2
- package/src/Search/ClearIcon.tsx +12 -13
- package/src/Search/Input.tsx +7 -7
- package/src/Search/Popover.tsx +2 -2
- package/src/Search/SearchIcon.tsx +12 -13
- package/src/Sidebar/ApiCallItem.tsx +1 -2
- package/src/TableOfContent/TableOfContent.tsx +6 -4
- package/src/globalStyle.ts +829 -536
- package/src/mocks/Link.tsx +5 -2
- package/src/mocks/hooks/usePageData.ts +4 -1
- package/src/ui/Typography.tsx +12 -89
- package/src/ui/UniversalLink.tsx +3 -8
- package/src/utils/ClipboardService.ts +3 -86
- package/src/utils/isUrl.ts +4 -4
- package/src/utils/theme-helpers.ts +46 -0
- package/ui/Typography.d.ts +2 -71
- package/ui/Typography.js +15 -93
- package/ui/UniversalLink.js +1 -5
- package/utils/ClipboardService.d.ts +1 -5
- package/utils/ClipboardService.js +2 -73
- package/utils/isUrl.d.ts +2 -2
- package/utils/isUrl.js +4 -4
- package/utils/theme-helpers.d.ts +1 -0
- package/utils/theme-helpers.js +42 -2
- package/Markdown/CodeSample/CodeSample.d.ts +0 -8
- package/Markdown/CodeSample/CodeSample.js +0 -30
- package/Markdown/CodeSample/index.d.ts +0 -3
- package/Markdown/CodeSample/index.js +0 -19
- package/Markdown/CodeSample/styled.d.ts +0 -5
- package/Markdown/CodeSample/styled.js +0 -109
- package/Markdown/CodeSample/types.d.ts +0 -9
- package/Markdown/CodeSample/types.js +0 -2
- package/src/Button/Button.stories.tsx +0 -74
- package/src/Button/__tests__/Button.test.tsx +0 -42
- package/src/Button/__tests__/__snapshots__/Button.test.tsx.snap +0 -274
- package/src/CodeBlock/__tests__/CodeBlock.test.tsx +0 -12
- package/src/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap +0 -140
- package/src/CopyButton/CopyButton.stories.tsx +0 -18
- package/src/CopyButton/__tests__/CopyButton.test.tsx +0 -35
- package/src/CopyButton/__tests__/CopyButtonWrapper.test.tsx +0 -17
- package/src/CopyButton/__tests__/__snapshots__/CopyButton.test.tsx.snap +0 -55
- package/src/CopyButton/__tests__/__snapshots__/CopyButtonWrapper.test.tsx.snap +0 -46
- package/src/Footer/Footer.stories.tsx +0 -57
- package/src/Footer/__tests__/Footer.test.tsx +0 -55
- package/src/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +0 -253
- package/src/Headings/Headings.stories.tsx +0 -36
- package/src/Headings/__tests__/Headings.test.tsx +0 -24
- package/src/Headings/__tests__/__snapshots__/Headings.test.tsx.snap +0 -57
- package/src/JsonViewer/JsonViewer.stories.tsx +0 -57
- package/src/JsonViewer/__tests__/JsonViewer.test.tsx +0 -83
- package/src/JsonViewer/__tests__/__snapshots__/JsonViewer.test.tsx.snap +0 -2728
- package/src/Layout/__tests__/PageLayout.test.tsx +0 -17
- package/src/Layout/__tests__/RootLayout.test.tsx +0 -17
- package/src/Layout/__tests__/__snapshots__/PageLayout.test.tsx.snap +0 -38
- package/src/Layout/__tests__/__snapshots__/RootLayout.test.tsx.snap +0 -18
- package/src/Markdown/CodeSample/CodeSample.tsx +0 -39
- package/src/Markdown/CodeSample/index.ts +0 -3
- package/src/Markdown/CodeSample/styled.ts +0 -289
- package/src/Markdown/CodeSample/types.ts +0 -40
- package/src/Navbar/Navbar.stories.tsx +0 -32
- package/src/NavbarLogo/NavbarLogo.stories.tsx +0 -20
- package/src/NavbarLogo/__tests__/NavbarLogo.test.tsx +0 -47
- package/src/NavbarLogo/__tests__/__snapshots__/NavbarLogo.test.tsx.snap +0 -38
- package/src/OperationBadge/OperationBadge.stories.tsx +0 -35
- package/src/OperationBadge/__tests__/OperationBadge.test.tsx +0 -59
- package/src/OperationBadge/__tests__/__snapshots__/OperationBadge.test.tsx.snap +0 -651
- package/src/Panel/CodePanel.stories.tsx +0 -26
- package/src/Panel/ContentPanel.stories.tsx +0 -26
- package/src/Panel/Panel.stories.tsx +0 -56
- package/src/Panel/__tests__/CodePanel.test.tsx +0 -26
- package/src/Panel/__tests__/ContentPanel.test.tsx +0 -26
- package/src/Panel/__tests__/Panel.test.tsx +0 -53
- package/src/Panel/__tests__/__snapshots__/CodePanel.test.tsx.snap +0 -258
- package/src/Panel/__tests__/__snapshots__/ContentPanel.test.tsx.snap +0 -278
- package/src/Panel/__tests__/__snapshots__/Panel.test.tsx.snap +0 -398
- package/src/SamplesPanelControls/SamplesControlButton.stories.tsx +0 -18
- package/src/SamplesPanelControls/__tests__/SamplesPanelControls.test.tsx +0 -36
- package/src/SamplesPanelControls/__tests__/__snapshots__/SamplesPanelControls.test.tsx.snap +0 -228
- package/src/SidebarLogo/SidebarLogo.stories.tsx +0 -21
- package/src/SidebarLogo/__tests__/SidebarLogo.test.tsx +0 -32
- package/src/SidebarLogo/__tests__/__snapshots__/SidebarLogo.test.tsx.snap +0 -62
- package/src/SourceCode/SourceCode.stories.tsx +0 -29
- package/src/SourceCode/__tests__/SourceCode.test.tsx +0 -48
- package/src/SourceCode/__tests__/__snapshots__/SourceCode.test.tsx.snap +0 -786
- package/src/TableOfContent/TableOfContent.stories.tsx +0 -39
- package/src/Tooltip/Tooltip.stories.tsx +0 -27
- package/src/Tooltip/__tests__/Tooltip.test.tsx +0 -41
- package/src/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -83
- package/src/Welcome.stories.mdx +0 -7
- package/src/icons/ShelfIcon/ShelfIcon.stories.tsx +0 -36
- package/src/icons/ShelfIcon/__tests__/ShelfIcon.test.tsx +0 -54
- package/src/icons/ShelfIcon/__tests__/__snapshots__/ShelfIcon.test.tsx.snap +0 -235
- package/src/utils/__tests__/ClipboardService.test.ts +0 -24
- package/src/utils/__tests__/__snapshots__/highlight.test.ts.snap +0 -5
- package/src/utils/__tests__/__snapshots__/jsonToHtml.test.ts.snap +0 -5
- package/src/utils/__tests__/css-variables.test.ts +0 -20
- package/src/utils/__tests__/highlight.test.ts +0 -51
- package/src/utils/__tests__/jsonToHtml.test.ts +0 -40
- package/src/utils/__tests__/media-css.test.ts +0 -20
- package/src/utils/__tests__/theme-helpers.test.ts +0 -25
package/src/globalStyle.ts
CHANGED
|
@@ -1,544 +1,837 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components';
|
|
1
|
+
import { createGlobalStyle, css } from 'styled-components';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const baseColors = css`
|
|
4
|
+
/* === Palette === */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Base Colors
|
|
8
|
+
* @presenter Color
|
|
9
|
+
*/
|
|
10
|
+
--color-primary-100: #62a1ff;
|
|
11
|
+
--color-primary-200: #4892ff;
|
|
12
|
+
--color-primary-300: #2f83ff;
|
|
13
|
+
--color-primary-400: #1573ff;
|
|
14
|
+
--color-primary-500: #0065fb;
|
|
15
|
+
--color-primary-600: #005be2;
|
|
16
|
+
--color-primary-700: #0050c8;
|
|
17
|
+
--color-primary-800: #0046af;
|
|
18
|
+
--color-primary-900: #003c95;
|
|
19
|
+
|
|
20
|
+
--color-secondary-100: #ffffff;
|
|
21
|
+
--color-secondary-200: #f5f7fa;
|
|
22
|
+
--color-secondary-300: #f3f4f6;
|
|
23
|
+
--color-secondary-400: #e4e7eb;
|
|
24
|
+
--color-secondary-500: #d5dae0;
|
|
25
|
+
--color-secondary-600: #c7cdd5;
|
|
26
|
+
--color-secondary-700: #b8c0ca;
|
|
27
|
+
--color-secondary-800: #a9b3c0;
|
|
28
|
+
--color-secondary-900: #9ba6b5;
|
|
29
|
+
|
|
30
|
+
--color-emphasis-100: #ffffff;
|
|
31
|
+
--color-emphasis-200: #e9eaec;
|
|
32
|
+
--color-emphasis-300: #cdd0d5;
|
|
33
|
+
--color-emphasis-400: #b2b6bd;
|
|
34
|
+
--color-emphasis-500: #969ca6;
|
|
35
|
+
--color-emphasis-600: #7a828f;
|
|
36
|
+
--color-emphasis-700: #626974;
|
|
37
|
+
--color-emphasis-800: #4b5058;
|
|
38
|
+
--color-emphasis-900: #1c1e21;
|
|
39
|
+
|
|
40
|
+
--color-accent-100: #b3dcf3;
|
|
41
|
+
--color-accent-200: #a6dfff;
|
|
42
|
+
--color-accent-300: #8cd5ff;
|
|
43
|
+
--color-accent-400: #73ccff;
|
|
44
|
+
--color-accent-500: #59c3ff;
|
|
45
|
+
--color-accent-600: #40baff;
|
|
46
|
+
--color-accent-700: #26b1ff;
|
|
47
|
+
--color-accent-800: #0da7ff;
|
|
48
|
+
--color-accent-900: #009bf2;
|
|
49
|
+
|
|
50
|
+
--color-success-100: #98eda0;
|
|
51
|
+
--color-success-200: #82e98c;
|
|
52
|
+
--color-success-300: #6ce678;
|
|
53
|
+
--color-success-400: #57e264;
|
|
54
|
+
--color-success-500: #41de50;
|
|
55
|
+
--color-success-600: #2bda3c;
|
|
56
|
+
--color-success-700: #23c933;
|
|
57
|
+
--color-success-800: #1fb32d;
|
|
58
|
+
--color-success-900: #1b9e28;
|
|
59
|
+
|
|
60
|
+
--color-warning-100: #ffc966;
|
|
61
|
+
--color-warning-200: #ffc04d;
|
|
62
|
+
--color-warning-300: #ffb733;
|
|
63
|
+
--color-warning-400: #ffae1a;
|
|
64
|
+
--color-warning-500: #ffa500;
|
|
65
|
+
--color-warning-600: #e69400;
|
|
66
|
+
--color-warning-700: #cc8400;
|
|
67
|
+
--color-warning-800: #b37300;
|
|
68
|
+
--color-warning-900: #996300;
|
|
69
|
+
|
|
70
|
+
--color-error-100: #ffc7c7;
|
|
71
|
+
--color-error-200: #ffaeae;
|
|
72
|
+
--color-error-300: #ff9494;
|
|
73
|
+
--color-error-400: #ff7b7b;
|
|
74
|
+
--color-error-500: #ff6161;
|
|
75
|
+
--color-error-600: #ff4747;
|
|
76
|
+
--color-error-700: #ff2e2e;
|
|
77
|
+
--color-error-800: #ff1414;
|
|
78
|
+
--color-error-900: #ff0000;
|
|
79
|
+
|
|
80
|
+
// @tokens End
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
const httpColors = css`
|
|
84
|
+
/**
|
|
85
|
+
* @tokens HTTP Colors
|
|
86
|
+
* @presenter Color
|
|
87
|
+
*/
|
|
88
|
+
--color-http-get: #3a9601;
|
|
89
|
+
--color-http-post: #0065fb;
|
|
90
|
+
--color-http-put: #93527b;
|
|
91
|
+
--color-http-options: #947014;
|
|
92
|
+
--color-http-patch: #bf581d;
|
|
93
|
+
--color-http-delete: #c83637;
|
|
94
|
+
--color-http-basic: #707070;
|
|
95
|
+
--color-http-link: #07818f;
|
|
96
|
+
--color-http-head: #a23dad;
|
|
97
|
+
--color-http-hook: var(--color-http-post);
|
|
98
|
+
// @tokens End
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
const responseColors = css`
|
|
102
|
+
/**
|
|
103
|
+
* @tokens Response colors
|
|
104
|
+
* @presenter Color
|
|
105
|
+
*/
|
|
106
|
+
--response-success-border-color: #b1e996;
|
|
107
|
+
--response-success-background-color: #f6fff4;
|
|
108
|
+
--response-success-text-color: var(--response-success-border-color);
|
|
109
|
+
|
|
110
|
+
--response-error-border-color: #ffc9c9;
|
|
111
|
+
--response-error-background-color: #fff4f4;
|
|
112
|
+
--response-error-text-color: var(--response-error-border-color);
|
|
113
|
+
|
|
114
|
+
--response-redirect-border-color: var(--color-warning-500);
|
|
115
|
+
--response-redirect-background-color: #ffa5001a;
|
|
116
|
+
--response-redirect-text-color: var(--response-redirect-border-color);
|
|
117
|
+
|
|
118
|
+
--response-info-border-color: #87ceeb;
|
|
119
|
+
--response-info-background-color: #87ceeb1a;
|
|
120
|
+
--response-info-text-color: var(--response-info-border-color);
|
|
121
|
+
|
|
122
|
+
// @tokens End
|
|
123
|
+
`;
|
|
124
|
+
|
|
125
|
+
const typography = css`
|
|
126
|
+
/* === Typography === */
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @tokens Typography Colors
|
|
130
|
+
* @presenter Color
|
|
131
|
+
*/
|
|
132
|
+
--color-content: #1f2933;
|
|
133
|
+
--color-content-inverse: var(--color-secondary-200);
|
|
134
|
+
--color-content-secondary: #7b8794;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @tokens Font Sizes
|
|
138
|
+
* @presenter FontSize
|
|
139
|
+
*/
|
|
140
|
+
--font-size-base: 14px;
|
|
141
|
+
--font-size-small: 12px;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @tokens Line Heights
|
|
145
|
+
* @presenter LineHeight
|
|
146
|
+
*/
|
|
147
|
+
--line-height-base: 1.5em;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @tokens Font Weights
|
|
151
|
+
* @presenter FontWeight
|
|
152
|
+
*/
|
|
153
|
+
--font-weight-regular: 400;
|
|
154
|
+
--font-weight-bold: 600;
|
|
155
|
+
--font-weight-bolder: 700;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @tokens Font Families
|
|
159
|
+
* @presenter FontFamily
|
|
160
|
+
*/
|
|
161
|
+
--font-family-base: Source Sans Pro, sans-serif;
|
|
162
|
+
--font-family-monospaced: Source Code Pro, monospace;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @tokens Rendering
|
|
166
|
+
*/
|
|
167
|
+
--smoothing: antialiased; // text-smoothing
|
|
168
|
+
--text-rendering: optimizeSpeed; // text-rendering
|
|
169
|
+
|
|
170
|
+
// TODO: Not sure if Spacing should be in typography
|
|
171
|
+
/**
|
|
172
|
+
* @tokens Spacings
|
|
173
|
+
* @presenter Spacing
|
|
174
|
+
*/
|
|
175
|
+
--spacing-unit: 5px;
|
|
176
|
+
--spacing-horizontal: calc(var(--spacing-unit) * 8);
|
|
177
|
+
--spacing-vertical: calc(var(--spacing-unit) * 4);
|
|
178
|
+
|
|
179
|
+
// @tokens End
|
|
180
|
+
`;
|
|
181
|
+
|
|
182
|
+
const headingsTypography = css`
|
|
183
|
+
// --h-{css-property-name} is fallback for h1...h6
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @tokens Typography headings font
|
|
187
|
+
*/
|
|
188
|
+
--h-font-family: Source Sans Pro, sans-serif; // @presenter FontFamily
|
|
189
|
+
--h-font-weight: var(--font-weight-bolder); // @presenter FontWeight
|
|
190
|
+
--h2-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @tokens Typography headings color
|
|
194
|
+
* @presenter Color
|
|
195
|
+
*/
|
|
196
|
+
--h-color: var(--color-content);
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @tokens Typography headings font size
|
|
200
|
+
* @presenter FontSize
|
|
201
|
+
*/
|
|
202
|
+
--h1-font-size: 36px;
|
|
203
|
+
--h2-font-size: 28px;
|
|
204
|
+
--h3-font-size: 18px;
|
|
205
|
+
--h4-font-size: 16px;
|
|
206
|
+
--h5-font-size: 14px;
|
|
207
|
+
--h6-font-size: 12px;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @tokens Typography headings line height
|
|
211
|
+
* @presenter LineHeight
|
|
212
|
+
*/
|
|
213
|
+
--h1-line-height: 36px;
|
|
214
|
+
--h2-line-height: 28px;
|
|
215
|
+
--h3-line-height: 18px;
|
|
216
|
+
--h4-line-height: 16px;
|
|
217
|
+
--h5-line-height: 14px;
|
|
218
|
+
--h6-line-height: 12px;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @tokens Typography headings margin
|
|
222
|
+
* @presenter Spacing
|
|
223
|
+
*/
|
|
224
|
+
--h1-margin-top: 1.35em;
|
|
225
|
+
--h1-margin-bottom: 0.9em;
|
|
226
|
+
--h2-margin-top: 1.25em;
|
|
227
|
+
--h2-margin-bottom: 0.8em;
|
|
228
|
+
--h3-margin-top: 1.25em;
|
|
229
|
+
--h3-margin-bottom: 0.8em;
|
|
230
|
+
// @tokens End
|
|
231
|
+
`;
|
|
232
|
+
|
|
233
|
+
const borders = css`
|
|
234
|
+
/**
|
|
235
|
+
* @tokens Borders
|
|
236
|
+
* @presenter Border
|
|
237
|
+
*/
|
|
238
|
+
--global-border-width: 1px;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @tokens Border Radius
|
|
242
|
+
* @presenter BorderRadius
|
|
243
|
+
*/
|
|
244
|
+
--global-border-radius: 4px;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @tokens Border Colors
|
|
248
|
+
* @presenter Color
|
|
249
|
+
*/
|
|
250
|
+
--global-border-color: var(--color-secondary-400);
|
|
251
|
+
--global-border-color-secondary: #616e7c;
|
|
252
|
+
--global-background-color: transparent;
|
|
253
|
+
|
|
254
|
+
// @tokens End
|
|
255
|
+
`;
|
|
256
|
+
|
|
257
|
+
const buttons = css`
|
|
4
258
|
/*
|
|
5
259
|
* Static classnames that can be used to override styles for components:
|
|
6
260
|
* download-specification-button, next-section-button, button-base
|
|
7
261
|
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @tokens Button default colors
|
|
265
|
+
*/
|
|
266
|
+
--button-color: white; // @presenter Color
|
|
267
|
+
--button-background-color: var(--color-emphasis-500); // @presenter Color
|
|
268
|
+
--button-hover-background-color: var(--color-emphasis-600); // @presenter Color
|
|
269
|
+
--button-active-background-color: var(--color-emphasis-700); // @presenter Color
|
|
270
|
+
--button-outlined-active-border-color: var(--color-emphasis-800); // @presenter Color
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @tokens Button primary colors
|
|
274
|
+
*/
|
|
275
|
+
.button-color-primary {
|
|
276
|
+
--button-color: white; // @presenter Color
|
|
277
|
+
--button-background-color: var(--color-primary-500); // @presenter Color
|
|
278
|
+
--button-hover-background-color: var(--color-primary-600); // @presenter Color
|
|
279
|
+
--button-active-background-color: var(--color-primary-700); // @presenter Color
|
|
280
|
+
--button-outlined-active-border-color: var(--color-primary-800); // @presenter Color
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @tokens Button secondary colors
|
|
285
|
+
*/
|
|
286
|
+
.button-color-secondary {
|
|
287
|
+
--button-color: var(--color-emphasis-800); // @presenter Color
|
|
288
|
+
--button-background-color: var(--color-secondary-400); // @presenter Color
|
|
289
|
+
--button-hover-background-color: var(--color-secondary-500); // @presenter Color
|
|
290
|
+
--button-active-background-color: var(--color-secondary-600); // @presenter Color
|
|
291
|
+
--button-outlined-active-border-color: var(--color-secondary-700); // @presenter Color
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @tokens Button borders
|
|
296
|
+
*/
|
|
297
|
+
--button-border-radius: var(--global-border-radius); // @presenter BorderRadius
|
|
298
|
+
--button-box-shadow: none; // @presenter Shadow
|
|
299
|
+
--button-active-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @tokens Button typography
|
|
303
|
+
*/
|
|
304
|
+
--button-font-family: inherit; // @presenter FontFamily
|
|
305
|
+
--button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
306
|
+
--button-small-font-size: 12px; // @presenter FontSize
|
|
307
|
+
--button-small-padding: 8px 10px;
|
|
308
|
+
--button-small-min-width: 90px; // @presenter Spacing
|
|
309
|
+
--button-medium-font-size: 14px; // @presenter FontSize
|
|
310
|
+
--button-medium-padding: 8px 20px;
|
|
311
|
+
--button-medium-min-width: 120px; // @presenter Spacing
|
|
312
|
+
--button-large-font-size: 14px; // @presenter FontSize
|
|
313
|
+
--button-large-padding: 12px 24px;
|
|
314
|
+
--button-large-min-width: 150px; // @presenter Spacing
|
|
315
|
+
--button-xlarge-font-size: 16px; // @presenter FontSize
|
|
316
|
+
--button-xlarge-padding: 20px 24px;
|
|
317
|
+
--button-xlarge-min-width: 200px; // @presenter Spacing
|
|
318
|
+
|
|
319
|
+
// @tokens End
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
const sidebar = css`
|
|
323
|
+
/* === Sidebar === */
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @tokens Sidebar typography
|
|
327
|
+
*/
|
|
328
|
+
--sidebar-font-size: var(--font-size-base);
|
|
329
|
+
--sidebar-font-family: var(--font-family-base);
|
|
330
|
+
--sidebar-word-break: 'inherit';
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @tokens Sidebar colors
|
|
334
|
+
* @presenter Color
|
|
335
|
+
*/
|
|
336
|
+
--sidebar-background-color: #fff;
|
|
337
|
+
--sidebar-right-line-color: var(--global-border-color);
|
|
338
|
+
--sidebar-separator-label-color: var(--sidebar-item-color);
|
|
339
|
+
--sidebar-separator-line-color: #dadada;
|
|
340
|
+
--sidebar-chevron-color: var(--sidebar-item-color);
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @tokens Sidebar spacing
|
|
344
|
+
* @presenter Spacing
|
|
345
|
+
*/
|
|
346
|
+
--sidebar-width: 285px; // @presenter NO
|
|
347
|
+
|
|
348
|
+
--sidebar-spacing-unit: 8px;
|
|
349
|
+
--sidebar-spacing-horizontal: var(--sidebar-spacing-unit);
|
|
350
|
+
--sidebar-spacing-vertical: var(--sidebar-spacing-unit);
|
|
351
|
+
--sidebar-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
352
|
+
--sidebar-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
353
|
+
--sidebar-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
|
|
354
|
+
|
|
355
|
+
--sidebar-margin-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
356
|
+
--sidebar-padding-horizontal: var(--sidebar-spacing-unit);
|
|
357
|
+
--sidebar-padding-vertical: var(--sidebar-spacing-unit);
|
|
358
|
+
--sidebar-spacing-padding-vertical: var(--sidebar-spacing-unit); // TODO: seems like duplicated
|
|
359
|
+
--sidebar-spacing-padding-horizontal: var(--sidebar-spacing-unit); // TODO: seems like duplicated
|
|
360
|
+
|
|
361
|
+
--sidebar-chevron-size: var(--sidebar-spacing-unit);
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @tokens Sidebar border
|
|
365
|
+
*/
|
|
366
|
+
--sidebar-border-radius: 4px; // @presenter BorderRadius
|
|
367
|
+
|
|
368
|
+
/* === Sidebar Item === */
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @tokens Sidebar item typography
|
|
372
|
+
*/
|
|
373
|
+
--sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
374
|
+
--sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @tokens Sidebar item colors
|
|
378
|
+
* @presenter Color
|
|
379
|
+
*/
|
|
380
|
+
--sidebar-item-color: var(--color-content);
|
|
381
|
+
--sidebar-item-active-color: var(--color-content);
|
|
382
|
+
--sidebar-item-background-color: #fff;
|
|
383
|
+
--sidebar-item-active-background-color: var(--global-border-color);
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @tokens Sidebar item spacing
|
|
387
|
+
* @presenter Spacing
|
|
388
|
+
*/
|
|
389
|
+
--sidebar-item-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
390
|
+
--sidebar-item-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
391
|
+
--sidebar-item-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @tokens Sidebar item border
|
|
395
|
+
*/
|
|
396
|
+
--sidebar-item-border-radius: 4px; // @presenter BorderRadius
|
|
397
|
+
|
|
398
|
+
// @tokens End
|
|
399
|
+
`;
|
|
400
|
+
|
|
401
|
+
const admonition = css`
|
|
402
|
+
/**
|
|
403
|
+
* @tokens Admonition colors
|
|
404
|
+
* @presenter Color
|
|
405
|
+
*/
|
|
406
|
+
|
|
407
|
+
/* info */
|
|
408
|
+
--admonition-info-background-color: #ebedf0;
|
|
409
|
+
--admonition-info-text-color: var(--color-content);
|
|
410
|
+
--admonition-info-icon-color: #4782cb;
|
|
411
|
+
|
|
412
|
+
/* attention */
|
|
413
|
+
--admonition-attention-background-color: #e6eef8;
|
|
414
|
+
--admonition-attention-text-color: var(--color-content);
|
|
415
|
+
--admonition-attention-icon-color: #4782cb;
|
|
416
|
+
|
|
417
|
+
/* warning */
|
|
418
|
+
--admonition-warning-background-color: #feeda5;
|
|
419
|
+
--admonition-warning-text-color: var(--color-content);
|
|
420
|
+
--admonition-warning-icon-color: #d4ad03;
|
|
421
|
+
|
|
422
|
+
/* danger */
|
|
423
|
+
--admonition-danger-background-color: #fceaea;
|
|
424
|
+
--admonition-danger-text-color: var(--color-content);
|
|
425
|
+
--admonition-danger-icon-color: #e53935;
|
|
426
|
+
|
|
427
|
+
/* success */
|
|
428
|
+
--admonition-success-background-color: #ddffe1;
|
|
429
|
+
--admonition-success-text-color: var(--color-content);
|
|
430
|
+
--admonition-success-icon-color: #00aa13;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @tokens Admonition typography
|
|
434
|
+
*/
|
|
435
|
+
--admonition-font-size: 16px; // @presenter FontSize
|
|
436
|
+
--admonition-font-weight: normal; // @presenter FontWeight
|
|
437
|
+
--admonition-line-height: 1.5em; // @presenter LineHeight
|
|
438
|
+
--admonition-heading-font-size: 16px; // @presenter FontSize
|
|
439
|
+
--admonition-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
440
|
+
--admonition-heading-letter-spacing: 0.3px; // @presenter LetterSpacing
|
|
441
|
+
--admonition-heading-transform: uppercase;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @tokens Admonition spacing
|
|
445
|
+
* @presenter Spacing
|
|
446
|
+
*/
|
|
447
|
+
--admonition-margin-horizontal: 0;
|
|
448
|
+
--admonition-margin-vertical: calc(var(--spacing-unit) * 2);
|
|
449
|
+
--admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
450
|
+
--admonition-padding-vertical: calc(var(--spacing-unit) * 4);
|
|
451
|
+
--admonition-icon-size: 25px;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @tokens Admonition border
|
|
455
|
+
*/
|
|
456
|
+
--admonition-border-radius: 8px; // @presenter BorderRadius
|
|
457
|
+
|
|
458
|
+
// @tokens End
|
|
459
|
+
`;
|
|
460
|
+
|
|
461
|
+
const panels = css`
|
|
462
|
+
/**
|
|
463
|
+
* @tokens Panel border
|
|
464
|
+
*/
|
|
465
|
+
--panels-border-radius: 8px; // @presenter BorderRadius
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @tokens Samples panel
|
|
469
|
+
* @presenter Color
|
|
470
|
+
*/
|
|
471
|
+
--samples-panel-gap: 20px;
|
|
472
|
+
--samples-panel-width: 50%;
|
|
473
|
+
|
|
474
|
+
--panels-background-color: #fff;
|
|
475
|
+
--samples-panel-block-background-color: #fff;
|
|
476
|
+
--samples-panel-background-color: #52606d;
|
|
477
|
+
--samples-panel-callback-background-color: var(--color-secondary-300);
|
|
478
|
+
--samples-panel-controls-background-color: #323f4b;
|
|
479
|
+
--samples-panel-controls-hover-background-color: #3c4c5a;
|
|
480
|
+
--samples-panel-controls-active-border-color: var(--color-accent-500);
|
|
481
|
+
--samples-panel-text-color: #fff;
|
|
482
|
+
--samples-panel-heading-color: #fff;
|
|
483
|
+
|
|
484
|
+
--samples-panel-markdown-background-color: #3c4c5a;
|
|
485
|
+
--samples-panel-markdown-border-color: #46596a;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @tokens Try It panel
|
|
489
|
+
* @presenter Color
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
--try-it-panel-tab-background-color: var(--samples-panel-background-color);
|
|
493
|
+
--try-it-panel-active-tab-background-color: #47535e;
|
|
494
|
+
--try-it-panel-active-tab-border-color: var(--color-accent-500);
|
|
495
|
+
--try-it-panel-disabled-tab-color: rgba(245, 247, 250, 0.7);
|
|
496
|
+
--try-it-panel-controls-background-color: var(--samples-panel-controls-background-color);
|
|
497
|
+
--try-it-panel-action-button-width: auto;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @tokens Request and Response panel
|
|
501
|
+
* @presenter Color
|
|
502
|
+
*/
|
|
503
|
+
--request-and-response-panel-background-color: #fff;
|
|
504
|
+
|
|
505
|
+
// @tokens End
|
|
506
|
+
`;
|
|
507
|
+
|
|
508
|
+
const tooltip = css`
|
|
509
|
+
/**
|
|
510
|
+
* @tokens Tooltip Base
|
|
511
|
+
* @presenter Color
|
|
512
|
+
*/
|
|
513
|
+
--tooltip-color: var(--color-secondary-300);
|
|
514
|
+
--tooltip-background-color: #52606d;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @tokens Tooltip Copy Button
|
|
518
|
+
* @presenter Color
|
|
519
|
+
*/
|
|
520
|
+
.tooltip-copy-button {
|
|
521
|
+
--tooltip-color: #000;
|
|
522
|
+
--tooltip-background-color: #fff;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// @tokens End
|
|
526
|
+
`;
|
|
527
|
+
|
|
528
|
+
const code = css`
|
|
529
|
+
/**
|
|
530
|
+
* @tokens Code base styles
|
|
531
|
+
*/
|
|
532
|
+
--code-font-size: 13px; // @presenter FontSize
|
|
533
|
+
--code-font-family: var(--font-family-monospaced); // @presenter FontFamily
|
|
534
|
+
--code-font-weight: 400; // @presenter FontWeight
|
|
535
|
+
--code-wrap: pre;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @tokens Inline Code
|
|
539
|
+
*/
|
|
540
|
+
--inline-code-font-size: var(--code-font-size); // @presenter FontSize
|
|
541
|
+
--inline-code-font-family: var(--code-font-family); // @presenter FontFamily
|
|
542
|
+
--inline-code-color: #e53935; // @presenter Color
|
|
543
|
+
--inline-code-background-color: var(--color-secondary-200); // @presenter Color
|
|
544
|
+
--inline-code-border-color: var(--global-border-color); // @presenter Color
|
|
545
|
+
--inline-code-border-radius: var(--global-border-radius); // @presenter BorderRadius
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @tokens Code Block
|
|
549
|
+
*/
|
|
550
|
+
--code-block-font-size: var(--code-font-size); // @presenter FontSize
|
|
551
|
+
--code-block-font-family: var(--code-font-family); // @presenter FontFamily
|
|
552
|
+
--code-block-color: #f1928f; // @presenter Color
|
|
553
|
+
--code-block-background-color: rgba(217, 205, 199, 0.05); // @presenter Color
|
|
554
|
+
--code-block-border-color: var(--global-border-color); // @presenter Color
|
|
555
|
+
--code-block-border-radius: 8px; // @presenter BorderRadius
|
|
556
|
+
--code-block-max-height: 600px;
|
|
557
|
+
--code-block-word-break: initial;
|
|
558
|
+
--code-block-preformatted-background-color: #323f4b; // @presenter Color
|
|
559
|
+
|
|
560
|
+
--code-block-tokens-default-color: var(--color-content-inverse); // @presenter Color
|
|
561
|
+
|
|
562
|
+
--code-block-tokens-comment-color: hsl(30, 20%, 50%); // @presenter Color
|
|
563
|
+
--code-block-tokens-prolog-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
564
|
+
--code-block-tokens-doctype-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
565
|
+
--code-block-tokens-cdata-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
566
|
+
|
|
567
|
+
--code-block-tokens-property-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
568
|
+
--code-block-tokens-tag-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
569
|
+
--code-block-tokens-number-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
570
|
+
--code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
571
|
+
--code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
572
|
+
|
|
573
|
+
--code-block-tokens-boolean-color: var(--color-error-500); // @presenter Color
|
|
574
|
+
|
|
575
|
+
--code-block-tokens-string-color: #fee39e; // @presenter Color
|
|
576
|
+
--code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
577
|
+
--code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
578
|
+
--code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
579
|
+
--code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
580
|
+
--code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
581
|
+
|
|
582
|
+
--code-block-tokens-operator-color: #f5b83d; // @presenter Color
|
|
583
|
+
--code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
584
|
+
--code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
585
|
+
--code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
586
|
+
|
|
587
|
+
--code-block-tokens-keyword-color: #ffdbf4; // @presenter Color
|
|
588
|
+
--code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
589
|
+
--code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
590
|
+
|
|
591
|
+
--code-block-tokens-regex-color: #e90; // @presenter Color
|
|
592
|
+
--code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
|
|
593
|
+
|
|
594
|
+
--code-block-tokens-deleted-color: red; // @presenter Color
|
|
595
|
+
|
|
596
|
+
// @tokens End
|
|
597
|
+
`;
|
|
598
|
+
|
|
599
|
+
const links = css`
|
|
600
|
+
/**
|
|
601
|
+
* @tokens Links
|
|
602
|
+
*/
|
|
603
|
+
--link-color: var(--color-primary-500); // @presenter Color
|
|
604
|
+
--link-decoration: none;
|
|
605
|
+
--link-hover-color: var(--color-primary-100); // @presenter Color
|
|
606
|
+
--link-hover-decoration: underline;
|
|
607
|
+
|
|
608
|
+
// @tokens End
|
|
609
|
+
`;
|
|
610
|
+
|
|
611
|
+
const openapiAndGraphqlDocs = css`
|
|
612
|
+
/* === ref docs and graphql docs specific === */
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @tokens OpenAPI-GraphQL Logo
|
|
616
|
+
*/
|
|
617
|
+
--logo-max-height: 285px;
|
|
618
|
+
--logo-max-width: 285px;
|
|
619
|
+
--logo-padding: 2px;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @tokens OpenAPI-GraphQL Layout
|
|
623
|
+
*/
|
|
624
|
+
--layout-buttons-top-offset: 20px; // @presenter Spacing
|
|
625
|
+
--layout-buttons-height: 36px; // @presenter Spacing
|
|
626
|
+
--layout-buttons-width: 36px; // @presenter Spacing
|
|
627
|
+
|
|
628
|
+
--layout-stacked-small-max-width: 90%;
|
|
629
|
+
--layout-stacked-medium-max-width: 75%;
|
|
630
|
+
--layout-stacked-large-max-width: 1200px;
|
|
631
|
+
|
|
632
|
+
--layout-three-panel-small-max-width: 100%;
|
|
633
|
+
--layout-three-panel-medium-max-width: 100%;
|
|
634
|
+
--layout-three-panel-large-max-width: 1800px;
|
|
635
|
+
|
|
636
|
+
--layout-middle-panel-small-max-width: none;
|
|
637
|
+
--layout-middle-panel-medium-max-width: none;
|
|
638
|
+
--layout-middle-panel-large-max-width: none;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* @tokens OpenAPI-GraphQL Schema
|
|
642
|
+
*/
|
|
643
|
+
--schema-lines-color: var(--global-border-color); // @presenter Color
|
|
644
|
+
--schema-default-details-width: 70%;
|
|
645
|
+
--schema-type-name-color: var(--color-content-secondary); // @presenter Color
|
|
646
|
+
--schema-type-title-color: var(--color-content-secondary); // @presenter Color
|
|
647
|
+
--schema-require-label-color: var(--color-error-900); // @presenter Color
|
|
648
|
+
--schema-labels-text-size: 0.9em; // @presenter Spacing
|
|
649
|
+
--schema-nesting-spacing: 1em; // @presenter Spacing
|
|
650
|
+
--schema-nested-background-color: var(--color-secondary-200); // @presenter Color
|
|
651
|
+
--schema-chevron-color: var(--color-content); // @presenter Color
|
|
652
|
+
--schema-chevron-size: 9px; // @presenter Spacing
|
|
653
|
+
|
|
654
|
+
--schema-controls-color: var(--color-emphasis-800); // @presenter Color
|
|
655
|
+
--schema-controls-background-color: var(--color-secondary-400); // @presenter Color
|
|
656
|
+
--schema-controls-hover-background-color: var(--color-secondary-500); // @presenter Color
|
|
657
|
+
--schema-controls-border-color: var(--color-secondary-600); // @presenter Color
|
|
658
|
+
|
|
659
|
+
--field-name-font-size: var(--code-font-size); // @presenter FontSize
|
|
660
|
+
--field-name-font-family: var(--code-font-family); // @presenter FontFamily
|
|
661
|
+
--field-example-color: var(--color-content); // @presenter Color
|
|
662
|
+
--field-example-background-color: var(--inline-code-background-color); // @presenter Color
|
|
663
|
+
--field-constraint-color: var(--color-content); // @presenter Color
|
|
664
|
+
--field-constraint-background-color: var(--inline-code-background-color); // @presenter Color
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* @tokens OpenAPI-GraphQL Search
|
|
668
|
+
* @presenter Color
|
|
669
|
+
*/
|
|
670
|
+
--search-input-border-bottom: #e6e6e6;
|
|
671
|
+
--search-results-background-color: #f2f2f2;
|
|
672
|
+
--search-results-active-item-background-color: #e6e6e6;
|
|
673
|
+
--search-marked-background-color: #ffff03;
|
|
674
|
+
--search-popup-header-background-color: var(--color-secondary-200);
|
|
675
|
+
--search-clear-button-background-color: var(--color-secondary-400);
|
|
676
|
+
--search-clear-button-hover-background-color: var(--color-secondary-600);
|
|
677
|
+
|
|
678
|
+
/*
|
|
679
|
+
* @tokens OpenAPI-GraphQL Badge
|
|
680
|
+
*/
|
|
681
|
+
--badge-color: var(--color-emphasis-100); // @presenter Color
|
|
682
|
+
--badge-background-color: var(--color-primary-500); // @presenter Color
|
|
683
|
+
--deprecated-badge-color: var(--color-emphasis-100); // @presenter Color
|
|
684
|
+
--deprecated-badge-background-color: var(--color-warning-500); // @presenter Color
|
|
685
|
+
|
|
686
|
+
--http-badge-font-size: 12px; // @presenter FontSize
|
|
687
|
+
--http-badge-line-height: 20px; // @presenter LineHeight
|
|
688
|
+
--http-badge-font-family: var(--code-font-family); // @presenter FontFamily
|
|
689
|
+
--http-badge-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
690
|
+
--http-badge-border-radius: 16px; // @presenter BorderRadius
|
|
691
|
+
--http-badge-color: var(--color-content-inverse); // @presenter Color
|
|
692
|
+
|
|
693
|
+
--http-badge-menu-font-size: 8px; // @presenter FontSize
|
|
694
|
+
--http-badge-menu-line-height: 14px; // @presenter FontSize
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* @tokens OpenAPI-GraphQL Other
|
|
698
|
+
*/
|
|
699
|
+
--recursive-label-color: var(--color-warning-500); // @presenter Color
|
|
700
|
+
--spinner-color: var(--color-primary-500); // @presenter Color
|
|
701
|
+
--linear-progress-color: var(--color-accent-500); // @presenter Color
|
|
702
|
+
--linear-progress-background-color: var(--color-accent-100); // @presenter Color
|
|
703
|
+
|
|
704
|
+
/* Floating action button */
|
|
705
|
+
--fab-color: #0065fb; // @presenter Color
|
|
706
|
+
--fab-background-color: #f2f2f2; // @presenter Color
|
|
707
|
+
|
|
708
|
+
// @tokens End
|
|
709
|
+
`;
|
|
710
|
+
|
|
711
|
+
const footer = css`
|
|
712
|
+
/**
|
|
713
|
+
* @tokens Footer
|
|
714
|
+
*/
|
|
715
|
+
--footer-background-color: var(--color-primary-500); // @presenter Color
|
|
716
|
+
--footer-text-color: #fff; // @presenter Color
|
|
717
|
+
|
|
718
|
+
// @tokens End
|
|
719
|
+
`;
|
|
720
|
+
|
|
721
|
+
const logo = css`
|
|
722
|
+
/**
|
|
723
|
+
* @tokens Logo
|
|
724
|
+
*/
|
|
725
|
+
--logo-height: 2rem; // @presenter Spacing
|
|
726
|
+
--logo-margin: var(--sidebar-margin-left); // @presenter Spacing
|
|
727
|
+
|
|
728
|
+
// @tokens End
|
|
729
|
+
`;
|
|
730
|
+
|
|
731
|
+
const navbar = css`
|
|
732
|
+
/**
|
|
733
|
+
* @tokens Navbar
|
|
734
|
+
*/
|
|
735
|
+
--navbar-height: 60px; // @presenter Spacing
|
|
736
|
+
--navbar-text-color: #fff; // @presenter Color
|
|
737
|
+
--navbar-background-color: var(--color-primary-500); // @presenter Color
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* @tokens Navbar Item
|
|
741
|
+
* */
|
|
742
|
+
--navbar-item-font-size: 16px; // @presenter FontSize
|
|
743
|
+
--navbar-item-margin-horizontal: 0; // @presenter Spacing
|
|
744
|
+
--navbar-item-margin-vertical: 0; // @presenter Spacing
|
|
745
|
+
--navbar-item-border-radius: 10px; // @presenter BorderRadius
|
|
746
|
+
--navbar-item-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
747
|
+
--navbar-item-active-background-color: #1b75fa; // @presenter Color
|
|
748
|
+
--navbar-item-active-text-color: var(--navbar-text-color); // @presenter Color
|
|
749
|
+
--navbar-item-active-text-decoration: none;
|
|
750
|
+
|
|
751
|
+
// @tokens End
|
|
752
|
+
`;
|
|
753
|
+
|
|
754
|
+
const toc = css`
|
|
755
|
+
/**
|
|
756
|
+
* @tokens TOC
|
|
757
|
+
* */
|
|
758
|
+
--toc-width: 240px;
|
|
759
|
+
|
|
760
|
+
// @tokens End
|
|
761
|
+
`;
|
|
762
|
+
|
|
763
|
+
const markdown = css`
|
|
764
|
+
/**
|
|
765
|
+
* @tokens Markdown
|
|
766
|
+
* */
|
|
767
|
+
--content-wrapper-max-width: 910px;
|
|
768
|
+
--content-wrapper-padding-vertical: 25px; // @presenter Spacing
|
|
769
|
+
--content-wrapper-padding-horizontal: 0px; // @presenter Spacing
|
|
770
|
+
|
|
771
|
+
// @tokens End
|
|
772
|
+
`;
|
|
773
|
+
|
|
774
|
+
const blockquote = css`
|
|
775
|
+
/**
|
|
776
|
+
* @tokens Blockquote
|
|
777
|
+
* */
|
|
778
|
+
// TODO: fix typo
|
|
779
|
+
--bloquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
780
|
+
--bloquote-margin-horizontal: 0; // @presenter Spacing
|
|
781
|
+
--bloquote-padding-vertical: 0; // @presenter Spacing
|
|
782
|
+
--bloquote-padding-horizontal: calc(var(--spacing-unit) * 4); // @presenter Spacing
|
|
783
|
+
--bloquote-background-color: transparent; // @presenter Color
|
|
784
|
+
|
|
785
|
+
// @tokens End
|
|
786
|
+
`;
|
|
787
|
+
|
|
788
|
+
const portalSearch = css`
|
|
789
|
+
/**
|
|
790
|
+
* @tokens Portal Search
|
|
791
|
+
*/
|
|
792
|
+
--search-input-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
793
|
+
--search-input-text-color: #fff; // @presenter Color
|
|
794
|
+
--search-input-border-radius: var(--global-border-radius); // @presenter BorderRadius
|
|
795
|
+
--search-input-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
796
|
+
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
797
|
+
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
798
|
+
// TODO: fix typo
|
|
799
|
+
--search-popover-backgrond-color: #fff; // @presenter Color
|
|
800
|
+
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
801
|
+
--search-item-text-color: var(--color-content-secondary); // @presenter Color
|
|
802
|
+
--search-item-title-text-color: var(--color-content); // @presenter Color
|
|
803
|
+
--search-item-active-background-color: rgba(0, 68, 212, 0.1); // @presenter Color
|
|
804
|
+
|
|
805
|
+
// @tokens End
|
|
806
|
+
`;
|
|
807
|
+
|
|
808
|
+
export const styles = css`
|
|
8
809
|
:root {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
--color-secondary-800: #a9b3c0;
|
|
32
|
-
--color-secondary-900: #9ba6b5;
|
|
33
|
-
|
|
34
|
-
--color-emphasis-100: #ffffff;
|
|
35
|
-
--color-emphasis-200: #e9eaec;
|
|
36
|
-
--color-emphasis-300: #cdd0d5;
|
|
37
|
-
--color-emphasis-400: #b2b6bd;
|
|
38
|
-
--color-emphasis-500: #969ca6;
|
|
39
|
-
--color-emphasis-600: #7a828f;
|
|
40
|
-
--color-emphasis-700: #626974;
|
|
41
|
-
--color-emphasis-800: #4b5058;
|
|
42
|
-
--color-emphasis-900: #1c1e21;
|
|
43
|
-
|
|
44
|
-
--color-accent-100: #b3dcf3;
|
|
45
|
-
--color-accent-200: #a6dfff;
|
|
46
|
-
--color-accent-300: #8cd5ff;
|
|
47
|
-
--color-accent-400: #73ccff;
|
|
48
|
-
--color-accent-500: #59c3ff;
|
|
49
|
-
--color-accent-600: #40baff;
|
|
50
|
-
--color-accent-700: #26b1ff;
|
|
51
|
-
--color-accent-800: #0da7ff;
|
|
52
|
-
--color-accent-900: #009bf2;
|
|
53
|
-
|
|
54
|
-
--color-success-100: #98eda0;
|
|
55
|
-
--color-success-200: #82e98c;
|
|
56
|
-
--color-success-300: #6ce678;
|
|
57
|
-
--color-success-400: #57e264;
|
|
58
|
-
--color-success-500: #41de50;
|
|
59
|
-
--color-success-600: #2bda3c;
|
|
60
|
-
--color-success-700: #23c933;
|
|
61
|
-
--color-success-800: #1fb32d;
|
|
62
|
-
--color-success-900: #1b9e28;
|
|
63
|
-
|
|
64
|
-
--color-warning-100: #ffc966;
|
|
65
|
-
--color-warning-200: #ffc04d;
|
|
66
|
-
--color-warning-300: #ffb733;
|
|
67
|
-
--color-warning-400: #ffae1a;
|
|
68
|
-
--color-warning-500: #ffa500;
|
|
69
|
-
--color-warning-600: #e69400;
|
|
70
|
-
--color-warning-700: #cc8400;
|
|
71
|
-
--color-warning-800: #b37300;
|
|
72
|
-
--color-warning-900: #996300;
|
|
73
|
-
|
|
74
|
-
--color-error-100: #ffc7c7;
|
|
75
|
-
--color-error-200: #ffaeae;
|
|
76
|
-
--color-error-300: #ff9494;
|
|
77
|
-
--color-error-400: #ff7b7b;
|
|
78
|
-
--color-error-500: #ff6161;
|
|
79
|
-
--color-error-600: #ff4747;
|
|
80
|
-
--color-error-700: #ff2e2e;
|
|
81
|
-
--color-error-800: #ff1414;
|
|
82
|
-
--color-error-900: #ff0000;
|
|
83
|
-
|
|
84
|
-
/* === Typography === */
|
|
85
|
-
|
|
86
|
-
--color-content: #1f2933;
|
|
87
|
-
--color-content-inverse: var(--color-secondary-200);
|
|
88
|
-
--color-content-secondary: #7b8794;
|
|
89
|
-
|
|
90
|
-
--font-size-base: 14px;
|
|
91
|
-
--line-height-base: 1.5em;
|
|
92
|
-
--font-weight-regular: 400;
|
|
93
|
-
--font-weight-bold: 600;
|
|
94
|
-
--font-weight-bolder: 700;
|
|
95
|
-
--font-family-base: Source Sans Pro, sans-serif;
|
|
96
|
-
--font-family-monospaced: Source Code Pro, monospace;
|
|
97
|
-
|
|
98
|
-
--smoothing: antialiased; // text-smoothing
|
|
99
|
-
--text-rendering: optimizeSpeed; // text-rendering
|
|
100
|
-
|
|
101
|
-
/*
|
|
102
|
-
* Spacing
|
|
103
|
-
*/
|
|
104
|
-
--spacing-unit: 5px;
|
|
105
|
-
--spacing-horizontal: calc(var(--spacing-unit) * 8);
|
|
106
|
-
--spacing-vertical: calc(var(--spacing-unit) * 4);
|
|
107
|
-
|
|
108
|
-
/*
|
|
109
|
-
* Global
|
|
110
|
-
*/
|
|
111
|
-
--global-border-radius: 4px;
|
|
112
|
-
--global-border-width: 1px;
|
|
113
|
-
--global-border-color: var(--color-secondary-400);
|
|
114
|
-
--global-border-color-secondary: #616e7c;
|
|
115
|
-
--global-background-color: transparent;
|
|
116
|
-
|
|
117
|
-
/* === Page layout === */
|
|
118
|
-
//TBD
|
|
119
|
-
/* === Navbar === */
|
|
120
|
-
//--navbar-height:
|
|
121
|
-
//TBD
|
|
122
|
-
|
|
123
|
-
/* === Menu (sidebar) === */
|
|
124
|
-
|
|
125
|
-
--sidebar-width: 285px;
|
|
126
|
-
--sidebar-background-color: #fff;
|
|
127
|
-
--sidebar-right-line-color: var(--global-border-color);
|
|
128
|
-
--sidebar-spacing-unit: 8px;
|
|
129
|
-
--sidebar-spacing-horizontal: var(--sidebar-spacing-unit);
|
|
130
|
-
--sidebar-spacing-vertical: var(--sidebar-spacing-unit);
|
|
131
|
-
|
|
132
|
-
--sidebar-margin-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
133
|
-
--sidebar-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
134
|
-
--sidebar-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
135
|
-
--sidebar-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
|
|
136
|
-
|
|
137
|
-
--sidebar-word-break: 'inherit';
|
|
138
|
-
--sidebar-separator-label-color: var(--sidebar-item-color);
|
|
139
|
-
--sidebar-separator-line-color: #dadada;
|
|
140
|
-
--sidebar-chevron-color: var(--sidebar-item-color);
|
|
141
|
-
--sidebar-chevron-size: var(--sidebar-spacing-unit);
|
|
142
|
-
|
|
143
|
-
--sidebar-item-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
144
|
-
--sidebar-item-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
145
|
-
--sidebar-item-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
|
|
146
|
-
--sidebar-item-border-radius: 4px;
|
|
147
|
-
--sidebar-item-font-family: var(--font-family-base);
|
|
148
|
-
--sidebar-item-font-size: var(--font-size-base);
|
|
149
|
-
--sidebar-item-color: var(--color-content);
|
|
150
|
-
--sidebar-item-active-color: var(--color-content);
|
|
151
|
-
--sidebar-item-background-color: #fff;
|
|
152
|
-
--sidebar-item-active-background-color: var(--global-border-color);
|
|
153
|
-
|
|
154
|
-
//TBD
|
|
155
|
-
/* === Footer === */
|
|
156
|
-
//TBD
|
|
157
|
-
/* === Table of contents === */
|
|
158
|
-
//TBD
|
|
159
|
-
/* === Various components: buttons, inputs, alerts, tooltip === */
|
|
160
|
-
|
|
161
|
-
/*
|
|
162
|
-
* Buttons
|
|
163
|
-
*/
|
|
164
|
-
--button-color: white;
|
|
165
|
-
--button-background-color: var(--color-emphasis-500);
|
|
166
|
-
--button-hover-background-color: var(--color-emphasis-600);
|
|
167
|
-
--button-active-background-color: var(--color-emphasis-700);
|
|
168
|
-
--button-outlined-active-border-color: var(--color-emphasis-800);
|
|
169
|
-
--button-border-radius: var(--global-border-radius);
|
|
170
|
-
--button-font-family: inherit;
|
|
171
|
-
--button-font-weight: var(--font-weight-bold);
|
|
172
|
-
--button-box-shadow: none;
|
|
173
|
-
--button-active-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
|
|
174
|
-
|
|
175
|
-
.button-color-primary {
|
|
176
|
-
--button-color: white;
|
|
177
|
-
--button-background-color: var(--color-primary-500);
|
|
178
|
-
--button-hover-background-color: var(--color-primary-600);
|
|
179
|
-
--button-active-background-color: var(--color-primary-700);
|
|
180
|
-
--button-outlined-active-border-color: var(--color-primary-800);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.button-color-secondary {
|
|
184
|
-
--button-color: var(--color-emphasis-800);
|
|
185
|
-
--button-background-color: var(--color-secondary-400);
|
|
186
|
-
--button-hover-background-color: var(--color-secondary-500);
|
|
187
|
-
--button-active-background-color: var(--color-secondary-600);
|
|
188
|
-
--button-outlined-active-border-color: var(--color-secondary-700);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
--button-small-font-size: 12px;
|
|
192
|
-
--button-small-padding: 8px 10px;
|
|
193
|
-
--button-small-min-width: 90px;
|
|
194
|
-
--button-medium-font-size: 14px;
|
|
195
|
-
--button-medium-padding: 8px 20px;
|
|
196
|
-
--button-medium-min-width: 120px;
|
|
197
|
-
--button-large-font-size: 14px;
|
|
198
|
-
--button-large-padding: 12px 24px;
|
|
199
|
-
--button-large-min-width: 150px;
|
|
200
|
-
--button-xlarge-font-size: 16px;
|
|
201
|
-
--button-xlarge-padding: 20px 24px;
|
|
202
|
-
--button-xlarge-min-width: 200px;
|
|
203
|
-
|
|
204
|
-
/*
|
|
205
|
-
* Tooltip
|
|
206
|
-
*/
|
|
207
|
-
--tooltip-color: var(--color-secondary-300);
|
|
208
|
-
--tooltip-background-color: #52606d;
|
|
209
|
-
|
|
210
|
-
.tooltip-copy-button {
|
|
211
|
-
--tooltip-color: #000;
|
|
212
|
-
--tooltip-background-color: #fff;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/* === Markdown/Page content (tables, inline code, blockquotes) === */
|
|
216
|
-
|
|
217
|
-
/*
|
|
218
|
-
* Headings
|
|
219
|
-
* --h-{css-property-name} is fallback for h1...h6
|
|
220
|
-
*/
|
|
221
|
-
--h-font-family: Source Sans Pro, sans-serif;
|
|
222
|
-
--h-font-weight: var(--font-weight-bolder);
|
|
223
|
-
--h-color: var(--color-content);
|
|
224
|
-
|
|
225
|
-
--h1-font-size: 36px;
|
|
226
|
-
--h2-font-size: 28px;
|
|
227
|
-
--h3-font-size: 18px;
|
|
228
|
-
--h4-font-size: 16px;
|
|
229
|
-
--h5-font-size: 14px;
|
|
230
|
-
--h6-font-size: 12px;
|
|
231
|
-
|
|
232
|
-
--h1-line-height: 36px;
|
|
233
|
-
--h2-line-height: 28px;
|
|
234
|
-
--h3-line-height: 18px;
|
|
235
|
-
--h4-line-height: 16px;
|
|
236
|
-
--h5-line-height: 14px;
|
|
237
|
-
--h6-line-height: 12px;
|
|
238
|
-
|
|
239
|
-
--code-font-size: 13px;
|
|
240
|
-
--code-font-family: var(--font-family-monospaced);
|
|
241
|
-
--code-font-weight: 400;
|
|
242
|
-
--code-wrap: pre;
|
|
243
|
-
|
|
244
|
-
--inline-code-font-size: var(--code-font-size);
|
|
245
|
-
--inline-code-font-family: var(--code-font-family);
|
|
246
|
-
--inline-code-color: #e53935;
|
|
247
|
-
--inline-code-background-color: var(--color-secondary-200);
|
|
248
|
-
--inline-code-border-color: var(--global-border-color);
|
|
249
|
-
--inline-code-border-radius: var(--global-border-radius);
|
|
250
|
-
|
|
251
|
-
--code-block-font-size: var(--code-font-size);
|
|
252
|
-
--code-block-font-family: var(--code-font-family);
|
|
253
|
-
--code-block-color: #f1928f;
|
|
254
|
-
--code-block-background-color: rgba(217, 205, 199, 0.05);
|
|
255
|
-
--code-block-border-color: var(--global-border-color);
|
|
256
|
-
--code-block-border-radius: 8px;
|
|
257
|
-
--code-block-max-height: 600px;
|
|
258
|
-
--code-block-word-break: initial;
|
|
259
|
-
--code-block-preformatted-background-color: #323f4b;
|
|
260
|
-
|
|
261
|
-
/*
|
|
262
|
-
* Links
|
|
263
|
-
*/
|
|
264
|
-
--link-color: var(--color-primary-500);
|
|
265
|
-
--link-decoration: none;
|
|
266
|
-
--link-hover-color: var(--color-primary-100);
|
|
267
|
-
--link-hover-decoration: underline;
|
|
268
|
-
|
|
269
|
-
/* === ref docs and graphql docs specific === */
|
|
270
|
-
/*
|
|
271
|
-
* Logo
|
|
272
|
-
*/
|
|
273
|
-
--logo-max-height: 285px;
|
|
274
|
-
--logo-max-width: 285px;
|
|
275
|
-
--logo-padding: 2px;
|
|
276
|
-
|
|
277
|
-
/*
|
|
278
|
-
* Http colors
|
|
279
|
-
*/
|
|
280
|
-
--color-http-get: #3a9601;
|
|
281
|
-
--color-http-post: #0065fb;
|
|
282
|
-
--color-http-put: #93527b;
|
|
283
|
-
--color-http-options: #947014;
|
|
284
|
-
--color-http-patch: #bf581d;
|
|
285
|
-
--color-http-delete: #c83637;
|
|
286
|
-
--color-http-basic: #707070;
|
|
287
|
-
--color-http-link: #07818f;
|
|
288
|
-
--color-http-head: #a23dad;
|
|
289
|
-
--color-http-hook: var(--color-http-post);
|
|
290
|
-
|
|
291
|
-
/*
|
|
292
|
-
* Response colors
|
|
293
|
-
*/
|
|
294
|
-
--response-success-border-color: #b1e996;
|
|
295
|
-
--response-success-background-color: #f6fff4;
|
|
296
|
-
--response-success-text-color: var(--response-success-border-color);
|
|
297
|
-
|
|
298
|
-
--response-error-border-color: #ffc9c9;
|
|
299
|
-
--response-error-background-color: #fff4f4;
|
|
300
|
-
--response-error-text-color: var(--response-error-border-color);
|
|
301
|
-
|
|
302
|
-
--response-redirect-border-color: var(--color-warning-500);
|
|
303
|
-
--response-redirect-background-color: #ffa5001a;
|
|
304
|
-
--response-redirect-text-color: var(--response-redirect-border-color);
|
|
305
|
-
|
|
306
|
-
--response-info-border-color: #87ceeb;
|
|
307
|
-
--response-info-background-color: #87ceeb1a;
|
|
308
|
-
--response-info-text-color: var(--response-info-border-color);
|
|
309
|
-
|
|
310
|
-
/*
|
|
311
|
-
* Panels
|
|
312
|
-
*/
|
|
313
|
-
--panels-border-radius: 8px;
|
|
314
|
-
--panels-background-color: #fff;
|
|
315
|
-
|
|
316
|
-
--samples-panel-gap: 20px;
|
|
317
|
-
--samples-panel-width: 50%;
|
|
318
|
-
--samples-panel-block-background-color: #fff;
|
|
319
|
-
--samples-panel-background-color: #52606d;
|
|
320
|
-
--samples-panel-callback-background-color: var(--color-secondary-300);
|
|
321
|
-
--samples-panel-controls-background-color: #323f4b;
|
|
322
|
-
--samples-panel-controls-hover-background-color: #3c4c5a;
|
|
323
|
-
--samples-panel-controls-active-border-color: var(--color-accent-500);
|
|
324
|
-
--samples-panel-text-color: #fff;
|
|
325
|
-
--samples-panel-heading-color: #fff;
|
|
326
|
-
|
|
327
|
-
--samples-panel-markdown-background-color: #3c4c5a;
|
|
328
|
-
--samples-panel-markdown-border-color: #46596a;
|
|
329
|
-
|
|
330
|
-
--try-it-panel-tab-background-color: var(--samples-panel-background-color);
|
|
331
|
-
--try-it-panel-active-tab-background-color: #47535e;
|
|
332
|
-
--try-it-panel-active-tab-border-color: var(--color-accent-500);
|
|
333
|
-
--try-it-panel-disabled-tab-color: rgba(245, 247, 250, 0.7);
|
|
334
|
-
--try-it-panel-controls-background-color: var(--samples-panel-controls-background-color);
|
|
335
|
-
--try-it-panel-action-button-width: auto;
|
|
336
|
-
|
|
337
|
-
--request-and-response-panel-background-color: #fff;
|
|
338
|
-
|
|
339
|
-
/*
|
|
340
|
-
* Layout
|
|
341
|
-
*/
|
|
342
|
-
--layout-buttons-top-offset: 20px;
|
|
343
|
-
--layout-buttons-height: 36px;
|
|
344
|
-
--layout-buttons-width: 36px;
|
|
345
|
-
|
|
346
|
-
--layout-stacked-small-max-width: 90%;
|
|
347
|
-
--layout-stacked-medium-max-width: 75%;
|
|
348
|
-
--layout-stacked-large-max-width: 1200px;
|
|
349
|
-
|
|
350
|
-
--layout-three-panel-small-max-width: 100%;
|
|
351
|
-
--layout-three-panel-medium-max-width: 100%;
|
|
352
|
-
--layout-three-panel-large-max-width: 1800px;
|
|
353
|
-
|
|
354
|
-
--layout-middle-panel-small-max-width: none;
|
|
355
|
-
--layout-middle-panel-medium-max-width: none;
|
|
356
|
-
--layout-middle-panel-large-max-width: none;
|
|
357
|
-
|
|
358
|
-
/*
|
|
359
|
-
* Schema
|
|
360
|
-
*/
|
|
361
|
-
--schema-lines-color: var(--global-border-color);
|
|
362
|
-
--schema-default-details-width: 70%;
|
|
363
|
-
--schema-type-name-color: var(--color-content-secondary);
|
|
364
|
-
--schema-type-title-color: var(--color-content-secondary);
|
|
365
|
-
--schema-require-label-color: var(--color-error-900);
|
|
366
|
-
--schema-labels-text-size: 0.9em;
|
|
367
|
-
--schema-nesting-spacing: 1em;
|
|
368
|
-
--schema-nested-background-color: var(--color-secondary-200);
|
|
369
|
-
--schema-chevron-color: var(--color-content);
|
|
370
|
-
--schema-chevron-size: 9px;
|
|
371
|
-
|
|
372
|
-
--schema-controls-color: var(--color-emphasis-800);
|
|
373
|
-
--schema-controls-background-color: var(--color-secondary-400);
|
|
374
|
-
--schema-controls-hover-background-color: var(--color-secondary-500);
|
|
375
|
-
--schema-controls-border-color: var(--color-secondary-600);
|
|
376
|
-
|
|
377
|
-
--field-name-font-size: var(--code-font-size);
|
|
378
|
-
--field-name-font-family: var(--code-font-family);
|
|
379
|
-
--field-example-color: var(--color-content);
|
|
380
|
-
--field-example-background-color: var(--inline-code-background-color);
|
|
381
|
-
--field-constraint-color: var(--color-content);
|
|
382
|
-
--field-constraint-background-color: var(--inline-code-background-color);
|
|
383
|
-
|
|
384
|
-
/*
|
|
385
|
-
* Search
|
|
386
|
-
*/
|
|
387
|
-
--search-input-border-bottom: #e6e6e6;
|
|
388
|
-
--search-results-background-color: #f2f2f2;
|
|
389
|
-
--search-results-active-item-background-color: #e6e6e6;
|
|
390
|
-
--search-marked-background-color: #ffff03;
|
|
391
|
-
--search-popup-header-background-color: var(--color-secondary-200);
|
|
392
|
-
--search-clear-button-background-color: var(--color-secondary-400);
|
|
393
|
-
--search-clear-button-hover-background-color: var(--color-secondary-600);
|
|
394
|
-
|
|
395
|
-
/*
|
|
396
|
-
* Other
|
|
397
|
-
*/
|
|
398
|
-
--badge-color: var(--color-emphasis-100);
|
|
399
|
-
--badge-background-color: var(--color-primary-500);
|
|
400
|
-
--deprecated-badge-color: var(--color-emphasis-100);
|
|
401
|
-
--deprecated-badge-background-color: var(--color-warning-500);
|
|
402
|
-
|
|
403
|
-
--recursive-label-color: var(--color-warning-500);
|
|
404
|
-
|
|
405
|
-
--http-badge-font-size: 12px;
|
|
406
|
-
--http-badge-line-height: 20px;
|
|
407
|
-
--http-badge-font-family: var(--code-font-family);
|
|
408
|
-
--http-badge-font-weight: var(--font-weight-bold);
|
|
409
|
-
--http-badge-border-radius: 16px;
|
|
410
|
-
--http-badge-color: var(--color-content-inverse);
|
|
411
|
-
|
|
412
|
-
--http-badge-menu-font-size: 8px;
|
|
413
|
-
--http-badge-menu-line-height: 14px;
|
|
414
|
-
|
|
415
|
-
--spinner-color: var(--color-primary-500);
|
|
416
|
-
|
|
417
|
-
--linear-progress-color: var(--color-accent-500);
|
|
418
|
-
--linear-progress-background-color: var(--color-accent-100);
|
|
419
|
-
|
|
420
|
-
/* Floating action button */
|
|
421
|
-
--fab-color: #0065FB;
|
|
422
|
-
--fab-background-color: #f2f2f2;
|
|
423
|
-
|
|
424
|
-
//* PORTAL settings *//
|
|
425
|
-
/**
|
|
426
|
-
* Headings
|
|
427
|
-
* */
|
|
428
|
-
--h2-font-weight: var(--font-weight-bold);
|
|
429
|
-
|
|
430
|
-
--h1-margin-top: 1.35em;
|
|
431
|
-
--h1-margin-bottom: 0.9em;
|
|
432
|
-
--h2-margin-top: 1.25em;
|
|
433
|
-
--h2-margin-bottom: 0.8em;
|
|
434
|
-
--h3-margin-top: 1.25em;
|
|
435
|
-
--h3-margin-bottom: 0.8em;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Footer
|
|
439
|
-
* */
|
|
440
|
-
--footer-background-color: var(--color-primary-500);
|
|
441
|
-
--footer-text-color: #fff;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Sidebar
|
|
445
|
-
* */
|
|
446
|
-
--sidebar-padding-horizontal: var(--sidebar-spacing-unit);
|
|
447
|
-
--sidebar-padding-vertical: var(--sidebar-spacing-unit);
|
|
448
|
-
|
|
449
|
-
--sidebar-spacing-padding-vertical: var(--sidebar-spacing-unit);
|
|
450
|
-
--sidebar-spacing-padding-horizontal: var(--sidebar-spacing-unit);
|
|
451
|
-
|
|
452
|
-
--sidebar-border-radius: 4px;
|
|
453
|
-
--sidebar-font-size: var(--font-size-base);
|
|
454
|
-
--sidebar-font-family: var(--font-family-base);
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Logo
|
|
458
|
-
* */
|
|
459
|
-
--logo-height: 2rem;
|
|
460
|
-
--logo-margin: var(--sidebar-margin-left);
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* Navbar
|
|
464
|
-
* */
|
|
465
|
-
--navbar-height: 60px;
|
|
466
|
-
--navbar-text-color: #fff;
|
|
467
|
-
--navbar-background-color: var(--color-primary-500);
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Navbar Item
|
|
471
|
-
* */
|
|
472
|
-
--navbar-item-font-size: 16px;
|
|
473
|
-
--navbar-item-margin-horizontal: 0;
|
|
474
|
-
--navbar-item-margin-vertical: 0;
|
|
475
|
-
--navbar-item-border-radius: 10px;
|
|
476
|
-
--navbar-item-font-weight: var(--font-weight-bold);
|
|
477
|
-
--navbar-item-active-background-color: #1b75fa;
|
|
478
|
-
--navbar-item-active-text-color: var(--navbar-text-color);
|
|
479
|
-
--navbar-item-active-text-decoration: none;
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* TOC
|
|
483
|
-
* */
|
|
484
|
-
--toc-width: 240px;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Markdown
|
|
488
|
-
* */
|
|
489
|
-
--content-wrapper-max-width: 910px;
|
|
490
|
-
--content-wrapper-padding-vertical: 25px;
|
|
491
|
-
--content-wrapper-padding-horizontal: 0px;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Bloquote
|
|
495
|
-
* */
|
|
496
|
-
--bloquote-margin-vertical: 1.5em;
|
|
497
|
-
--bloquote-margin-horizontal: 0;
|
|
498
|
-
--bloquote-padding-vertical: 0;
|
|
499
|
-
--bloquote-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
500
|
-
--bloquote-background-color: transparent;
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Admonition
|
|
504
|
-
* */
|
|
505
|
-
--admonition-margin-horizontal: 0;
|
|
506
|
-
--admonition-margin-vertical: calc(var(--spacing-unit) * 2);
|
|
507
|
-
--admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
508
|
-
--admonition-padding-vertical: calc(var(--spacing-unit) * 4);
|
|
509
|
-
--admonition-icon-size: 25px;
|
|
510
|
-
--admonition-border-radius: 8px;
|
|
511
|
-
--admonition-font-size: 16px;
|
|
512
|
-
--admonition-font-weight: normal;
|
|
513
|
-
--admonition-line-height: 1.5em;
|
|
514
|
-
--admonition-heading-font-size: 16px;
|
|
515
|
-
--admonition-heading-font-weight: var(--font-weight-bold);
|
|
516
|
-
--admonition-heading-letter-spacing: 0.3px;
|
|
517
|
-
--admonition-heading-transform: uppercase;
|
|
518
|
-
|
|
519
|
-
/* info */
|
|
520
|
-
--admonition-info-background-color: #ebedf0;
|
|
521
|
-
--admonition-info-text-color: var(--color-content);
|
|
522
|
-
--admonition-info-icon-color: #4782cb;
|
|
523
|
-
|
|
524
|
-
/* attention */
|
|
525
|
-
--admonition-attention-background-color: #e6eef8;
|
|
526
|
-
--admonition-attention-text-color: var(--color-content);
|
|
527
|
-
--admonition-attention-icon-color: #4782cb;
|
|
528
|
-
|
|
529
|
-
/* warning */
|
|
530
|
-
--admonition-warning-background-color: #feeda5;
|
|
531
|
-
--admonition-warning-text-color: var(--color-content);
|
|
532
|
-
--admonition-warning-icon-color: #d4ad03;
|
|
533
|
-
|
|
534
|
-
/* danger */
|
|
535
|
-
--admonition-danger-background-color: #fceaea;
|
|
536
|
-
--admonition-danger-text-color: var(--color-content);
|
|
537
|
-
--admonition-danger-icon-color: #e53935;
|
|
538
|
-
|
|
539
|
-
/* success */
|
|
540
|
-
--admonition-success-background-color: #ddffe1;
|
|
541
|
-
--admonition-success-text-color: var(--color-content);
|
|
542
|
-
--admonition-success-icon-color: #00aa13;
|
|
810
|
+
${baseColors}
|
|
811
|
+
${httpColors}
|
|
812
|
+
${responseColors}
|
|
813
|
+
${typography}
|
|
814
|
+
${headingsTypography}
|
|
815
|
+
${borders}
|
|
816
|
+
${admonition}
|
|
817
|
+
${buttons}
|
|
818
|
+
${sidebar}
|
|
819
|
+
${panels}
|
|
820
|
+
${navbar}
|
|
821
|
+
${footer}
|
|
822
|
+
${logo}
|
|
823
|
+
${toc}
|
|
824
|
+
${tooltip}
|
|
825
|
+
${code}
|
|
826
|
+
${links}
|
|
827
|
+
${markdown}
|
|
828
|
+
${blockquote}
|
|
829
|
+
${portalSearch}
|
|
830
|
+
|
|
831
|
+
${openapiAndGraphqlDocs}
|
|
543
832
|
}
|
|
544
833
|
`;
|
|
834
|
+
|
|
835
|
+
export const GlobalStyle = createGlobalStyle`
|
|
836
|
+
${styles}
|
|
837
|
+
`;
|