how tetra looks

square, dark and quiet, so the emotes can be loud. these are the rules behind the site, the panel and the bot, with the tokens and components that follow them

principles

five rules every screen follows

  1. 1squareno rounded corners anywhere, not even on dots or avatars
  2. 2emotes are the colorthe interface stays dark and quiet, so the emotes carry the energy
  3. 3one loud colororange marks what matters on a screen. everything else is neutral
  4. 4ASCII as an accentmonospace glyphs nod to chat. seasoning, not the main course
  5. 5native, not a websitecontrols behave like an installed app: instant states, default cursor

color

three roles plus danger. dark only, there is no light theme. OKLCH tokens in app.css

  • backgroundoklch(0.145 0.003 38)the page. surface for raised areas, border for lines
  • primaryoklch(0.655 0.214 38) · #f64f02primary actions, the key word of a heading, focus rings, active states
  • signaloklch(0.81 0.13 215)at most one detail per view, never on the same element as orange
  • dangeroklch(0.704 0.191 22.2)errors and invalid fields only. not a brand color

brand-*

50
100
200
300
400
500
600
700
800
900
950

neutral-*

50
100
200
300
400
500
600
700
800
900
950

signal-*

300
400
500
text on color
dark. white on #f64f02 fails contrast
contrast
body text at least 4.5:1, control edges and focus rings 3:1
neutrals
Tailwind's steps with a faint tint of the brand hue, so grays feel warm
selection
signal at 35%: it's the user's mark, not the page's

type

the Geist family. sans for everything, serif as the accent, mono for ASCII

font-sans · Geist · 100–900

every emote, one command

interface, body text and most headings

font-serif · Geist Serif · 400

add any emote. that's it

one or two words of a heading, usually in orange. never body text or interface

font-mono · Geist Mono · 100–900

/addemote catJAM

ASCII art, labels, commands, values with tabular numbers

shape

radius is always 0. lines instead of shadows

radius
every --radius-* token is 0, so is ui-sdk's --ui-radius. no rounded-full either
structure
1px hairlines. grids of cards share their borders (gap-px on a border-colored container)
shadows
none, with two exceptions: the orange glow on a page's main call to action, and the navbar's fade into the page color

logo

a plain square in the current text color

mark
white on dark, black on light. no outline, no orange
intro
seven emotes fall into the square, then the block lands. once per visit
static
a square of dense ASCII on a dark wall, for icons and avatars. pixels below 28 px

every size, the slow-motion drop and the emotes are on the logo page

ASCII

the accent. one ASCII moment per block, always aria-hidden

␣.:-=+*#%@

the ramp, light to dense. shared by the emote background, the logo and every fill

use it for
small illustrations, section labels like [01] / features, command lines, a faint texture at about 10%
not for
meaning. anything a screen reader needs is in plain text
interactive
one place only: the field behind the homepage's closing call to action

motion

quiet by default, a few signature moments

optimizing catJAM

entrance
rise and un-blur, 0.9 s, staggered by about 150 ms
loading
braille dots chasing around one cell, never a rotating circle
signature
the logo's emote drop, the orange wave behind the homepage, the odometer on numbers, a blinking block cursor
controls
no transitions and no scaling. hover and press change color instantly
reduced motion
content appears at once and the background stops moving

native feel

the panel should feel like an installed app, not a web page

cursor
buttons keep the arrow. not-allowed when disabled, wait when pending
press
every control has an active state one step darker than its hover
selection
chrome is select-none. emote names and copyable text stay selectable
focus
rings only from the keyboard (focus-visible), never on click
layout
screens start below a top margin, never centered vertically

components

components/ui, built on ui-sdk where it ships the behavior. everything here is live

<Button variant size glow>

primary
secondary
destructive
ghost
glowthe main call to action, once per page

<Heading level size> · level is the outline, size is the look

display

emotes, squared

xl

emotes, squared

lg

emotes, squared

md

emotes, squared

sm

emotes, squared

<Text size tone>

large text for intros

default body text

small muted text for secondary details

<Eyebrow index> · <Accent>

[01] / features

emote manager for Discord

one accent per heading

<SegmentedControl> · <Slider> · <Switch> · <Radio>

96 px

<TextField prefix suffix error> · <Select>

::

clear it to see the inline error

add to

<SizeMeter value limit max> · the bar ends at the original size

File size338 KB / 256 KB
File size212 KB / 256 KB

<SlotMeter label used limit> · emote slots, orange in the last 10%

static31/50
animated47/50
animated50/50

<Notice title action> · a heads-up that doesn't block

this GIF is 7.40 MB and the editor is made for smaller ones

you can keep going, but processing may be slow or fail

<EmoteMenu kind> <Emote emote> · right-click or long-press

one component for every emote in the panel. the list's actions decide the menu, and a click selects it and brings up the selection bar

<Toaster> · toast() · toast.promise()