Variants
ASCII Donut — a 3D donut typeset in blue ASCII characters on near-black, assembling from random characters and steered by the cursor

API Reference

Props for <ASCIIDonut />

S

Motion score

Compositor-only

Category
3D Elements
Framework
React
Published
Nov 27, 2026
Dependencies
Variants

ASCII Donut: a spinning ASCII donut for React

A 3D donut drawn entirely in text characters on a dark background, shaded in blue with flashes of orange. It's the classic spinning ASCII donut, rebuilt as a React component.

Use ASCII Donut as a playful centerpiece for a developer tool, a terminal product or a retro-styled page. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is ASCII Donut?

ASCII Donut is a React take on the spinning ASCII donut, the famous 3D torus drawn with nothing but text characters. Lighter and darker characters stand in for light and shadow, so a flat grid of letters reads as a solid, turning 3D shape.

How ASCII Donut works

The donut is made of characters arranged on a grid, with each character chosen by how much light falls on that point of the shape. Blue characters shape the body of the ring, and orange ones pick out the highlights as it turns, so it reads as a real 3D object.

Customization options

Change the character colors and the background in the Customize panel, save a look as a variant, then install. The source is yours after install, so you can edit the character set or shading in code.

Use cases

  • Developer tools and terminals, where text-based art fits the product.
  • 404 and easter-egg pages that reward curious visitors.
  • Hero sections for brands with a retro computing feel.

FAQs