All ArticlesAnimationโ€ขOctober 28, 2026โ€ข5 min read

14. Meng To (@MengTo): The Design + Code Superpower & Spatial 3D UI

Meng To on the design + code superpower: Why static Figma mockups are dead, interactive prototyping with SwiftUI, and declarative WebGL 3D meshes using React Three Fiber.

3D glowing glass geometry rendered with real-time lighting

14. Meng To (@MengTo): The Design + Code Superpower & Spatial 3D UI

"When designers learn to code, they stop designing static pictures of websites and start designing real dynamic behaviors, physics, and interactive logic."

โ€” Meng To, Founder of DesignCode.io & Author


๐Ÿ’ก The Core Thesis

Meng To pioneered the "Designers Who Code" movement. Through DesignCode, he demonstrated that the boundary between visual design (Figma, Sketch) and frontend programming (SwiftUI, React, Three.js) is an artificial divide that limits product innovation.

His core philosophy centers on:

  1. Interactive Prototyping in Production Code: Why build 50 Figma frames with hacky interaction lines when you can build a living SwiftUI or React component with genuine spring physics in fewer lines of code?
  2. Accessible 3D with React Three Fiber: Bringing WebGL and spatial lighting to everyday web landing pages without needing complex Blender rendering farms.
  3. Generative UI & Visual Scripting: Using AI as a creative amplifier to scaffold boilerplate code while human designers curate color palettes, lighting angles, and particle animations.

๐Ÿ› ๏ธ Key Architectural Patterns

1. Minimal 3D Interactive Canvas with React Three Fiber & Drei

Rendering a floating, interactive 3D geometric mesh responsive to cursor position:

tsx
import { Canvas, useFrame } from '@react-three/fiber';
import { Float, MeshDistortMaterial } from '@react-three/drei';
import { useRef } from 'react';
import * as THREE from 'three';

function FloatingGlassOrb() {
  const meshRef = useRef<THREE.Mesh>(null!);

  useFrame((state) => {
    // Gentle floating rotation tracking time elapsed
    meshRef.current.rotation.x = state.clock.getElapsedTime() * 0.2;
    meshRef.current.rotation.y = state.clock.getElapsedTime() * 0.3;
  });

  return (
    <Float speed={2} rotationIntensity={1.5} floatIntensity={2}>
      <mesh ref={meshRef}>
        <sphereGeometry args={[1, 64, 64]} />
        <MeshDistortMaterial
          color="#8b5cf6"
          roughness={0.1}
          metalness={0.8}
          distort={0.4}
          speed={2}
        />
      </mesh>
    </Float>
  );
}

export function HeroScene() {
  return (
    <div className="h-96 w-full">
      <Canvas camera={{ position: [0, 0, 3] }}>
        <ambientLight intensity={0.7} />
        <directionalLight position={[10, 10, 5]} intensity={1.5} />
        <FloatingGlassOrb />
      </Canvas>
    </div>
  );
}

๐Ÿงต Ready-to-Post Tweet Thread

text
1/4 ๐ŸŽจ Why @MengTo inspired an entire generation of Design Engineers:
Static mockups can never communicate the tactile feel of an interface. When designers learn to write React and SwiftUI, the bottleneck disappears.

2/4 3D on the web is no longer gatekept:
With React Three Fiber and Three.js, adding reactive 3D glass orbs, distorted meshes, and dynamic camera angles takes fewer than 50 lines of declarative JSX.

3/4 The rise of the hybrid builder:
In the age of AI coding agents, the most valuable builders are those with high design taste who also understand code architecture.

4/4 Follow @MengTo for masterclasses on SwiftUI, 3D web design, and bridging the gap between Figma and production code.

๐Ÿ“Œ How to Follow & Stay Current

  • X Handle: @MengTo
  • Key Themes: SwiftUI, React Three Fiber, 3D Web, DesignCode, Creative Coding, Animation.
  • Top Hashtags: #SwiftUI #ThreeJS #DesignCode #React
1 viewsโ€ข0 comments

Discussion (0)

Join the conversation

Loading comments...

Continue Reading

More production-grade engineering deep dives and architectural guides

Explore all articles