@redocly/theme 0.65.0-next.2 → 0.65.0-next.3
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/components/Banner/Banner.js +10 -2
- package/lib/components/Banner/variables.js +8 -1
- package/lib/components/Markdown/styles/links.js +2 -1
- package/lib/components/PageActions/PageActions.js +1 -0
- package/lib/core/styles/dark.js +3 -3
- package/lib/core/styles/global.js +9 -8
- package/lib/core/styles/palette.dark.js +4 -0
- package/lib/core/styles/palette.js +23 -0
- package/lib/markdoc/components/Cards/Card.js +1 -0
- package/package.json +1 -1
- package/src/components/Banner/Banner.tsx +11 -3
- package/src/components/Banner/variables.ts +8 -1
- package/src/components/Markdown/styles/links.ts +2 -1
- package/src/components/PageActions/PageActions.tsx +1 -0
- package/src/core/styles/dark.ts +3 -3
- package/src/core/styles/global.ts +9 -8
- package/src/core/styles/palette.dark.ts +4 -0
- package/src/core/styles/palette.ts +23 -0
- package/src/markdoc/components/Cards/Card.tsx +1 -0
|
@@ -128,7 +128,7 @@ function Banner({ className }) {
|
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
130
|
return (react_1.default.createElement(BannerWrapper, { ref: bannerRef, "data-component-name": "Banner/Banner", className: className, "$color": displayBanner.color, "$isVisible": isVisible },
|
|
131
|
-
react_1.default.createElement(BannerContent,
|
|
131
|
+
react_1.default.createElement(BannerContent, { "$color": displayBanner.color },
|
|
132
132
|
react_1.default.createElement(contexts_1.MarkdownLinkContext.Provider, { value: markdownLinkContextValue },
|
|
133
133
|
react_1.default.createElement(Markdown_1.Markdown, { compact: true }, markdownContent))),
|
|
134
134
|
displayBanner.dismissible && (react_1.default.createElement(DismissButton, { variant: "ghost", size: "var(--banner-button-size)", icon: react_1.default.createElement(CloseIcon_1.CloseIcon, { color: `var(--banner-${displayBanner.color}-icon-color)`, size: "16px" }), onClick: () => {
|
|
@@ -149,7 +149,15 @@ const BannerContent = styled_components_1.default.div `
|
|
|
149
149
|
|
|
150
150
|
a:not([role='button']) {
|
|
151
151
|
color: var(--banner-link-color);
|
|
152
|
-
text-decoration: var(--banner-link-decoration);
|
|
152
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration)`};
|
|
153
|
+
|
|
154
|
+
&:hover, &:focus {
|
|
155
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration-hover)`};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:visited {
|
|
159
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration)`};
|
|
160
|
+
}
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
[data-component-name='Button/Button'] {
|
|
@@ -19,7 +19,6 @@ exports.banner = (0, styled_components_1.css) `
|
|
|
19
19
|
--banner-button-icon-right-padding: 1px 10px 1px var(--spacing-sm); // @presenter Spacing
|
|
20
20
|
--banner-button-margin: 0 var(--spacing-xs); // @presenter Spacing
|
|
21
21
|
--banner-padding: var(--spacing-xs); // @presenter Spacing
|
|
22
|
-
--banner-link-decoration: var(--link-decoration-hover);
|
|
23
22
|
--banner-min-height: 38px;
|
|
24
23
|
--banner-gap: var(--spacing-xxs); // @presenter Spacing
|
|
25
24
|
|
|
@@ -27,20 +26,28 @@ exports.banner = (0, styled_components_1.css) `
|
|
|
27
26
|
--banner-info-text-color: var(--color-static-white); // @presenter Color
|
|
28
27
|
--banner-info-icon-color: var(--color-static-white); // @presenter Color
|
|
29
28
|
--banner-info-link-color: var(--banner-info-text-color); // @presenter Color
|
|
29
|
+
--banner-info-link-decoration: underline 1px var(--banner-info-link-color);
|
|
30
|
+
--banner-info-link-decoration-hover: underline 2px var(--banner-info-link-color);
|
|
30
31
|
|
|
31
32
|
--banner-success-bg-color: var(--color-success-base); // @presenter Color
|
|
32
33
|
--banner-success-text-color: var(--color-static-white); // @presenter Color
|
|
33
34
|
--banner-success-icon-color: var(--color-static-white); // @presenter Color
|
|
34
35
|
--banner-success-link-color: var(--banner-success-text-color); // @presenter Color
|
|
36
|
+
--banner-success-link-decoration: underline 1px var(--banner-success-link-color);
|
|
37
|
+
--banner-success-link-decoration-hover: underline 2px var(--banner-success-link-color);
|
|
35
38
|
|
|
36
39
|
--banner-warning-bg-color: var(--color-warning-base); // @presenter Color
|
|
37
40
|
--banner-warning-text-color: var(--color-black); // @presenter Color
|
|
38
41
|
--banner-warning-icon-color: var(--color-black); // @presenter Color
|
|
39
42
|
--banner-warning-link-color: var(--banner-warning-text-color); // @presenter Color
|
|
43
|
+
--banner-warning-link-decoration: underline 1px var(--banner-warning-link-color);
|
|
44
|
+
--banner-warning-link-decoration-hover: underline 2px var(--banner-warning-link-color);
|
|
40
45
|
|
|
41
46
|
--banner-error-bg-color: var(--color-error-base); // @presenter Color
|
|
42
47
|
--banner-error-text-color: var(--color-static-white); // @presenter Color
|
|
43
48
|
--banner-error-icon-color: var(--color-static-white); // @presenter Color
|
|
44
49
|
--banner-error-link-color: var(--banner-error-text-color); // @presenter Color
|
|
50
|
+
--banner-error-link-decoration: underline 1px var(--banner-error-link-color);
|
|
51
|
+
--banner-error-link-decoration-hover: underline 2px var(--banner-error-link-color);
|
|
45
52
|
`;
|
|
46
53
|
//# sourceMappingURL=variables.js.map
|
|
@@ -5,12 +5,13 @@ const styled_components_1 = require("styled-components");
|
|
|
5
5
|
exports.markdownLinksCss = (0, styled_components_1.css) `
|
|
6
6
|
a:not([role='button']) {
|
|
7
7
|
text-decoration: var(--link-decoration);
|
|
8
|
+
text-underline-offset: var(--link-underline-offset);
|
|
8
9
|
color: var(--link-color-primary);
|
|
9
10
|
font-weight: var(--link-font-weight);
|
|
10
11
|
|
|
11
12
|
&:visited {
|
|
12
13
|
color: var(--link-color-visited);
|
|
13
|
-
text-decoration: var(--link-visited
|
|
14
|
+
text-decoration: var(--link-decoration-visited);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&:hover,
|
|
@@ -112,6 +112,7 @@ const PageActionsWrapper = styled_components_1.default.div `
|
|
|
112
112
|
`;
|
|
113
113
|
const LinkMenuItem = (0, styled_components_1.default)(Link_1.Link) `
|
|
114
114
|
text-decoration: none;
|
|
115
|
+
--link-decoration: none;
|
|
115
116
|
--link-decoration-hover: none;
|
|
116
117
|
`;
|
|
117
118
|
const StyledDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown) `
|
package/lib/core/styles/dark.js
CHANGED
|
@@ -291,10 +291,10 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
291
291
|
* @tokens Links
|
|
292
292
|
*/
|
|
293
293
|
|
|
294
|
-
--link-color-primary: var(--color-
|
|
295
|
-
--link-color-primary-hover: var(--color-
|
|
294
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
295
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
296
296
|
--link-color-inverse: var(--color-blue-6); // @presenter Color
|
|
297
|
-
--link-color-visited: var(--color-
|
|
297
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* @tokens Tab Colors
|
|
@@ -567,18 +567,19 @@ const links = (0, styled_components_1.css) `
|
|
|
567
567
|
* @tokens Links
|
|
568
568
|
*/
|
|
569
569
|
|
|
570
|
-
--link-color-primary: var(--color-
|
|
571
|
-
--link-decoration:
|
|
572
|
-
--link-
|
|
570
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
571
|
+
--link-decoration: underline 1px var(--color-primary-base, var(--link-color-primary-legacy));
|
|
572
|
+
--link-underline-offset: 4px;
|
|
573
|
+
--link-font-weight: var(--font-weight-medium); // @presenter FontWeight
|
|
573
574
|
|
|
574
|
-
--link-color-primary-hover: var(--color-
|
|
575
|
-
--link-color-primary-pressed: var(--color-
|
|
576
|
-
--link-decoration-hover: underline;
|
|
575
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
576
|
+
--link-color-primary-pressed: var(--link-color-primary-palette, var(--link-color-primary-pressed-legacy));
|
|
577
|
+
--link-decoration-hover: underline 2px var(--color-primary-base, var(--link-color-primary-hover-legacy));
|
|
577
578
|
|
|
578
579
|
--link-color-inverse: var(--color-blue-5); // @presenter Color
|
|
579
580
|
|
|
580
|
-
--link-color-visited: var(--color-
|
|
581
|
-
--link-visited
|
|
581
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
582
|
+
--link-decoration-visited: underline 1px var(--color-primary-base, var(--link-color-visited-legacy));
|
|
582
583
|
|
|
583
584
|
// @tokens End
|
|
584
585
|
`;
|
|
@@ -194,6 +194,10 @@ function brandPaletteDark(palette) {
|
|
|
194
194
|
--admonition-default-border-color-legacy: var(--color-warm-grey-5);
|
|
195
195
|
|
|
196
196
|
--code-block-highlighted-bg-color-legacy: color-mix(in srgb, var(--color-warm-grey-4) 40%, transparent);
|
|
197
|
+
|
|
198
|
+
--link-color-primary-legacy: var(--color-blue-7);
|
|
199
|
+
--link-color-primary-hover-legacy: var(--color-blue-8);
|
|
200
|
+
--link-color-visited-legacy: var(--color-purple-8);
|
|
197
201
|
`;
|
|
198
202
|
}
|
|
199
203
|
}
|
|
@@ -18,6 +18,8 @@ function brandPaletteLight(palette) {
|
|
|
18
18
|
--color-brand-10: #555761; // @presenter Color
|
|
19
19
|
--color-brand-11: #6e6f7a; // @presenter Color
|
|
20
20
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
21
|
+
|
|
22
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
21
23
|
`;
|
|
22
24
|
case 'pink':
|
|
23
25
|
return (0, styled_components_1.css) `
|
|
@@ -33,6 +35,8 @@ function brandPaletteLight(palette) {
|
|
|
33
35
|
--color-brand-10: #6a3055; // @presenter Color
|
|
34
36
|
--color-brand-11: #4f2841; // @presenter Color
|
|
35
37
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
38
|
+
|
|
39
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
36
40
|
`;
|
|
37
41
|
case 'coral':
|
|
38
42
|
return (0, styled_components_1.css) `
|
|
@@ -48,6 +52,8 @@ function brandPaletteLight(palette) {
|
|
|
48
52
|
--color-brand-10: #6d3338; // @presenter Color
|
|
49
53
|
--color-brand-11: #4f282b; // @presenter Color
|
|
50
54
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
55
|
+
|
|
56
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
51
57
|
`;
|
|
52
58
|
case 'amber':
|
|
53
59
|
return (0, styled_components_1.css) `
|
|
@@ -63,6 +69,8 @@ function brandPaletteLight(palette) {
|
|
|
63
69
|
--color-brand-10: #71512e; // @presenter Color
|
|
64
70
|
--color-brand-11: #4f3c28; // @presenter Color
|
|
65
71
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
72
|
+
|
|
73
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
66
74
|
`;
|
|
67
75
|
case 'jade':
|
|
68
76
|
return (0, styled_components_1.css) `
|
|
@@ -78,6 +86,8 @@ function brandPaletteLight(palette) {
|
|
|
78
86
|
--color-brand-10: #2a6052; // @presenter Color
|
|
79
87
|
--color-brand-11: #284f45; // @presenter Color
|
|
80
88
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
89
|
+
|
|
90
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
81
91
|
`;
|
|
82
92
|
case 'cyan':
|
|
83
93
|
return (0, styled_components_1.css) `
|
|
@@ -93,6 +103,8 @@ function brandPaletteLight(palette) {
|
|
|
93
103
|
--color-brand-10: #285c67; // @presenter Color
|
|
94
104
|
--color-brand-11: #28484f; // @presenter Color
|
|
95
105
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
106
|
+
|
|
107
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
96
108
|
`;
|
|
97
109
|
case 'ocean':
|
|
98
110
|
return (0, styled_components_1.css) `
|
|
@@ -108,6 +120,8 @@ function brandPaletteLight(palette) {
|
|
|
108
120
|
--color-brand-10: #2d5472; // @presenter Color
|
|
109
121
|
--color-brand-11: #283e4f; // @presenter Color
|
|
110
122
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
123
|
+
|
|
124
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
111
125
|
`;
|
|
112
126
|
case 'indigo':
|
|
113
127
|
return (0, styled_components_1.css) `
|
|
@@ -123,6 +137,8 @@ function brandPaletteLight(palette) {
|
|
|
123
137
|
--color-brand-10: #303e6b; // @presenter Color
|
|
124
138
|
--color-brand-11: #28314f; // @presenter Color
|
|
125
139
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
140
|
+
|
|
141
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
126
142
|
`;
|
|
127
143
|
case 'iris':
|
|
128
144
|
return (0, styled_components_1.css) `
|
|
@@ -138,6 +154,8 @@ function brandPaletteLight(palette) {
|
|
|
138
154
|
--color-brand-10: #3a3a6a; // @presenter Color
|
|
139
155
|
--color-brand-11: #2e2e4f; // @presenter Color
|
|
140
156
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
157
|
+
|
|
158
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
141
159
|
`;
|
|
142
160
|
default:
|
|
143
161
|
return (0, styled_components_1.css) `
|
|
@@ -179,6 +197,11 @@ function brandPaletteLight(palette) {
|
|
|
179
197
|
--button-content-color-link-legacy: var(--link-color-primary); // @presenter Color
|
|
180
198
|
--button-content-color-link-hover-legacy: var(--link-color-primary-hover); // @presenter Color
|
|
181
199
|
--button-content-color-link-pressed-legacy: var(--link-color-primary-pressed); // @presenter Color
|
|
200
|
+
|
|
201
|
+
--link-color-primary-legacy: var(--color-blue-6); // @presenter Color
|
|
202
|
+
--link-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
|
|
203
|
+
--link-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
|
|
204
|
+
--link-color-visited-legacy: var(--color-purple-7); // @presenter Color
|
|
182
205
|
`;
|
|
183
206
|
}
|
|
184
207
|
}
|
|
@@ -98,6 +98,7 @@ const CardWrapper = styled_components_1.default.div.attrs(({ $isCardLink, $varia
|
|
|
98
98
|
text-decoration: none;
|
|
99
99
|
--md-paragraph-margin: 0;
|
|
100
100
|
--link-decoration-hover: none;
|
|
101
|
+
--link-decoration: none;
|
|
101
102
|
|
|
102
103
|
background-color: var(--card-bg-color);
|
|
103
104
|
border-width: var(--card-border-width);
|
package/package.json
CHANGED
|
@@ -138,7 +138,7 @@ export function Banner({ className }: BannerProps): JSX.Element | null {
|
|
|
138
138
|
$color={displayBanner.color}
|
|
139
139
|
$isVisible={isVisible}
|
|
140
140
|
>
|
|
141
|
-
<BannerContent>
|
|
141
|
+
<BannerContent $color={displayBanner.color}>
|
|
142
142
|
<MarkdownLinkContext.Provider value={markdownLinkContextValue}>
|
|
143
143
|
<Markdown compact>{markdownContent}</Markdown>
|
|
144
144
|
</MarkdownLinkContext.Provider>
|
|
@@ -159,7 +159,7 @@ export function Banner({ className }: BannerProps): JSX.Element | null {
|
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
const BannerContent = styled.div
|
|
162
|
+
const BannerContent = styled.div<{ $color: DisplayBanner['color'] }>`
|
|
163
163
|
flex: 1;
|
|
164
164
|
display: flex;
|
|
165
165
|
align-items: center;
|
|
@@ -172,7 +172,15 @@ const BannerContent = styled.div`
|
|
|
172
172
|
|
|
173
173
|
a:not([role='button']) {
|
|
174
174
|
color: var(--banner-link-color);
|
|
175
|
-
text-decoration: var(--banner-link-decoration);
|
|
175
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration)`};
|
|
176
|
+
|
|
177
|
+
&:hover, &:focus {
|
|
178
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration-hover)`};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:visited {
|
|
182
|
+
text-decoration: ${({ $color }) => $color && `var(--banner-${$color}-link-decoration)`};
|
|
183
|
+
}
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
[data-component-name='Button/Button'] {
|
|
@@ -17,7 +17,6 @@ export const banner = css`
|
|
|
17
17
|
--banner-button-icon-right-padding: 1px 10px 1px var(--spacing-sm); // @presenter Spacing
|
|
18
18
|
--banner-button-margin: 0 var(--spacing-xs); // @presenter Spacing
|
|
19
19
|
--banner-padding: var(--spacing-xs); // @presenter Spacing
|
|
20
|
-
--banner-link-decoration: var(--link-decoration-hover);
|
|
21
20
|
--banner-min-height: 38px;
|
|
22
21
|
--banner-gap: var(--spacing-xxs); // @presenter Spacing
|
|
23
22
|
|
|
@@ -25,20 +24,28 @@ export const banner = css`
|
|
|
25
24
|
--banner-info-text-color: var(--color-static-white); // @presenter Color
|
|
26
25
|
--banner-info-icon-color: var(--color-static-white); // @presenter Color
|
|
27
26
|
--banner-info-link-color: var(--banner-info-text-color); // @presenter Color
|
|
27
|
+
--banner-info-link-decoration: underline 1px var(--banner-info-link-color);
|
|
28
|
+
--banner-info-link-decoration-hover: underline 2px var(--banner-info-link-color);
|
|
28
29
|
|
|
29
30
|
--banner-success-bg-color: var(--color-success-base); // @presenter Color
|
|
30
31
|
--banner-success-text-color: var(--color-static-white); // @presenter Color
|
|
31
32
|
--banner-success-icon-color: var(--color-static-white); // @presenter Color
|
|
32
33
|
--banner-success-link-color: var(--banner-success-text-color); // @presenter Color
|
|
34
|
+
--banner-success-link-decoration: underline 1px var(--banner-success-link-color);
|
|
35
|
+
--banner-success-link-decoration-hover: underline 2px var(--banner-success-link-color);
|
|
33
36
|
|
|
34
37
|
--banner-warning-bg-color: var(--color-warning-base); // @presenter Color
|
|
35
38
|
--banner-warning-text-color: var(--color-black); // @presenter Color
|
|
36
39
|
--banner-warning-icon-color: var(--color-black); // @presenter Color
|
|
37
40
|
--banner-warning-link-color: var(--banner-warning-text-color); // @presenter Color
|
|
41
|
+
--banner-warning-link-decoration: underline 1px var(--banner-warning-link-color);
|
|
42
|
+
--banner-warning-link-decoration-hover: underline 2px var(--banner-warning-link-color);
|
|
38
43
|
|
|
39
44
|
--banner-error-bg-color: var(--color-error-base); // @presenter Color
|
|
40
45
|
--banner-error-text-color: var(--color-static-white); // @presenter Color
|
|
41
46
|
--banner-error-icon-color: var(--color-static-white); // @presenter Color
|
|
42
47
|
--banner-error-link-color: var(--banner-error-text-color); // @presenter Color
|
|
48
|
+
--banner-error-link-decoration: underline 1px var(--banner-error-link-color);
|
|
49
|
+
--banner-error-link-decoration-hover: underline 2px var(--banner-error-link-color);
|
|
43
50
|
`;
|
|
44
51
|
|
|
@@ -3,12 +3,13 @@ import { css } from 'styled-components';
|
|
|
3
3
|
export const markdownLinksCss = css`
|
|
4
4
|
a:not([role='button']) {
|
|
5
5
|
text-decoration: var(--link-decoration);
|
|
6
|
+
text-underline-offset: var(--link-underline-offset);
|
|
6
7
|
color: var(--link-color-primary);
|
|
7
8
|
font-weight: var(--link-font-weight);
|
|
8
9
|
|
|
9
10
|
&:visited {
|
|
10
11
|
color: var(--link-color-visited);
|
|
11
|
-
text-decoration: var(--link-visited
|
|
12
|
+
text-decoration: var(--link-decoration-visited);
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
&:hover,
|
package/src/core/styles/dark.ts
CHANGED
|
@@ -294,10 +294,10 @@ export const darkMode = css`
|
|
|
294
294
|
* @tokens Links
|
|
295
295
|
*/
|
|
296
296
|
|
|
297
|
-
--link-color-primary: var(--color-
|
|
298
|
-
--link-color-primary-hover: var(--color-
|
|
297
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
298
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
299
299
|
--link-color-inverse: var(--color-blue-6); // @presenter Color
|
|
300
|
-
--link-color-visited: var(--color-
|
|
300
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* @tokens Tab Colors
|
|
@@ -572,18 +572,19 @@ const links = css`
|
|
|
572
572
|
* @tokens Links
|
|
573
573
|
*/
|
|
574
574
|
|
|
575
|
-
--link-color-primary: var(--color-
|
|
576
|
-
--link-decoration:
|
|
577
|
-
--link-
|
|
575
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
576
|
+
--link-decoration: underline 1px var(--color-primary-base, var(--link-color-primary-legacy));
|
|
577
|
+
--link-underline-offset: 4px;
|
|
578
|
+
--link-font-weight: var(--font-weight-medium); // @presenter FontWeight
|
|
578
579
|
|
|
579
|
-
--link-color-primary-hover: var(--color-
|
|
580
|
-
--link-color-primary-pressed: var(--color-
|
|
581
|
-
--link-decoration-hover: underline;
|
|
580
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
581
|
+
--link-color-primary-pressed: var(--link-color-primary-palette, var(--link-color-primary-pressed-legacy));
|
|
582
|
+
--link-decoration-hover: underline 2px var(--color-primary-base, var(--link-color-primary-hover-legacy));
|
|
582
583
|
|
|
583
584
|
--link-color-inverse: var(--color-blue-5); // @presenter Color
|
|
584
585
|
|
|
585
|
-
--link-color-visited: var(--color-
|
|
586
|
-
--link-visited
|
|
586
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
587
|
+
--link-decoration-visited: underline 1px var(--color-primary-base, var(--link-color-visited-legacy));
|
|
587
588
|
|
|
588
589
|
// @tokens End
|
|
589
590
|
`;
|
|
@@ -192,6 +192,10 @@ function brandPaletteDark(palette: string | undefined): FlattenSimpleInterpolati
|
|
|
192
192
|
--admonition-default-border-color-legacy: var(--color-warm-grey-5);
|
|
193
193
|
|
|
194
194
|
--code-block-highlighted-bg-color-legacy: color-mix(in srgb, var(--color-warm-grey-4) 40%, transparent);
|
|
195
|
+
|
|
196
|
+
--link-color-primary-legacy: var(--color-blue-7);
|
|
197
|
+
--link-color-primary-hover-legacy: var(--color-blue-8);
|
|
198
|
+
--link-color-visited-legacy: var(--color-purple-8);
|
|
195
199
|
`;
|
|
196
200
|
}
|
|
197
201
|
}
|
|
@@ -16,6 +16,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
16
16
|
--color-brand-10: #555761; // @presenter Color
|
|
17
17
|
--color-brand-11: #6e6f7a; // @presenter Color
|
|
18
18
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
19
|
+
|
|
20
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
19
21
|
`;
|
|
20
22
|
case 'pink':
|
|
21
23
|
return css`
|
|
@@ -31,6 +33,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
31
33
|
--color-brand-10: #6a3055; // @presenter Color
|
|
32
34
|
--color-brand-11: #4f2841; // @presenter Color
|
|
33
35
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
36
|
+
|
|
37
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
34
38
|
`;
|
|
35
39
|
case 'coral':
|
|
36
40
|
return css`
|
|
@@ -46,6 +50,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
46
50
|
--color-brand-10: #6d3338; // @presenter Color
|
|
47
51
|
--color-brand-11: #4f282b; // @presenter Color
|
|
48
52
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
53
|
+
|
|
54
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
49
55
|
`;
|
|
50
56
|
case 'amber':
|
|
51
57
|
return css`
|
|
@@ -61,6 +67,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
61
67
|
--color-brand-10: #71512e; // @presenter Color
|
|
62
68
|
--color-brand-11: #4f3c28; // @presenter Color
|
|
63
69
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
70
|
+
|
|
71
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
64
72
|
`;
|
|
65
73
|
case 'jade':
|
|
66
74
|
return css`
|
|
@@ -76,6 +84,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
76
84
|
--color-brand-10: #2a6052; // @presenter Color
|
|
77
85
|
--color-brand-11: #284f45; // @presenter Color
|
|
78
86
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
87
|
+
|
|
88
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
79
89
|
`;
|
|
80
90
|
case 'cyan':
|
|
81
91
|
return css`
|
|
@@ -91,6 +101,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
91
101
|
--color-brand-10: #285c67; // @presenter Color
|
|
92
102
|
--color-brand-11: #28484f; // @presenter Color
|
|
93
103
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
104
|
+
|
|
105
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
94
106
|
`;
|
|
95
107
|
case 'ocean':
|
|
96
108
|
return css`
|
|
@@ -106,6 +118,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
106
118
|
--color-brand-10: #2d5472; // @presenter Color
|
|
107
119
|
--color-brand-11: #283e4f; // @presenter Color
|
|
108
120
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
121
|
+
|
|
122
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
109
123
|
`;
|
|
110
124
|
case 'indigo':
|
|
111
125
|
return css`
|
|
@@ -121,6 +135,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
121
135
|
--color-brand-10: #303e6b; // @presenter Color
|
|
122
136
|
--color-brand-11: #28314f; // @presenter Color
|
|
123
137
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
138
|
+
|
|
139
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
124
140
|
`;
|
|
125
141
|
case 'iris':
|
|
126
142
|
return css`
|
|
@@ -136,6 +152,8 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
136
152
|
--color-brand-10: #3a3a6a; // @presenter Color
|
|
137
153
|
--color-brand-11: #2e2e4f; // @presenter Color
|
|
138
154
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
155
|
+
|
|
156
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
139
157
|
`;
|
|
140
158
|
default:
|
|
141
159
|
return css`
|
|
@@ -177,6 +195,11 @@ function brandPaletteLight(palette: string | undefined): FlattenSimpleInterpolat
|
|
|
177
195
|
--button-content-color-link-legacy: var(--link-color-primary); // @presenter Color
|
|
178
196
|
--button-content-color-link-hover-legacy: var(--link-color-primary-hover); // @presenter Color
|
|
179
197
|
--button-content-color-link-pressed-legacy: var(--link-color-primary-pressed); // @presenter Color
|
|
198
|
+
|
|
199
|
+
--link-color-primary-legacy: var(--color-blue-6); // @presenter Color
|
|
200
|
+
--link-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
|
|
201
|
+
--link-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
|
|
202
|
+
--link-color-visited-legacy: var(--color-purple-7); // @presenter Color
|
|
180
203
|
`;
|
|
181
204
|
}
|
|
182
205
|
}
|