Skip to content

Commit c5df090

Browse files
committed
Replace --ntp color variables with --ds equivalents
1 parent 620970e commit c5df090

File tree

19 files changed

+89
-90
lines changed

19 files changed

+89
-90
lines changed

special-pages/pages/new-tab/app/activity/components/Activity.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
font-size: var(--title-3-em-font-size);
9999
font-weight: var(--title-3-em-font-weight);
100100
text-decoration: none;
101-
color: var(--ntp-text-normal);
101+
color: var(--ds-color-text-primary);
102102
height: 35px;
103103
display: flex;
104104
align-items: center;
@@ -109,7 +109,7 @@
109109
min-width: 0;
110110

111111
&:hover, &:focus-visible {
112-
color: var(--ntp-color-primary);
112+
color: var(--ds-color-accent-primary);
113113
.favicon {
114114
transform: scale(1.08)
115115
}
@@ -133,7 +133,7 @@
133133
background: transparent;
134134
padding: 0;
135135
margin: 0;
136-
color: var(--ntp-text-normal);
136+
color: var(--ds-color-text-primary);
137137
svg {
138138
position: absolute;
139139
top: 50%;
@@ -218,15 +218,15 @@
218218
font-size: var(--small-label-font-size);
219219
font-weight: var(--small-label-font-weight);
220220
line-height: var(--small-label-line-height);
221-
color: var(--ntp-text-normal);
221+
color: var(--ds-color-text-primary);
222222
text-decoration: none;
223223
min-width: 0;
224224
white-space: nowrap;
225225
overflow: hidden;
226226
text-overflow: ellipsis;
227227

228228
&:hover, &:focus-visible {
229-
color: var(--ntp-color-primary)
229+
color: var(--ds-color-accent-primary)
230230
}
231231

232232
&:hover .time {
@@ -238,7 +238,7 @@
238238
.time {
239239
flex-shrink: 0;
240240
margin-left: 8px;
241-
color: var(--ntp-text-muted);
241+
color: var(--ds-color-text-secondary);
242242
opacity: 0.6;
243243
font-size: var(--small-label-font-size);
244244
font-weight: var(--small-label-font-weight);

special-pages/pages/new-tab/app/activity/components/ActivityLegacy.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
font-size: var(--title-3-em-font-size);
101101
font-weight: var(--title-3-em-font-weight);
102102
text-decoration: none;
103-
color: var(--ntp-text-normal);
103+
color: var(--ds-color-text-primary);
104104
height: 35px;
105105
display: flex;
106106
align-items: center;
@@ -111,7 +111,7 @@
111111
min-width: 0;
112112

113113
&:hover, &:focus-visible {
114-
color: var(--ntp-color-primary);
114+
color: var(--ds-color-accent-primary);
115115
.favicon {
116116
transform: scale(1.08)
117117
}
@@ -135,7 +135,7 @@
135135
background: transparent;
136136
padding: 0;
137137
margin: 0;
138-
color: var(--ntp-text-normal);
138+
color: var(--ds-color-text-primary);
139139
svg {
140140
position: absolute;
141141
top: 50%;
@@ -224,15 +224,15 @@
224224
font-size: var(--small-label-font-size);
225225
font-weight: var(--small-label-font-weight);
226226
line-height: var(--small-label-line-height);
227-
color: var(--ntp-text-normal);
227+
color: var(--ds-color-text-primary);
228228
text-decoration: none;
229229
min-width: 0;
230230
white-space: nowrap;
231231
overflow: hidden;
232232
text-overflow: ellipsis;
233233

234234
&:hover, &:focus-visible {
235-
color: var(--ntp-color-primary)
235+
color: var(--ds-color-accent-primary)
236236
}
237237

238238
&:hover .time {
@@ -244,7 +244,7 @@
244244
.time {
245245
flex-shrink: 0;
246246
margin-left: 8px;
247-
color: var(--ntp-text-muted);
247+
color: var(--ds-color-text-secondary);
248248
opacity: 0.6;
249249
font-size: var(--small-label-font-size);
250250
font-weight: var(--small-label-font-weight);

special-pages/pages/new-tab/app/components/App.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ body[data-animate-background="true"] {
5555
height: 100vh;
5656
overflow: auto;
5757
grid-area: main;
58-
color: var(--ntp-text-normal);
58+
color: var(--ds-color-text-primary);
5959
}
6060

6161
/* WebKit-only fix for layout shift when scrollbar appears */
@@ -66,7 +66,7 @@ body[data-animate-background="true"] {
6666
}
6767

6868
.themeContext {
69-
color: var(--ntp-text-normal);
69+
color: var(--ds-color-text-primary);
7070
}
7171

7272
.mainLayout {
@@ -98,8 +98,8 @@ body[data-animate-background="true"] {
9898
}
9999

100100
.aside {
101-
color: var(--ntp-text-normal);
102-
background: var(--ntp-surfaces-panel-background-color);
101+
color: var(--ds-color-text-primary);
102+
background: var(--ds-color-surface-tertiary);
103103
grid-area: aside;
104104
height: 100vh;
105105
z-index: 1;
@@ -153,7 +153,7 @@ body[data-animate-background="true"] {
153153

154154
&::-webkit-scrollbar-thumb {
155155
background: rgb(108, 108, 108);
156-
border: 4px solid var(--ntp-surfaces-panel-background-color);
156+
border: 4px solid var(--ds-color-surface-tertiary);
157157
border-radius: 6px;
158158
}
159159
}
@@ -164,4 +164,4 @@ body[data-animate-background="true"] {
164164
.paddedErrorRecovery {
165165
margin-top: 1rem;
166166

167-
}
167+
}

special-pages/pages/new-tab/app/components/CompanyIcon.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414

1515
&:has([data-errored=true]) {
16-
outline: 1px solid var(--ntp-surface-border-color);
16+
outline: 1px solid var(--ds-color-container-border-primary);
1717
[data-theme=dark] & {
1818
outline-color: var(--color-white-at-9);
1919
}

special-pages/pages/new-tab/app/components/Components.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ body[data-display="components"] {
55
padding-right: 0;
66

77
a {
8-
color: var(--ntp-text-normal);
8+
color: var(--ds-color-text-primary);
99
}
1010
}
1111

1212
.main {
1313
height: 100vh;
1414
overflow: auto;
15-
color: var(--ntp-text-normal);
15+
color: var(--ds-color-text-primary);
1616
}
1717

1818

@@ -65,7 +65,7 @@ body:has(.tubeGrid):has([data-isolated=true]) {
6565
}
6666

6767
.itemLink {
68-
color: var(--ntp-text-normal);
68+
color: var(--ds-color-text-primary);
6969
padding: 0.2em 0.3em;
7070
border: 1px solid var(--color-gray-60);
7171
border-radius: var(--border-radius-xs);

special-pages/pages/new-tab/app/components/DismissButton.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
padding: 0;
88
line-height: 1;
99
background-color: transparent;
10-
color: var(--ntp-text-muted);
10+
color: var(--ds-color-text-secondary);
1111
border: none;
1212
border-radius: 50%;
1313
transition: all .3s;
@@ -26,7 +26,7 @@
2626

2727
&:active {
2828
background-color: var(--color-black-at-18);
29-
color: var(--ntp-text-normal);
29+
color: var(--ds-color-text-primary);
3030
}
3131

3232
&:disabled {

special-pages/pages/new-tab/app/components/ShowHide.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
display: flex;
77
justify-content: center;
88
align-items: center;
9-
color: var(--ntp-text-normal);
9+
color: var(--ds-color-text-primary);
1010

1111
> * {
1212
pointer-events: none;
@@ -35,7 +35,7 @@
3535
align-items: center;
3636
justify-content: center;
3737
box-shadow: 0px 2px 4px 0px var(--color-black-at-12), 0px 0px 3px 0px var(--color-black-at-18);
38-
color: var(--ntp-text-muted);
38+
color: var(--ds-color-text-secondary);
3939

4040
[data-theme="dark"] & {
4141
box-shadow: 0px 2px 4px 0px var(--color-white-at-6), 0px 0px 3px 0px var(--color-white-at-9);
@@ -48,7 +48,7 @@
4848
border-radius: 50%;
4949
padding-inline: 0;
5050
background-color: transparent;
51-
color: var(--ntp-text-muted);
51+
color: var(--ds-color-text-secondary);
5252

5353
.iconBlock {
5454
backdrop-filter: unset;
@@ -85,8 +85,8 @@
8585
font-size: var(--callout-font-size);
8686
font-weight: var(--callout-font-weight);
8787
line-height: var(--callout-line-height);
88-
border: 1px solid var(--ntp-surface-border-color);
89-
color: var(--ntp-text-muted);
88+
border: 1px solid var(--ds-color-container-border-primary);
89+
color: var(--ds-color-text-secondary);
9090
}
9191

9292
.fill {

special-pages/pages/new-tab/app/customizer/components/Customizer.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
.customizeButton {
99
backdrop-filter: blur(48px);
1010
background-color: var(--ntp-surface-background-color);
11-
border: 1px solid var(--ntp-surface-border-color);
11+
border: 1px solid var(--ds-color-container-border-primary);
1212
border-radius: var(--border-radius-sm);
1313
padding: var(--sp-2) var(--sp-3);
1414
cursor: pointer;
1515
display: flex;
1616
align-items: center;
1717
gap: calc(6 * var(--px-in-rem));
18-
color: var(--ntp-text-normal);
18+
color: var(--ds-color-text-primary);
1919

2020
[data-theme=dark] & {
2121
border-color: var(--color-white-at-9);

special-pages/pages/new-tab/app/customizer/components/CustomizerDrawerInner.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
width: 100%;
7777
}
7878
.borderedSection {
79-
border-top: 1px solid var(--ntp-surface-border-color);
79+
border-top: 1px solid var(--ds-color-container-border-primary);
8080
padding-top: calc(18 * var(--px-in-rem))
8181
}
8282
.sectionBody {
@@ -114,7 +114,7 @@
114114
justify-content: center;
115115
border: none;
116116
outline: none;
117-
box-shadow: 0 0 0 1px var(--ntp-surface-border-color) inset;
117+
box-shadow: 0 0 0 1px var(--ds-color-container-border-primary) inset;
118118

119119
&[aria-checked="true"] {
120120
box-shadow: var(--focus-ring-primary);
@@ -254,7 +254,7 @@
254254
justify-content: space-between;
255255
align-items: center;
256256
text-decoration: none;
257-
color: var(--ntp-color-primary);
257+
color: var(--ds-color-accent-primary);
258258
margin-bottom: var(--sp-3);
259259

260260
&:focus {

special-pages/pages/new-tab/app/favorites/components/Tile.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
.preview {
35-
color: var(--ntp-text-normal);
35+
color: var(--ds-color-text-primary);
3636
transform: scale(0.8);
3737
img {
3838
opacity: 0.8;

0 commit comments

Comments
 (0)