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

Docs Frontend Makeover #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lilnasy
Copy link

@lilnasy lilnasy commented Mar 24, 2025

Quick and dirty weekend pass at matching the design shared in discord.

image

Copy link

changeset-bot bot commented Mar 24, 2025

⚠️ No Changeset found

Latest commit: 924cc5b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here are just to make the screenshots comparable to the design mockups. To be reverted.

@@ -0,0 +1,208 @@
:root[data-theme=dark] {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, all changes are scoped to the dark theme, including the layout.

Comment on lines +6 to +11
.site-title.site-title {
scale: 1.3;
gap: 0.3rem;
padding-left: 1.25rem;
color: white;
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repeating the class name to increase specificity.

image

Comment on lines +27 to +29
mobile-starlight-toc > nav {
background-color: oklch(15% 0.0064 285.47);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
Appears only in the single column layout.

Comment on lines +31 to +34
header.header {
background-color: oklch(15% 0.0064 285.47);
outline: 2px solid oklch(31.44% 0.0145 274.42);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment on lines +147 to +161
sl-sidebar-state-persist > ul > li:has(> a) {
margin-top: initial;
&:first-child > a {
color: oklch(65.84% 0.2894 337.23);
background-color: initial;
border-radius: 4px;
outline: 2px solid oklch(65.84% 0.2894 337.23);
background-image: linear-gradient(to right, oklch(65.84% 0.2894 337.23 / 0.1), oklch(65.84% 0.2894 337.23 / 0.5));
}

&:first-child > a:is(:hover, :focus) {
background-image: radial-gradient(circle at top, oklch(65.84% 0.2894 337.23), oklch(49.84% 0.2894 337.23));
color: white;
}
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment on lines +163 to +190
sl-sidebar-state-persist ul > li > details > summary {
display: grid;
grid-auto-flow: column;
grid-template-columns: auto 1fr auto;
&::before {
content: "";
display: block;
grid-column: 2;
height: 2px;
background-image: linear-gradient(
to left,
oklch(35.19% 0.0207 269.43),
oklch(35.19% 0.0207 269.43 / 0)
);
}
&::after {
content: "";
grid-column: 3;
display: block;
width: 14px;
height: 14px;
background-color: oklch(35.19% 0.0207 269.43);
}
}

.caret {
display: none;
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment on lines +197 to +199
starlight-toc > nav > ul > li > a[aria-current="true"] {
color: white;
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment on lines +192 to +195
.group-label > .large, starlight-toc > nav > h2 {
color: oklch(87.3% 0 0);
text-transform: uppercase;
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment on lines +201 to +207
.sidebar-pane.sidebar-pane, .right-sidebar {
background-image: linear-gradient(
to bottom,
oklch(20% 0.0102 285.47) 0rem,
oklch(15% 0.0064 285.47) 26rem
);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fade effect for both the sidebars.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant