Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b650fe2
Match docs content width to homepage
aarongarciah May 21, 2026
d4dd939
Remove body background
aarongarciah May 27, 2026
fdf662c
Grid-based layout
aarongarciah May 27, 2026
0fdb3a4
Fixed everything
aarongarciah May 27, 2026
6e3d289
Fix table columns dimensions
aarongarciah May 27, 2026
97a6cb6
New "show code" button design
aarongarciah May 27, 2026
52df185
Move "View as Markdown" link below subtitle
aarongarciah May 27, 2026
f09bace
font-size 15-> 14, reduce sidebar items' height
aarongarciah May 27, 2026
614ce9c
Adjust spacing
aarongarciah May 27, 2026
b6ef703
Make demo bg gray
aarongarciah May 27, 2026
13f28f2
Update page bg
aarongarciah May 27, 2026
1c5a34e
Adjust colors to fix overflow gradient
aarongarciah May 27, 2026
c8504e1
Cleanup test code
aarongarciah May 28, 2026
29e9ca9
Avoid focus ring being cut
aarongarciah May 28, 2026
8e13a47
Prevent show/hide code button from obscuring the code
aarongarciah May 28, 2026
5c21cc4
Include show/hide code button in scrolling container
aarongarciah May 28, 2026
f923fa1
Fix gradient obscuring the border
aarongarciah May 28, 2026
f649b17
Prettier floating button
aarongarciah May 28, 2026
8c17c31
Tweak radius
aarongarciah May 28, 2026
139948e
Fix button border on dark mode
aarongarciah May 28, 2026
2dc1878
Adjust subtitle spacing
aarongarciah May 28, 2026
f9724f2
Twix
aarongarciah May 28, 2026
8be1daa
Fix media query
aarongarciah May 28, 2026
feb458b
Fix subtitle spacing
aarongarciah May 28, 2026
334dbde
Make show code button pill shaped
aarongarciah May 28, 2026
d1a2dee
Fix vertical alignment on cells
aarongarciah May 29, 2026
5a6996c
Fix header pointer events
aarongarciah May 29, 2026
5fbd8a6
Tweak sidebars outlines
aarongarciah May 29, 2026
bff37ca
Adjust padding bottom on sidebars
aarongarciah May 29, 2026
82214c4
Remove light color scheme media queries
aarongarciah May 29, 2026
7db3c2d
Hide demo tabs when there's only one file
aarongarciah May 29, 2026
a9f8978
wot
aarongarciah May 29, 2026
4a8a91d
Fix TOC alignment
aarongarciah May 29, 2026
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
113 changes: 33 additions & 80 deletions docs/src/app/(docs)/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,45 @@
position: relative; /* iOS 26 `position: absolute` backdrops */
min-width: 320px;
line-height: 1.5;
/* It's also the iOS footer overscroll background */
background-color: var(--color-background);
color: var(--color-foreground);
background-color: var(--color-content);
}
}

@layer components {
.RootLayout {
--content-layout-gap: 2.5rem;
--content-layout-max-width: 48rem;
--root-layout-padding-inline: 1.5rem;

z-index: 0;
position: relative;
padding-inline: var(--root-layout-padding-inline);

--root-layout-padding-x: 0rem;
padding-inline: var(--root-layout-padding-x);
@media (--md) {
--content-layout-gap: 3rem;
--root-layout-padding-inline: 3rem;
}

@media (--show-side-nav) {
--root-layout-padding-x: 3rem;

&::before,
&::after {
content: '';
position: absolute;
background-color: var(--color-gridline);
height: 1px;
right: 0;
left: 0;
}

&::before {
top: var(--header-height);
margin-top: -1px;
}

&::after {
bottom: var(--header-height);
margin-bottom: -1px;
z-index: 1;
}
--content-layout-max-width: 92.5rem;
--content-layout-width: min(
var(--content-layout-max-width),
calc(100% - var(--root-layout-padding-inline) - var(--root-layout-padding-inline))
);
--content-layout-inline-offset: calc((100% - var(--content-layout-width)) / 2);
--content-layout-column-width: calc(
(
var(--content-layout-width) - var(--content-layout-gap) - var(--content-layout-gap) -
var(--content-layout-gap) - var(--content-layout-gap) - var(--content-layout-gap) -
var(--content-layout-gap) - var(--content-layout-gap)
) /
8
);
--content-layout-sidebar-width: calc(
var(--content-layout-column-width) + var(--content-layout-column-width) +
var(--content-layout-gap)
);
}
}

Expand All @@ -52,91 +54,42 @@
flex-direction: column;
margin-inline: auto;
min-height: 100dvh;
max-width: calc(var(--breakpoint-max-layout-width) - var(--root-layout-padding-x) * 2);
max-width: var(--content-layout-max-width);

@media (--show-side-nav) {
padding-block: var(--header-height);
padding-bottom: 0;

&::before,
&::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 1px;
background-color: var(--color-gridline);
}

&::before {
left: 0;
margin-left: -1px;
}

&::after {
right: 0;
margin-right: -1px;
}
}
}

.RootLayoutContent {
display: flex;
flex-grow: 1;
flex-direction: column;
background-color: var(--color-content);
}

.RootLayoutFooter {
@media (--lg) {
background-color: var(--color-background);
width: 100%;
height: var(--header-height);
position: absolute;
z-index: 1;
left: 0;
right: 0;
bottom: 0;
}
}

.ContentLayoutRoot {
--sidebar-width: 17.5rem;

display: grid;
align-items: start;
gap: var(--content-layout-gap);
padding-top: var(--header-height);
padding-inline: 1.5rem;
grid-template-columns: 1fr;

@media (--sm) {
padding-inline: 2.5rem;
}
grid-template-columns: repeat(8, minmax(0, 1fr));

@media (--show-side-nav) {
padding-top: 0;
padding-inline: 0;
grid-template-columns: var(--sidebar-width) 1fr 3rem;
}

@media (--show-quick-nav) {
grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
}
}

.ContentLayoutMain {
grid-column: 1 / -1;
grid-row: 1;
min-width: 0;
max-width: 48rem;
width: 100%;

margin: 0 auto;

@media (--show-side-nav) {
margin: 0;
}

@media (--show-quick-nav) {
margin: 0;
}
}
}
2 changes: 1 addition & 1 deletion docs/src/app/(website)/css/components/Body.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
box-sizing: border-box;
margin: 0;
color: var(--gray-t2);
background-color: var(--gray-s1);
background-color: var(--color-content);
}
}
5 changes: 4 additions & 1 deletion docs/src/app/(website)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export default function Layout({ children }: React.PropsWithChildren) {
<GoogleAnalytics>
<div
className="bui-bs-bb bui-d-g bui-gtc-8 bui-g-8 bp2:bui-g-9"
style={{ maxWidth: '1480px', marginInline: 'auto' }}
style={{
maxWidth: '1480px',
marginInline: 'auto',
}}
>
<header className="bui-d-c">
<div className="bui-gcs-1 bui-gce-4">
Expand Down
1 change: 1 addition & 0 deletions docs/src/app/(website)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function Homepage() {
<div className="bui-gcs-1 bui-gce-9 bp3:bui-gcs-3">
<div className="Separator" role="separator" aria-hidden="true"></div>
</div>

<section className="bui-d-c">
<div className="bui-gcs-1 bui-gce-9 bp2:bui-gce-3">
<h2 className="Text sz-2">Made for the makers</h2>
Expand Down
12 changes: 6 additions & 6 deletions docs/src/components/Accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

border: 1px solid var(--gray-c2);
border-collapse: separate;
border-radius: var(--radius-6);
border-radius: var(--radius-12);
}

.AccordionHeaderRow {
border-radius: var(--radius-6) var(--radius-6) 0 0;
border-radius: calc(var(--radius-12) - 1px) calc(var(--radius-12) - 1px) 0 0;
border-bottom: 1px solid var(--gray-c2);
background-color: var(--gray-s2);
}
Expand Down Expand Up @@ -76,8 +76,8 @@
}

.AccordionItem:not([open]):last-child & {
border-bottom-left-radius: var(--radius-6);
border-bottom-right-radius: var(--radius-6);
border-bottom-left-radius: calc(var(--radius-12) - 1px);
border-bottom-right-radius: calc(var(--radius-12) - 1px);
}
}

Expand Down Expand Up @@ -110,8 +110,8 @@
}

.AccordionItem:last-child & {
border-bottom-left-radius: var(--radius-6);
border-bottom-right-radius: var(--radius-6);
border-bottom-left-radius: calc(var(--radius-12) - 1px);
border-bottom-right-radius: calc(var(--radius-12) - 1px);
}
}

Expand Down
12 changes: 6 additions & 6 deletions docs/src/components/CodeBlock/CodeBlock.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
align-self: stretch;
background-color: var(--color-content);
border: 1px solid var(--gray-c2);
border-radius: var(--radius-6);
border-radius: var(--radius-12);

& code .frame {
padding-left: 0.75rem;
Expand Down Expand Up @@ -35,8 +35,8 @@
padding-inline-end: 0.25rem;
height: 2.25rem;
gap: 1rem;
border-top-left-radius: inherit;
border-top-right-radius: inherit;
border-top-left-radius: calc(var(--radius-12) - 1px);
border-top-right-radius: calc(var(--radius-12) - 1px);
border-bottom: 1px solid var(--gray-c2);

/* Scroll */
Expand Down Expand Up @@ -74,8 +74,8 @@

.CodeBlockViewport {
outline: 0;
border-bottom-right-radius: var(--radius-6);
border-bottom-left-radius: var(--radius-6);
border-bottom-right-radius: calc(var(--radius-12) - 1px);
border-bottom-left-radius: calc(var(--radius-12) - 1px);
overscroll-behavior-x: contain;

&:focus-visible {
Expand Down Expand Up @@ -126,7 +126,7 @@
.CodeBlockPre,
.CodeBlockRoot .CodeBlockPreInline {
padding: 0.5rem 0;
border-radius: var(--radius-6);
border-radius: calc(var(--radius-12) - 1px);
}

.CodeBlockPreContainer {
Expand Down
Loading
Loading