Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Keep dither in a subtle animated page corner

Nguyen Xuan An059a93050519
diff --git a/src/brand.css b/src/brand.css
index daf0b900..64bf996c 100644
--- a/src/brand.css
+++ b/src/brand.css
@@ -1,5 +1,5 @@
:root { --window:#0b0b0b; --bg:#212121; --surface:#2f2f2f; --text:#ececec; --muted:#b4b4b4; --border:#404040; --focus:#a6c1ff; --radius:14px; --panel-radius:24px;
- --dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='white' fill-opacity='.055' d='M0 0h1v1H0zM4 4h1v1H4zM2 6h1v1H2zM6 2h1v1H6z'/%3E%3C/svg%3E");
+ --dither:none;
}
.icon { width:18px; height:18px; display:inline-block; flex-shrink:0; vertical-align:middle; }
.brand { display:inline-flex; align-items:center; gap:0; flex-shrink:0; }
diff --git a/src/site-theme.css b/src/site-theme.css
index b6949041..651d0290 100644
--- a/src/site-theme.css
+++ b/src/site-theme.css
@@ -1,4 +1,4 @@
-/* OUI supplies the shared palette and controls; 67.js adds pixel surfaces. */
+/* OUI controls stay plain; a small pixel accent belongs to the page background. */
body:has(.navigation) {
--window:var(--org-bg);
--bg:var(--org-sidebar);
@@ -9,33 +9,45 @@ body:has(.navigation) {
--focus:var(--org-focus);
--org-radius:14px;
--org-control-height:44px;
- --dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='white' fill-opacity='.1' d='M0 0h2v2H0zM4 4h2v2H4zM2 6h1v1H2zM6 2h1v1H6z'/%3E%3C/svg%3E");
+ --dither:none;
+ --ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='white' fill-opacity='.12' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
+ isolation:isolate;
color:var(--text);
background:var(--window);
}
@media (prefers-color-scheme:light) {
body:has(.navigation) {
--org-muted:#595959;
- --dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='black' fill-opacity='.085' d='M0 0h2v2H0zM4 4h2v2H4zM2 6h1v1H2zM6 2h1v1H6z'/%3E%3C/svg%3E");
+ --ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='black' fill-opacity='.09' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
}
}
-.navigation, .package-install, .site-footer {
- background-image:var(--dither);
-}
.preview-assembly {
padding:16px 20px;
border-radius:24px;
- background:var(--dither), var(--bg);
+ background:var(--bg);
}
-.live-showcase { position:relative; isolation:isolate; }
-.live-showcase::before {
+body:has(.navigation)::before {
content:'';
- position:absolute;
- inset:4% 8% 22%;
+ position:fixed;
+ top:calc(var(--navigation-height,80px) + 20px);
+ right:-48px;
+ width:240px;
+ height:240px;
z-index:-1;
pointer-events:none;
- background:var(--dither), radial-gradient(ellipse, color-mix(in srgb,var(--focus) 18%,transparent), transparent 70%);
- mask-image:radial-gradient(ellipse,black 28%,transparent 72%);
+ opacity:.6;
+ background:var(--ambient-dither);
+ mask-image:radial-gradient(ellipse at 70% 25%,black 10%,transparent 70%);
+}
+@media (max-width:760px) {
+ body:has(.navigation)::before { width:170px; height:170px; }
+}
+@media (prefers-reduced-motion:no-preference) {
+ body:has(.navigation)::before { animation:pixel-arrive 4s ease-out both; }
+}
+@keyframes pixel-arrive {
+ from { opacity:0; transform:translate(12px,-12px); }
+ to { opacity:.6; transform:translate(0,0); }
}
.oui-control { display:contents; }
.oui-action { gap:8px; border-radius:14px; }
@@ -57,9 +69,6 @@ body:has(.navigation) {
.example img { transition:box-shadow var(--org-motion-base) var(--org-ease-out); }
.example:hover img { box-shadow:0 10px 34px color-mix(in srgb,var(--focus) 18%,transparent); }
}
-.navigation nav a[aria-current], .package-managers button[aria-pressed='true'] {
- background-image:var(--dither);
-}
@media (prefers-reduced-motion:reduce) {
.navigation nav a, .hero-actions a, .oui-action, .example { transform:none !important; }
}