@redocly/theme 0.18.3-patch.2 → 0.18.3-patch.5
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/lib/I18n/LanguagePicker.js +1 -1
- package/lib/components/Catalog/Catalog.d.ts +5 -0
- package/lib/components/Catalog/Catalog.js +18 -16
- package/lib/components/Catalog/CatalogCard.js +22 -5
- package/lib/components/CodeBlock/styledVariables.js +1 -1
- package/lib/components/Filter/Filter.d.ts +2 -1
- package/lib/components/Filter/Filter.js +12 -4
- package/lib/components/Filter/FilterContent.d.ts +2 -1
- package/lib/components/Filter/FilterContent.js +5 -4
- package/lib/components/Filter/FilterPopover.d.ts +3 -1
- package/lib/components/Filter/FilterPopover.js +4 -4
- package/lib/components/Filter/styledVariables.js +1 -1
- package/lib/components/Footer/Footer.js +2 -1
- package/lib/components/Footer/FooterColumn.js +2 -0
- package/lib/components/Footer/styledVariables.js +1 -1
- package/lib/components/Markdown/Admonition.js +12 -9
- package/lib/components/Markdown/Mermaid.js +3 -0
- package/lib/components/Markdown/styledVariables.d.ts +1 -0
- package/lib/components/Markdown/styledVariables.js +16 -6
- package/lib/components/Panel/PanelHeader.js +1 -0
- package/lib/components/Panel/styledVariables.js +1 -1
- package/lib/components/Product/ProductPicker.js +1 -1
- package/lib/components/Select/Select.js +3 -4
- package/lib/components/Separator/SeparatorItem.js +1 -0
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Tag/styledVariables.js +10 -9
- package/lib/config.d.ts +25 -2
- package/lib/config.js +12 -3
- package/lib/globalStyle.js +23 -21
- package/lib/hooks/useMobileMenu.js +5 -6
- package/lib/hooks/useModalScrollLock.d.ts +1 -0
- package/lib/hooks/useModalScrollLock.js +16 -0
- package/lib/icons/AlertIcon/AlertIcon.js +0 -5
- package/lib/types/portal/src/shared/types/catalog.d.ts +5 -1
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/darkColors.js +26 -26
- package/lib/utils/css-variables.js +1 -1
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +1 -0
- package/src/components/Catalog/Catalog.tsx +17 -10
- package/src/components/Catalog/CatalogCard.tsx +26 -3
- package/src/components/CodeBlock/styledVariables.ts +1 -1
- package/src/components/Filter/Filter.tsx +19 -6
- package/src/components/Filter/FilterContent.tsx +7 -4
- package/src/components/Filter/FilterPopover.tsx +13 -3
- package/src/components/Filter/styledVariables.ts +1 -1
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/FooterColumn.tsx +2 -0
- package/src/components/Footer/styledVariables.ts +1 -1
- package/src/components/Markdown/Admonition.tsx +13 -8
- package/src/components/Markdown/Mermaid.tsx +3 -0
- package/src/components/Markdown/styledVariables.ts +17 -6
- package/src/components/Panel/PanelHeader.ts +1 -0
- package/src/components/Panel/styledVariables.ts +1 -1
- package/src/components/Product/ProductPicker.tsx +0 -1
- package/src/components/Select/Select.tsx +3 -4
- package/src/components/Separator/SeparatorItem.tsx +1 -0
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Tag/styledVariables.ts +10 -9
- package/src/config.ts +11 -1
- package/src/globalStyle.ts +24 -22
- package/src/hooks/useMobileMenu.ts +3 -4
- package/src/hooks/useModalScrollLock.ts +12 -0
- package/src/icons/AlertIcon/AlertIcon.tsx +0 -5
- package/src/types/portal/src/shared/types/catalog.ts +7 -1
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/darkColors.tsx +26 -26
- package/src/utils/css-variables.ts +4 -2
package/src/ui/darkColors.tsx
CHANGED
|
@@ -63,16 +63,16 @@ export const darkMode = css`
|
|
|
63
63
|
--color-purple-9: #cda8f0;
|
|
64
64
|
--color-purple-10: #ebd7fa;
|
|
65
65
|
|
|
66
|
-
--color-
|
|
67
|
-
--color-
|
|
68
|
-
--color-
|
|
69
|
-
--color-
|
|
70
|
-
--color-
|
|
71
|
-
--color-
|
|
72
|
-
--color-
|
|
73
|
-
--color-
|
|
74
|
-
--color-
|
|
75
|
-
--color-
|
|
66
|
+
--color-magenta-1: #291321;
|
|
67
|
+
--color-magenta-2: #40162f;
|
|
68
|
+
--color-magenta-3: #551c3b;
|
|
69
|
+
--color-magenta-4: #75204f;
|
|
70
|
+
--color-magenta-5: #a02669;
|
|
71
|
+
--color-magenta-6: #cb2b83;
|
|
72
|
+
--color-magenta-7: #e0529c;
|
|
73
|
+
--color-magenta-8: #f37fb7;
|
|
74
|
+
--color-magenta-9: #f8a8cc;
|
|
75
|
+
--color-magenta-10: #fad2e3;
|
|
76
76
|
|
|
77
77
|
--color-cyan-1: #112123;
|
|
78
78
|
--color-cyan-2: #113536;
|
|
@@ -129,35 +129,35 @@ export const darkMode = css`
|
|
|
129
129
|
--color-primary-text: #d6dfff;
|
|
130
130
|
--color-primary-text-active: #ebf0ff;
|
|
131
131
|
|
|
132
|
-
--color-success-bg: var(--color-
|
|
133
|
-
--color-success-bg-hover: var(--color-
|
|
134
|
-
--color-success-border: var(--color-
|
|
135
|
-
--color-success-border-hover: var(--color-
|
|
136
|
-
--color-success-hover: var(--color-
|
|
137
|
-
--color-success-base: var(--color-
|
|
138
|
-
--color-success-active: var(--color-
|
|
139
|
-
--color-success-text-hover: var(--color-
|
|
140
|
-
--color-success-text: var(--color-
|
|
141
|
-
--color-success-text-active: var(--color-
|
|
142
|
-
|
|
143
|
-
--color-warning-bg: var(--color-gold-
|
|
132
|
+
--color-success-bg: var(--color-cyan-3);
|
|
133
|
+
--color-success-bg-hover: var(--color-cyan-2);
|
|
134
|
+
--color-success-border: var(--color-cyan-3);
|
|
135
|
+
--color-success-border-hover: var(--color-cyan-4);
|
|
136
|
+
--color-success-hover: var(--color-cyan-7);
|
|
137
|
+
--color-success-base: var(--color-cyan-6);
|
|
138
|
+
--color-success-active: var(--color-cyan-7);
|
|
139
|
+
--color-success-text-hover: var(--color-cyan-8);
|
|
140
|
+
--color-success-text: var(--color-cyan-9);
|
|
141
|
+
--color-success-text-active: var(--color-cyan-10);
|
|
142
|
+
|
|
143
|
+
--color-warning-bg: var(--color-gold-3);
|
|
144
144
|
--color-warning-bg-hover: var(--color-gold-2);
|
|
145
145
|
--color-warning-border: var(--color-gold-3);
|
|
146
146
|
--color-warning-border-hover: var(--color-gold-4);
|
|
147
147
|
--color-warning-hover: var(--color-gold-7);
|
|
148
148
|
--color-warning-base: var(--color-gold-6);
|
|
149
|
-
--color-warning-active: var(--color-gold-
|
|
149
|
+
--color-warning-active: var(--color-gold-7);
|
|
150
150
|
--color-warning-text-hover: var(--color-gold-8);
|
|
151
151
|
--color-warning-text: var(--color-gold-9);
|
|
152
152
|
--color-warning-text-active: var(--color-gold-10);
|
|
153
153
|
|
|
154
|
-
--color-error-bg: var(--color-red-
|
|
154
|
+
--color-error-bg: var(--color-red-3);
|
|
155
155
|
--color-error-bg-hover: var(--color-red-2);
|
|
156
156
|
--color-error-border: var(--color-red-3);
|
|
157
157
|
--color-error-border-hover: var(--color-red-4);
|
|
158
158
|
--color-error-hover: var(--color-red-7);
|
|
159
159
|
--color-error-base: var(--color-red-6);
|
|
160
|
-
--color-error-active: var(--color-red-
|
|
160
|
+
--color-error-active: var(--color-red-7);
|
|
161
161
|
--color-error-text-hover: var(--color-red-8);
|
|
162
162
|
--color-error-text: var(--color-red-9);
|
|
163
163
|
--color-error-text-active: var(--color-red-10);
|
|
@@ -168,7 +168,7 @@ export const darkMode = css`
|
|
|
168
168
|
--color-info-border-hover: var(--color-blue-4);
|
|
169
169
|
--color-info-hover: var(--color-blue-7);
|
|
170
170
|
--color-info-base: var(--color-blue-6);
|
|
171
|
-
--color-info-active: var(--color-blue-
|
|
171
|
+
--color-info-active: var(--color-blue-7);
|
|
172
172
|
--color-info-text-hover: var(--color-blue-8);
|
|
173
173
|
--color-info-text: var(--color-blue-9);
|
|
174
174
|
--color-info-text-active: var(--color-blue-10);
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export const getCssColorVariable = (
|
|
2
|
-
color
|
|
1
|
+
export const getCssColorVariable = (
|
|
2
|
+
color: string | undefined,
|
|
3
|
+
defaultValue = 'currentColor',
|
|
4
|
+
): string => (color?.startsWith('--') ? `var(${color})` : color || defaultValue);
|