Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designcodeio/threeui",
"version": "1.2.0",
"version": "1.3.0",
"description": "Open-source React components and interactive templates from ThreeUI Community.",
"license": "MIT",
"type": "module",
Expand Down
52 changes: 43 additions & 9 deletions public/community-sync-report.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"schemaVersion": 1,
"generatedAt": "2026-08-31T16:05:46.996Z",
"sourceCommit": "6b65f2dbec22ac58c56474f028aec5590e62d3c9",
"communityParents": 43,
"communityRoutes": 104,
"communityVariants": 163,
"excludedProParents": 108,
"generatedAt": "2026-09-03T05:35:30.118Z",
"sourceCommit": "65f7995b00f0f64323b217b353a529de99ec7fac",
"communityParents": 46,
"communityRoutes": 107,
"communityVariants": 166,
"excludedProParents": 109,
"excludedBetaParents": 23,
"layoutStylesSha256": "cee8ebe47ad857149f52f12bb12324a83856fc403ea1431f238aec4ecc385760",
"rendererStylesSha256": "dc36aeb914df4c554164304292d75738a770e454b1e2710bac1ce4169d5fee2a",
Expand Down Expand Up @@ -395,7 +395,8 @@
"induction-button",
"plasma-button",
"tactile-button",
"thinking-button"
"thinking-button",
"raking-light-pill"
],
"controlKeys": [
"mode",
Expand All @@ -409,7 +410,8 @@
"induction-button": [],
"plasma-button": [],
"tactile-button": [],
"thinking-button": []
"thinking-button": [],
"raking-light-pill": []
}
},
{
Expand All @@ -436,7 +438,9 @@
"meridian-keycap-secondary",
"halvorsen-arrow-pill",
"aster-glass-access",
"aster-glass-arrow"
"aster-glass-arrow",
"ember-keycap",
"bloom-outline-button"
],
"controlKeys": [
"mode",
Expand Down Expand Up @@ -521,6 +525,18 @@
"hue",
"saturation",
"brightness"
],
"ember-keycap": [
"mode",
"hue",
"saturation",
"brightness"
],
"bloom-outline-button": [
"mode",
"hue",
"saturation",
"brightness"
]
}
},
Expand Down Expand Up @@ -594,6 +610,24 @@
],
"variantControlKeys": {}
},
{
"id": "orb-gallery",
"variantIds": [],
"controlKeys": [],
"variantControlKeys": {}
},
{
"id": "3d-paper",
"variantIds": [],
"controlKeys": [],
"variantControlKeys": {}
},
{
"id": "ashen-press",
"variantIds": [],
"controlKeys": [],
"variantControlKeys": {}
},
{
"id": "sylva-living-world",
"variantIds": [
Expand Down
138 changes: 127 additions & 11 deletions public/source-code.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/components/buildSkillMarkdown.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/data/communityOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Updated by scripts/sync-community-from-main.mjs.
export const COMMUNITY_NEWEST_SHADER_IDS = [
"orb-gallery",
"3d-paper",
"ashen-press",
"meng-to-sketchbook-landing-page",
"koi-studies",
"sylva-hero",
Expand Down
2 changes: 1 addition & 1 deletion src/data/mainCatalogSummary.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Updated by scripts/sync-community-from-main.mjs.
export const FULL_THREEUI_COLLECTION_COUNT = 378;
export const FULL_THREEUI_COLLECTION_COUNT = 385;
582 changes: 486 additions & 96 deletions src/data/shaders.tsx

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "./shaders/community.css";

export { AmberHalftone } from "./package-components/AmberHalftone";
export { AnimatedTopDock } from "./package-components/AnimatedTopDock";
export { AshenPress } from "./package-components/AshenPress";
export { AudioWordmark } from "./package-components/AudioWordmark";
export { BallStudy } from "./package-components/BallStudy";
export { BellFieldBackground } from "./package-components/BellFieldBackground";
Expand Down Expand Up @@ -66,6 +67,7 @@ export { MorphingGlyphCloud } from "./package-components/MorphingGlyphCloud";
export { NebulaBackground } from "./package-components/NebulaBackground";
export { NeonTypography } from "./package-components/NeonTypography";
export { NewsletterFooterSection } from "./package-components/NewsletterFooterSection";
export { OrbGallery } from "./package-components/OrbGallery";
export { OrbitalSphereBackground } from "./package-components/OrbitalSphereBackground";
export { OutlineTypeflow } from "./package-components/OutlineTypeflow";
export { ParticleDrift } from "./package-components/ParticleDrift";
Expand Down Expand Up @@ -95,6 +97,7 @@ export { TempleNightScene } from "./package-components/TempleNightScene";
export { TextAnimationCollection } from "./package-components/TextAnimationCollection";
export { TextPathStudies } from "./package-components/TextPathStudies";
export { ThinkingButton } from "./package-components/ThinkingButton";
export { ThreeDPaper } from "./package-components/ThreeDPaper";
export { ThreeUIIntro } from "./package-components/ThreeUIIntro";
export { TopoField } from "./package-components/TopoField";
export { TopologyField } from "./package-components/TopologyField";
Expand Down
2 changes: 2 additions & 0 deletions src/package-components/AshenPress.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Generated by scripts/generate-library-entry.mjs. Do not edit by hand.
export { AshenPress } from "../shaders/ashen-press/AshenPress";
2 changes: 2 additions & 0 deletions src/package-components/OrbGallery.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Generated by scripts/generate-library-entry.mjs. Do not edit by hand.
export { OrbGallery } from "../shaders/orb-gallery/OrbGallery";
2 changes: 2 additions & 0 deletions src/package-components/ThreeDPaper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Generated by scripts/generate-library-entry.mjs. Do not edit by hand.
export { ThreeDPaper } from "../shaders/3d-paper/ThreeDPaper";
79 changes: 79 additions & 0 deletions src/shaders/3d-paper/ThreeDPaper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { useEffect, useRef, useState, type CSSProperties } from "react";

import threeDPaperSource from "./sources/3d-paper.html?raw";

export type ThreeDPaperProps = {
className?: string;
style?: CSSProperties;
};

export function ThreeDPaper({ className = "", style }: ThreeDPaperProps) {
const hostRef = useRef<HTMLDivElement>(null);
const [documentVisible, setDocumentVisible] = useState(() => (
typeof document === "undefined" || !document.hidden
));
const [hostVisible, setHostVisible] = useState(true);
const [ready, setReady] = useState(false);

useEffect(() => {
const host = hostRef.current;
if (!host || typeof IntersectionObserver === "undefined") return undefined;
const observer = new IntersectionObserver(([entry]) => {
setHostVisible(entry?.isIntersecting ?? true);
}, { rootMargin: "80px" });
observer.observe(host);
return () => observer.disconnect();
}, []);

useEffect(() => {
if (typeof document === "undefined") return undefined;
const update = () => setDocumentVisible(!document.hidden);
document.addEventListener("visibilitychange", update);
return () => document.removeEventListener("visibilitychange", update);
}, []);

const mounted = hostVisible && documentVisible;

useEffect(() => {
setReady(false);
}, [mounted]);

return (
<div
ref={hostRef}
className={`threeui-background three-d-paper${className ? ` ${className}` : ""}`}
role="group"
aria-label="Interactive translucent 3D paper certificate"
data-state={!mounted ? "paused" : ready ? "ready" : "loading"}
style={{
position: "relative",
overflow: "hidden",
background: "#08080a",
pointerEvents: "auto",
...style,
}}
>
{mounted ? (
<iframe
title="3D Paper"
srcDoc={threeDPaperSource}
sandbox="allow-scripts"
loading="eager"
onLoad={() => setReady(true)}
style={{
position: "absolute",
inset: 0,
display: "block",
width: "100%",
height: "100%",
border: 0,
background: "#08080a",
opacity: ready ? 1 : 0,
pointerEvents: ready ? "auto" : "none",
transition: "opacity 240ms ease-out",
}}
/>
) : null}
</div>
);
}
548 changes: 548 additions & 0 deletions src/shaders/3d-paper/sources/3d-paper.html

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions src/shaders/ashen-press/AshenPress.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { useEffect, useRef, useState, type CSSProperties } from "react";

import ashenPressSource from "./sources/ashen-press.html?raw";

export type AshenPressProps = {
className?: string;
style?: CSSProperties;
};

export function AshenPress({ className = "", style }: AshenPressProps) {
const hostRef = useRef<HTMLDivElement>(null);
const [documentVisible, setDocumentVisible] = useState(() => (
typeof document === "undefined" || !document.hidden
));
const [hostVisible, setHostVisible] = useState(true);
const [ready, setReady] = useState(false);

useEffect(() => {
const host = hostRef.current;
if (!host || typeof IntersectionObserver === "undefined") return undefined;
const observer = new IntersectionObserver(([entry]) => {
setHostVisible(entry?.isIntersecting ?? true);
}, { rootMargin: "80px" });
observer.observe(host);
return () => observer.disconnect();
}, []);

useEffect(() => {
if (typeof document === "undefined") return undefined;
const update = () => setDocumentVisible(!document.hidden);
document.addEventListener("visibilitychange", update);
return () => document.removeEventListener("visibilitychange", update);
}, []);

const mounted = hostVisible && documentVisible;

useEffect(() => {
setReady(false);
}, [mounted]);

return (
<div
ref={hostRef}
className={`threeui-background ashen-press${className ? ` ${className}` : ""}`}
role="group"
aria-label="Interactive Ashen Press art book shelf"
data-state={!mounted ? "paused" : ready ? "ready" : "loading"}
style={{
position: "relative",
overflow: "hidden",
background: "#c6ae8e",
pointerEvents: "auto",
...style,
}}
>
{mounted ? (
<iframe
title="Ashen Press — The Art Book Shelf"
srcDoc={ashenPressSource}
sandbox="allow-scripts"
loading="eager"
onLoad={() => setReady(true)}
style={{
position: "absolute",
inset: 0,
display: "block",
width: "100%",
height: "100%",
border: 0,
background: "#c6ae8e",
opacity: ready ? 1 : 0,
pointerEvents: ready ? "auto" : "none",
transition: "opacity 240ms ease-out",
}}
/>
) : null}
</div>
);
}
Loading