@@ -2,14 +2,9 @@ import type { SerializedStyles } from '@emotion/react';
2
2
import { css } from '@emotion/react' ;
3
3
import type { OphanComponent } from '@guardian/libs' ;
4
4
import {
5
- border ,
6
- brandAlt ,
7
- brandText ,
8
5
from ,
9
- neutral ,
10
- news ,
11
6
palette ,
12
- text ,
7
+ palette as sourcePalette ,
13
8
textSans ,
14
9
until ,
15
10
visuallyHidden ,
@@ -90,7 +85,7 @@ const displayNone = css`
90
85
91
86
const linkStyles = css `
92
87
${ textSans . small ( ) } ;
93
- color : ${ text . anchorSecondary } ;
88
+ color : ${ sourcePalette . neutral [ 7 ] } ;
94
89
position: relative;
95
90
transition: color 80ms ease- out;
96
91
margin: -1px 0 0 0;
@@ -99,7 +94,7 @@ const linkStyles = css`
99
94
padding: 10px 18px 15px 30px;
100
95
101
96
: hover {
102
- background- color : ${ neutral [ 93 ] } ;
97
+ background- color : ${ sourcePalette . neutral [ 93 ] } ;
103
98
text- decor ation: none;
104
99
}
105
100
@@ -109,7 +104,7 @@ const linkStyles = css`
109
104
110
105
: befor e {
111
106
content: '' ;
112
- bor der- to p: 1px solid ${ border . secondary } ;
107
+ bor der- to p: 1px solid ${ sourcePalette . neutral [ 86 ] } ;
113
108
dis play: block;
114
109
position: absolute;
115
110
to p: 0px;
@@ -123,7 +118,7 @@ const linkActive = css`
123
118
124
119
: after {
125
120
content : '' ;
126
- border : 2px solid ${ news [ 400 ] } ;
121
+ border : 2px solid ${ sourcePalette . news [ 400 ] } ;
127
122
border-top : 0px ;
128
123
border-right : 0px ;
129
124
position : absolute;
@@ -149,15 +144,15 @@ const buttonStyles = css`
149
144
bor der: none;
150
145
/* Design System: The buttons should be components that handle their own layout using primitives */
151
146
line-height: 1.2;
152
- color : ${ brandText . primary } ;
147
+ color : ${ sourcePalette . neutral [ 100 ] } ;
153
148
transition: color 80ms ease- out;
154
149
padding: 0px 10px 6px 5px;
155
150
margin: 1px 0 0;
156
151
text- decor ation: none;
157
152
position: relative;
158
153
159
154
: hover {
160
- color : ${ brandAlt [ 400 ] } ;
155
+ color : ${ sourcePalette . brandAlt [ 400 ] } ;
161
156
162
157
: after {
163
158
transfor m: translateY(0) rotate(45deg);
0 commit comments