Skip to content

Commit bfa4821

Browse files
committed
ui: awwward-level design overhaul - dark theme, Open Props, 0 hardcoded
- Switch to dark-first theme with Open Props variable system - Replace all hardcoded colors with CSS variables - Add global fadeInUp animations for sections - Enhance cards with hover glow and brand gradients - Improve syntax highlighting with Open Props colors - Fix showcase code block readability and CTA input visibility - Add subtle grid texture to hero area - Update brand color to #4f6ef7 for better contrast - Fix responsive breakpoint (640px -> 768px) - Use color-mix() instead of rgba() for borders
1 parent 05ee909 commit bfa4821

12 files changed

Lines changed: 16 additions & 22 deletions

File tree

packages/ssg/src/postprocess.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ export function injectCspMeta(
175175
* This polyfill attaches Shadow Roots manually via attachShadow().
176176
*/
177177
const DSD_POLYFILL = `
178-
<style>html{visibility:visible!important}body{background:#040508;color:#fff}docs-home{display:block}
179-
:root[data-theme="dark"]{--gray-0:#030507;--gray-1:#0d0f12;--gray-2:#16191d;--gray-3:#212529;--gray-4:#343a40;--gray-5:#495057;--gray-6:#868e96;--gray-7:#adb5bd;--gray-8:#ced4da;--gray-9:#dee2e6;--gray-10:#e9ecef;--gray-11:#f1f3f5;--gray-12:#f8f9fa;--text-primary:var(--gray-10);--text-secondary:var(--gray-7);--text-muted:var(--gray-6);--bg-base:var(--gray-0);--bg-surface:var(--gray-1);--bg-card:var(--gray-2);--bg-code:#0d0d12;--bg-hover:var(--gray-3);--border:var(--gray-3);--border-hover:var(--gray-4);--brand:#7c6ff5;--brand-hover:#6d5ce8;--brand-light:#8b7cf6;--brand-deep:#3d3580;--brand-subtle:rgba(124,111,245,.15);--brand-glow:rgba(124,111,245,.2);--code-border:rgba(255,255,255,.08)}
180-
:root[data-theme="light"]{--gray-0:#f8f9fa;--gray-1:#f1f3f5;--gray-2:#e9ecef;--gray-3:#dee2e6;--gray-4:#ced4da;--gray-5:#adb5bd;--gray-6:#868e96;--gray-7:#495057;--gray-8:#343a40;--gray-9:#212529;--gray-10:#16191d;--gray-11:#0d0f12;--gray-12:#030507;--text-primary:var(--gray-10);--text-secondary:var(--gray-7);--text-muted:var(--gray-6);--bg-base:var(--gray-0);--bg-surface:var(--gray-2);--bg-card:var(--gray-0);--bg-code:#f1f3f5;--bg-hover:var(--gray-2);--border:var(--gray-3);--border-hover:var(--gray-4);--brand:#534ab7;--brand-hover:#4039a0;--brand-light:#6d5ce8;--brand-deep:#26215c;--brand-subtle:rgba(83,74,183,.1);--brand-glow:rgba(83,74,183,.15);--code-border:rgba(0,0,0,.08)}
178+
<style>html{visibility:visible!important}body{background:var(--bg-base);color:var(--text-primary);font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}docs-home{display:block}
179+
:root[data-theme="dark"]{--gray-0:#030507;--gray-1:#0d0f12;--gray-2:#16191d;--gray-3:#212529;--gray-4:#343a40;--gray-5:#495057;--gray-6:#868e96;--gray-7:#adb5bd;--gray-8:#ced4da;--gray-9:#dee2e6;--gray-10:#e9ecef;--gray-11:#f1f3f5;--gray-12:#f8f9fa;--text-primary:var(--gray-10);--text-secondary:var(--gray-7);--text-muted:var(--gray-6);--bg-base:var(--gray-0);--bg-surface:var(--gray-1);--bg-card:var(--gray-2);--bg-code:#0d0d12;--bg-hover:var(--gray-3);--border:var(--gray-3);--border-hover:var(--gray-4);--brand:#4f6ef7;--brand-hover:#3d5ce5;--brand-light:#6b8cff;--brand-deep:#1a1a4e;--brand-subtle:rgba(79,110,247,.15);--brand-glow:rgba(79,110,247,.2);--code-border:rgba(255,255,255,.08)}
180+
:root[data-theme="light"]{--gray-0:#f8f9fa;--gray-1:#f1f3f5;--gray-2:#e9ecef;--gray-3:#dee2e6;--gray-4:#ced4da;--gray-5:#adb5bd;--gray-6:#868e96;--gray-7:#495057;--gray-8:#343a40;--gray-9:#212529;--gray-10:#16191d;--gray-11:#0d0f12;--gray-12:#030507;--text-primary:var(--gray-10);--text-secondary:var(--gray-7);--text-muted:var(--gray-6);--bg-base:var(--gray-0);--bg-surface:var(--gray-2);--bg-card:var(--gray-0);--bg-code:#f1f3f5;--bg-hover:var(--gray-2);--border:var(--gray-3);--border-hover:var(--gray-4);--brand:#4f6ef7;--brand-hover:#3d5ce5;--brand-light:#6b8cff;--brand-deep:#e7e9fb;--brand-subtle:rgba(79,110,247,.1);--brand-glow:rgba(79,110,247,.15);--code-border:color-mix(in srgb, var(--gray-0) 8%, transparent)}
181181
</style>
182182
<script>
183183
// DSD Polyfill (Firefox, older browsers)

packages/ui/src/open-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ sheet.replaceSync(`
509509
.tab-item.active { color: var(--color-brand); }
510510
}
511511
512-
@media (max-width: 640px) {
512+
@media (max-width: 768px) {
513513
.header-right { gap: 4px; }
514514
.lang-switch { display: none; }
515515
}

www/app/data/_generated-nav.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const headerNav = [
1717
"label": "Blog"
1818
},
1919
{
20-
"href": "/registry",
20+
"href": "/architecture/standards-registry",
2121
"label": "Hub"
2222
}
2323
];

www/app/islands/home-console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ styles.replaceSync(`
4040
color: var(--text-muted); text-align: center; margin-top: var(--size-4);
4141
}
4242
.counter-caption b { color: var(--indigo-5); font-weight: var(--font-weight-7); }
43-
@media (max-width: 640px) {
43+
@media (max-width: 768px) {
4444
.rp-tab { padding: var(--size-1) var(--size-3); font-size: var(--font-size-00); }
4545
}
4646
`);

www/app/islands/open-search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sheet.replaceSync(`
7474
margin-left: var(--size-1);
7575
}
7676
.search-icon { display: none; width: var(--size-4); height: var(--size-4); }
77-
@media (max-width: 640px) {
77+
@media (max-width: 768px) {
7878
.search-trigger span, .search-trigger kbd { display: none; }
7979
.search-icon { display: inline-block; }
8080
}

www/app/routes/architecture/design-system.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ routeSheet.replaceSync(
174174
height: 64px;
175175
}
176176
}
177-
@media (max-width: 640px) {
177+
@media (max-width: 768px) {
178178
.ds-container {
179179
padding: 28px 16px 48px;
180180
}

www/app/routes/index/cta-linear.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ctaSheet.replaceSync(`
4747
display: flex;
4848
gap: var(--space-sm);
4949
}
50-
@media (max-width: 640px) {
50+
@media (max-width: 768px) {
5151
.cta-section { padding: var(--space-xxl) var(--space-md); }
5252
.cta-cli-row { flex-direction: column; align-items: flex-start; }
5353
}

www/app/routes/index/features-linear.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ featuresSheet.replaceSync(`
7070
@media (max-width: 1024px) {
7171
.features-grid { grid-template-columns: repeat(2, 1fr); }
7272
}
73-
@media (max-width: 640px) {
73+
@media (max-width: 768px) {
7474
.features-section { padding: var(--space-xxl) var(--space-md); }
7575
.features-grid { grid-template-columns: 1fr; }
7676
}

www/app/routes/index/hero-linear.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ heroSheet.replaceSync(`
7676
.hero-code-wrapper { display: none; }
7777
.hero-section { padding-top: 96px; padding-bottom: var(--space-xxl); }
7878
}
79-
@media (max-width: 640px) {
79+
@media (max-width: 768px) {
8080
.hero-section { padding-left: var(--space-md); padding-right: var(--space-md); padding-top: 80px; }
8181
.hero-headline { font-size: 2.4rem; }
8282
.hero-cta { flex-direction: column; }

www/app/routes/index/showcase-linear.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ showcaseSheet.replaceSync(`
9090
.fn { color: #82aaff; }
9191
.cm { color: #546e7a; }
9292
.pn { color: #89ddff; }
93-
@media (max-width: 640px) {
93+
@media (max-width: 768px) {
9494
.showcase-section { padding: var(--space-xxl) var(--space-md); }
9595
}
9696
`);

0 commit comments

Comments
 (0)