Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement site redesign with dark mode #11172

Closed
wants to merge 61 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
8239021
Implement site redesign with dark mode
parlough Sep 24, 2024
0a7a7d5
Fix sidenav interaction styles
parlough Sep 24, 2024
7397265
Don't use box shadow for header in dark mode
parlough Sep 24, 2024
d234a08
Increase max width of cookie notice
parlough Sep 24, 2024
bf07e08
Prevent content styles from overriding more specific ones
parlough Sep 24, 2024
4373e84
Fix content bottom margin and next button positioning
parlough Sep 24, 2024
268afdc
Add a few interactivity styles and fix side menu background
parlough Sep 24, 2024
d5ff1d5
Improve consistency and accessibility of more variable colors
parlough Sep 25, 2024
b14ef9e
Fix Material 3 catalog cards
parlough Sep 25, 2024
9fe3e86
Address various style TODOs and renames
parlough Sep 25, 2024
eaad7d6
Fix card interaction styles
parlough Sep 25, 2024
cd96dec
Merge branch 'main' into feat/site-redesign
parlough Sep 25, 2024
d328812
Merge branch 'main' into feat/site-redesign
parlough Sep 25, 2024
1f808c7
Properly align centered figure containers
parlough Sep 25, 2024
8b745a0
Slightly increase max width of primary content
parlough Sep 25, 2024
1aa8849
Increase contrast of background and various elements
parlough Sep 25, 2024
59cd08b
Improve and increase spacing
parlough Sep 25, 2024
839e903
Improve code block colors and sizing
parlough Sep 25, 2024
6b9ddc2
Fix rows on platform adaptations page
parlough Sep 25, 2024
90a75a6
Fix format of various tables
parlough Sep 25, 2024
bf7fea1
Merge branch 'main' into feat/site-redesign
parlough Sep 26, 2024
4863637
Adjust color and sizing of Flutter workmark
parlough Sep 26, 2024
f1a80a4
Add missing brand guidelines button and improve icon spacing
parlough Sep 26, 2024
f9f92e9
Merge branch 'main' into feat/site-redesign
parlough Sep 26, 2024
f6bcfba
Merge branch 'main' into feat/site-redesign
parlough Sep 26, 2024
a6563c8
Merge branch 'main' into feat/site-redesign
parlough Sep 27, 2024
a455ee0
Separate docs and homepage links visually
parlough Sep 27, 2024
1e4b1bb
Add a dropdown for theme and extra links
parlough Sep 27, 2024
99262cb
Use variable for most border radii
parlough Sep 28, 2024
868ce5c
Standardize interaction styles for icon buttons
parlough Sep 28, 2024
651683f
Add back focus search with slash
parlough Sep 28, 2024
d44cb28
Fix HTML error in new dropdown menus
parlough Sep 28, 2024
fa55891
Fix content escaping main body
parlough Sep 30, 2024
61dfcba
Reposition search bar
parlough Sep 30, 2024
afa6cd7
Use util for interaction styles
parlough Sep 30, 2024
58cdd6c
Merge branch 'main' into feat/site-redesign
parlough Oct 1, 2024
3cdd9af
Add scroll margins for footnote anchors
parlough Oct 1, 2024
751fded
Better match spacing of Flutter wordmark
parlough Oct 1, 2024
3e2fcb2
Improve spacing of 404 page
parlough Oct 1, 2024
dec386f
Merge branch 'main' into feat/site-redesign
parlough Oct 9, 2024
5f686e9
Merge branch 'main' into feat/site-redesign
parlough Oct 18, 2024
9f1dad9
Merge branch 'main' into feat/site-redesign
parlough Oct 22, 2024
c0bd272
Merge branch 'main' into feat/site-redesign
parlough Oct 22, 2024
a57ca09
Adjust some spacing and breakpoints
parlough Oct 22, 2024
66eb68b
Merge branch 'main' into feat/site-redesign
parlough Oct 23, 2024
aaef2c2
Fix sizing on 404 page
parlough Oct 23, 2024
63e1216
Implement similar sidenav style fixes from main
parlough Oct 23, 2024
916cd8a
Misc style changes and fixes
parlough Oct 23, 2024
56bd3fc
Merge branch 'main' into feat/site-redesign
parlough Dec 3, 2024
cda95a3
Update dependencies again
parlough Dec 3, 2024
02393eb
Merge branch 'main' into feat/site-redesign
parlough Jan 1, 2025
47d3ce1
Disable toggling sidenav in wide layout for now
parlough Jan 1, 2025
88425af
Simplify implementation of social footer icons
parlough Jan 1, 2025
8423ef4
Misc style and page load improvements
parlough Jan 1, 2025
cd47098
Fix dark mode code highlighting
parlough Jan 1, 2025
87fee62
Use less distracting admonition style
parlough Jan 1, 2025
d51b892
Remove accidentally included local CSS file
parlough Jan 1, 2025
c7c5682
Lighten the site accent colors
parlough Jan 1, 2025
6065812
Make script initialization more resilient to order
parlough Jan 1, 2025
bd21b8a
A tiny bit lighter
parlough Jan 1, 2025
876dd53
Fix alignment of trailing topnav icons
parlough Jan 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lighten the site accent colors
parlough committed Jan 1, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c7c56826c7d1b6374b414d97efc83838a3c4f044
8 changes: 4 additions & 4 deletions src/_11ty/syntax/dash-dark.ts
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ export default {
{
scope: ['comment', 'punctuation.definition.comment'],
settings: {
foreground: '#8b95a7',
foreground: '#8B95A7',
},
},
{
@@ -56,7 +56,7 @@ export default {
'variable.language',
],
settings: {
foreground: '#E5C07B',
foreground: '#FF897E',
},
},
{
@@ -82,7 +82,7 @@ export default {
'entity.other.attribute-name',
],
settings: {
foreground: '#C678DD',
foreground: '#B581FF',
},
},
{
@@ -97,7 +97,7 @@ export default {
'entity.name.tag',
],
settings: {
foreground: '#61AFEF',
foreground: '#1A86FF',
},
},
{
2 changes: 1 addition & 1 deletion src/_11ty/syntax/dash-light.ts
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ export default {
'entity.name.tag',
],
settings: {
foreground: '#0468D7',
foreground: '#146BCD',
},
},
{
4 changes: 2 additions & 2 deletions src/_sass/base/_content.scss
Original file line number Diff line number Diff line change
@@ -59,11 +59,11 @@ main {
margin-bottom: 1rem;

&:hover {
color: #0468d7;
color: var(--site-primary);
}

&:active {
color: #03448c;
color: color-mix(in srgb, var(--site-primary), #000 16%);
}
}

34 changes: 17 additions & 17 deletions src/_sass/base/_root.scss
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ body {
--site-surface-variant: rgb(222 226 242);
--site-on-surface-variant: rgb(66 71 83);

--site-primary: rgb(0 69 148);
--site-primary: #146bcd;
--site-surface-tint: rgb(0 91 191);
--site-on-primary: rgb(255 255 255);

@@ -21,17 +21,17 @@ body {
--site-on-primary-container: rgb(255 255 255);
--site-secondary: rgb(72 94 137);
--site-on-secondary: rgb(255 255 255);
--site-secondary-container: rgb(192 211 255);
--site-on-secondary-container: rgb(39 62 103);
--site-secondary-container: rgb(194 229 255);
--site-on-secondary-container: rgb(10 10 10);

--site-surface-container-lowest: rgb(255 255 255);
--site-surface-container-low: rgb(242 243 253); // Outside content
--site-surface-container: rgb(236 237 247); // Card background
--site-surface-container-high: rgb(230 232 241); // Search, button, modal
--site-surface-container-highest: rgb(225 226 236); // (bright) button
--site-surface-container-low: rgb(242, 246, 252); // Outside content
--site-surface-container: rgb(237, 241, 247); // Card background
--site-surface-container-high: rgb(230, 234, 242); // Search, button, modal
--site-surface-container-highest: rgb(225, 229, 237); // (bright) button

--site-outline: rgb(114 119 133); // Button border
--site-outline-variant: rgb(194 198 214);
--site-outline: rgb(114, 120, 133); // Button border
--site-outline-variant: rgb(195, 201, 214);

--site-interaction-base-values: 0 0 0;

@@ -54,7 +54,7 @@ body {
--site-surface-variant: rgb(66 71 83); // Divider
--site-on-surface-variant: rgb(194 198 214);

--site-primary: rgb(172 199 255);
--site-primary: #1a86ff;
--site-surface-tint: rgb(172 199 255);
--site-on-primary: rgb(0 47 104);

@@ -65,17 +65,17 @@ body {
--site-on-primary-container: rgb(255 255 255);
--site-secondary: rgb(176 199 248);
--site-on-secondary: rgb(24 48 88);
--site-secondary-container: rgb(38 61 102);
--site-on-secondary-container: rgb(188 209 255);
--site-secondary-container: rgb(22 83 153);
--site-on-secondary-container: rgb(225 226 236);

--site-surface-container-lowest: rgb(11 14 21);
--site-surface-container-lowest: rgb(11, 14, 20);
--site-surface-container-low: rgb(25 28 34); // Outside content
--site-surface-container: rgb(29 32 38); // Card background
--site-surface-container-high: rgb(39 42 49); // Search, button, modal
--site-surface-container-highest: rgb(50 53 60); // (bright) button
--site-surface-container-high: rgb(39, 42, 48); // Search, button, modal
--site-surface-container-highest: rgb(51, 54, 61); // (bright) button

--site-outline: rgb(140 144 159); // Button border
--site-outline-variant: rgb(66 71 83);
--site-outline: rgb(139, 145, 158); // Button border
--site-outline-variant: rgb(67, 73, 84);

--site-interaction-base-values: 255 255 255;

2 changes: 1 addition & 1 deletion src/_sass/components/_asides.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aside.alert {
padding: 0.75rem;
border-left: solid 0.25rem var(--site-outline-variant);
background-color: var(--site-surface-container-low);
background-color: var(--site-surface-container);
--alert-title-color: var(--site-on-surface);

.alert-header {
2 changes: 1 addition & 1 deletion src/_sass/components/_breadcrumbs.scss
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
margin-bottom: 1rem;

> ol {
background-color: var(--site-surface-container-high);
background-color: var(--site-surface-container);
border-radius: var(--site-square-radius);
padding: 0.375rem;

4 changes: 2 additions & 2 deletions src/_sass/components/_code.scss
Original file line number Diff line number Diff line change
@@ -95,12 +95,12 @@ pre {
border-radius: var(--site-square-radius);

&:hover, &:focus-visible {
color: #0468D7;
color: var(--site-primary);
opacity: 1;
}

&:active {
color: #043875;
color: color-mix(in srgb, var(--site-primary), #000 16%);
}
}
}
8 changes: 4 additions & 4 deletions src/_sass/components/_dropdown.scss
Original file line number Diff line number Diff line change
@@ -47,21 +47,21 @@
&:not(.auto-mode):not(.dark-mode) {
#theme-menu button[data-theme='light'] {
background-color: var(--site-secondary-container);
color: var(--site-on-secondary-container);
color: var(--site-on-secondary-container);
}
}

&.dark-mode:not(.auto-mode) {
#theme-menu button[data-theme='dark'] {
background-color: var(--site-secondary-container);
color: var(--site-on-secondary-container);
color: var(--site-on-secondary-container);
}
}

&.auto-mode {
#theme-menu button[data-theme='auto'] {
background-color: var(--site-secondary-container);
color: var(--site-on-secondary-container);
color: var(--site-on-secondary-container);
}
}
}
2 changes: 1 addition & 1 deletion src/_sass/components/_expansion-list.scss
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@
.expansion-panel-body {
margin: auto;
width: 90%;
border-top: .05rem solid rgba(0, 0, 0, 0.125);
border-top: 0.05rem solid var(--site-outline-variant);

p {
margin-top: 1.5rem;
2 changes: 1 addition & 1 deletion src/_sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@
color: var(--site-on-surface-variant);

&:hover {
color: #0468d7;
color: var(--site-primary);
}
}
}
4 changes: 2 additions & 2 deletions src/_sass/components/_side-menu.scss
Original file line number Diff line number Diff line change
@@ -75,11 +75,11 @@
padding: 0.2rem;

&:hover {
color: #0468d7;
color: var(--site-primary);
}

&:active {
color: #03448c;
color: color-mix(in srgb, var(--site-primary), #000 16%);
}
}
}