Skip to content

Commit 5a501dc

Browse files
Add light mode support to GitHub authentication sign-in page (#251509)
* Initial plan for issue * Add light mode support to GitHub auth page using CSS media queries Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com> * use vscode colors --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com> Co-authored-by: Tyler Leonhardt <tyleonha@microsoft.com>
1 parent 5d83e82 commit 5a501dc

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

extensions/github-authentication/media/auth.css

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
:root {
7+
/* Dark theme colors (default) */
8+
--vscode-foreground: #CCCCCC;
9+
--vscode-editor-background: #1F1F1F;
10+
--vscode-error-foreground: #F85149;
11+
--vscode-textLink-foreground: #4daafc;
12+
}
13+
14+
/* Light theme colors */
15+
@media (prefers-color-scheme: light) {
16+
:root {
17+
--vscode-foreground: #3B3B3B;
18+
--vscode-editor-background: #FFFFFF;
19+
--vscode-error-foreground: #F85149;
20+
--vscode-textLink-foreground: #005FB8;
21+
}
22+
}
23+
624
html {
725
height: 100%;
826
}
@@ -14,9 +32,13 @@ body {
1432
padding: 15px 30px;
1533
display: flex;
1634
flex-direction: column;
17-
color: white;
35+
color: var(--vscode-foreground);
1836
font-family: "Segoe UI","Helvetica Neue","Helvetica",Arial,sans-serif;
19-
background-color: #2C2C32;
37+
background-color: var(--vscode-editor-background);
38+
}
39+
40+
a {
41+
color: var(--vscode-textLink-foreground);
2042
}
2143

2244
.branding {
@@ -28,7 +50,7 @@ body {
2850
font-size: 20px;
2951
letter-spacing: -0.04rem;
3052
font-weight: 400;
31-
color: white;
53+
color: var(--vscode-foreground);
3254
text-decoration: none;
3355
}
3456

@@ -60,7 +82,7 @@ body.error .error-message {
6082
}
6183

6284
.error-text {
63-
color: red;
85+
color: var(--vscode-error-foreground);
6486
font-size: 1rem;
6587
}
6688

extensions/github-authentication/media/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="message">
1616
Sign-in successful! Returning to <span class="app-name"></span>...
1717
<br><br>
18-
If you're not redirected automatically, <a href="#" id="fallback-link" style="color: #85CEFF;">click here</a> or close this page.
18+
If you're not redirected automatically, <a href="#" id="fallback-link">click here</a> or close this page.
1919
</div>
2020
<div class="error-message">
2121
An error occurred while signing in:

0 commit comments

Comments
 (0)