▤ Structures/Viewer components
Guide tjwhite.space ↗ Open the viewer

The pieces of the viewer, and why they look this way.

Every component here is live and reuses the viewer's code. Next to each one is the reasoning: what it's for, why it looks the way it does, and where I tried something else first.

The starting point was your app's screenshot. Wherever I changed something, it was for the job this viewer does, and your full app may have reasons I can't see from one image.

Specimen is the live piece. Switches in its top bar show other states.
A tried mark means a version I tested and moved on from. It's still there to switch to.
01 Foundations colour and type
1.1Colourtried 1 · faint units
Specimen
ink
values, active labels
14.4:1
dim
keys, units, summaries
5.6:1
faint
separators only
2.6:1
mint
live, selected, done
12.1:1
amber
missing, not there yet
10.7:1
Final fmax
0.018 target 0.02
Energy per atom
−11.1041 eV
Largest move
0.090 Å
Contrast measured against the panel black.
Why

The palette comes from your site: the #161A1B background and the mint accent. I gave mint one job. It marks what's live, selected or finished. Amber marks what's missing, like a tantalum atom with five carbon neighbours where there should be six. Everything else is grey, so when colour shows up, it means something.

Tried

Units, targets and section summaries started in the faintest grey, which sits at 2.6:1. They were hard to read, and for a scientist the unit is part of the number. 0.018 tells you nothing until you know it's eV/Å.

They moved up to the mid grey at 5.6:1. Separators stayed faint, because they're decoration. Switch to Before to compare.

1.2Type
Specimen
IBM Plex Serif 300 · reading
A structure viewer built on your own tools.
IBM Plex Serif 400 · reading
Press play and watch the vacancies light up and settle.
IBM Plex Mono 400 · labels, uppercase, tracked
Convergence · How it was run
IBM Plex Mono 400 · numbers, tabular figures
994atoms   0.018eV/Å
Why

Everything you operate is in IBM Plex Mono, the same terminal feel as your app. Numbers use tabular figures, so a column of values stays still while a run plays and only the digits change.

IBM Plex Serif is kept for reading: the Notes and this page. Labels are uppercase and tracked so they read as labels, and values stay in sentence case so they read as data.

Both are free stand-ins for Berkeley Mono and your serif, which I didn't have licences for.

02 Controls what you press, drag and switch
2.1Tabs
Specimen
Data|Structures|Calculators|Simulations|Workflows
As it appears in the viewer. Only Structures is real there.
Why

This row is copied from your app, pipes and all, so the viewer sits where it would actually live. The active tab gets mint text and a one-pixel underline, the same mark your app uses.

In the viewer, the other tabs have no hover on purpose. They don't go anywhere, and a hover would promise a click that does nothing. On this page the tabs do scroll to each group, so up top they get one.

2.2Buttons
Specimen
Primary on top, secondary below. Hover any of them, or force a state above.
Why

Square, outlined and uppercase, to match the hard edges in your UI. There are only two kinds. The primary has a mint outline and the secondary a grey one.

The primary only fills with mint on hover. A solid mint block already means "this option is on" in the segmented control below, and I didn't want a button that's just sitting there to look selected.

2.3Segmented control
Specimen
Colour by
Normal
Why

For choices where exactly one answer is true: Relaxation or Scale test, colour by element or by force, slice along X, Y or Z. The chosen option goes solid mint with dark text, so you can read the state from across the room.

Where it's used
Mode
top of the inspector, full width, larger
Colour by
View section
Slice normal
appears only while Slice is on
2.4Layer toggles
Specimen
The viewer's footer strip, right under the 3D view.
Why

These are layers you add to or remove from the structure: the slice plane, bonds and vacancy markers. Each one is independent of the others, so they're switches.

They sit in the viewer's own footer, right under the picture they change, so your eye doesn't have to leave the structure to see what's on. The switch is the one rounded shape in the interface, because a switch is the shape people already know for on and off.

2.5Slider and timeline
Specimen
512atoms4 × 4 × 4
648k110k729k
step 0 / 31
Why

The thumb is a small upright bar. A round thumb would have been the only circle among square edges. The mint fill shows how far along you are, and the thumb stretches slightly while you hold it, so you can feel that it's grabbed.

The relaxation timeline is the same slider with a play button next to it. Scrubbing through a run and setting a value work as one kind of control.

The supercell ticks sit at 64, 8k, 110k and 729k atoms, because atom count grows with the cube of the cell count. Even spacing in cells reads as huge jumps in atoms.

03 Inspector the panel on the right
3.1Status line
Specimen
Converged31 steps · 422 s
Why

The bracket corners come from the framing on your site. The line answers the first question anyone asks after a run, which is whether it converged. Mint if it did, amber if it didn't.

During replay it still says Converged. An earlier version said "Relaxing" while the timeline played, which made it sound like the run was still going. The run is finished, and the timeline already shows where you are in the replay.

3.2Key and value rowstried 1 · zebra stripes
Specimen
Final fmax
0.018 target 0.02
Energy per atom
−11.1041 eV
ΔE, start to end
−1.218 eV
Largest move
0.090 Å
Wall time
422 s
Why

Thin hairlines between rows, label on the left, value on the right, units in mid grey next to the number.

Tried

Your inspector stripes every other row, so I tried that first. Stripes help the eye cross from a label to its value, and they work well on long lists.

Here the tables are four to six rows. The stripes ended up louder than the convergence graph, which is where a scientist gets most of their answer. At a glance they also looked like selected rows.

Hairlines keep the row tracking without the weight. In your full app, with longer tables, the stripes probably earn their place. Switch to Stripes to compare.

3.3Section ordertried 1 · grouped by data type
Specimen
Why

The panel is ordered by the questions a computational chemist asks after a run. Did it work? How did it get there? What's happening at this atom? How do I want to look at it? And last, how was it run?

The record of how it was run comes last and starts collapsed. Nothing is hidden, it's just further down. The outcome and the graph start open, and the panel remembers what you opened or closed.

Tried

The first version grouped things by data type, with run settings at the top. It made sense to whoever built it, and it put the record ahead of the result.

This order is my best guess at their questions. I'd want a computational chemist to look at it.

Smaller calls along the way
Energy per atom
added. Total energy depends on system size, and per atom is what gets compared.
Repeats
removed. fmax and "Relaxation" each appeared twice.
Explanations
cut to one line. The note that movement is exaggerated stays.
3.4Collapsible sectionstried 5 · hairlines, header bars, cards, hybrid, title strips
Specimen
Converged31 steps · 422 s
Final fmax
0.018 target 0.02
Largest move
0.090 Å
Selectionclick an atom
Model
orb-v3-conservative
Optimizer
FIRE
Target fmax
0.02 eV/Å
Why

Each section is a quiet grey block on black, and its rows sit in a slightly lighter cell. The title carries the section on its own: pure white, a step heavier, wider letter spacing. A bigger gap between sections than between rows does the grouping. Nothing is drawn around the title, so the panel stays quiet and the 3D view and the chart still get looked at first.

Tried

Hairlines only was too quiet. The arrows didn't read as drawers you could open.

Grey header bars made the sections obvious, but six grey bands stacked down the panel pulled the eye off the 3D view and the graph. It was the zebra problem again.

Outlined cards were your own pattern from the report highlights, and they were my pick for a while. Three levels of the same grey outline (section, list, row) made it hard to tell a container from something you can click.

Hybrid fixed that with fills instead of outlines, and it was subtle in the way I wanted. But the titles were the same brightness and size as the rows under them, so the sections didn't read early enough.

Title strips made every title obvious, and every section asked for attention. A filled strip has the same weight as a button or a picked row.

Bracket corners on every section looked the most like a HUD. In your product brackets only show up on calls to action, so on a section they would mean something you can't do. Corners stay on buttons and the pick, where they mean you can act.

Found along the way

Selection has nothing to show until you click an atom. As an empty box with no arrow it looked like a broken drawer. Now it has a dashed border while it's empty, the usual way to show an open slot, and turns solid once something is in it. Press Pick an atom to see it fill.

04 Readouts charts and live numbers
4.1Convergence chart
Specimen · real run datahover to scrub
Why

This is the first thing anyone checks when a run finishes: the largest force on any atom, step by step, against the target. It sits right under the outcome.

The axis is log scale. Force drops by orders of magnitude, and a linear axis would flatten the end of the run, which is exactly where the question gets answered. The target is the dashed mint line at 0.02 eV/Å, and the amber marker is where the replay is.

Hover to read a step, drag to scrub. In the viewer, dragging moves the structure to that step too. The bump around step 6 is real. FIRE overshoots and recovers.

4.2Frame rate panel
Specimen · measured live
FPS
–
Frame
–
Draw calls
1
Pixel ratio
–
FPS and frame time are this page, measured live. Draw calls show the viewer's count at 729,000 atoms.
Why

The scale test makes a claim about performance, so the proof sits right next to it: live frames per second, frame time, draw calls and pixel ratio. Draw calls staying at 1 at 729,000 atoms is the point of the whole test.

The pixel ratio drops on its own when the frame budget gets tight. Showing it keeps that trick out in the open. FPS goes amber when it falls under 50.

05 Overlays what sits on the 3D view
5.1Boot log
Specimen
Why

Your app feels like a terminal, so loading reads like a command running. Each line is something an engineer would want to check: the file format, how long it took to decode, the atom count, the model, the result, and the draw calls on their GPU.

A couple of seconds later it fades out and the structure takes over. It's there to earn trust in the first five seconds, then get out of the way.

5.2Hover, select and measure
Specimenhover · click · click another
A flat stand-in for the 3D view, with two carbon vacancies.
Why

Hovering an atom shows its element, ID and force right next to the cursor, so you can scan without committing to a click. Hovered and picked atoms get a mint ring, the selection colour, and the measured distance sits on the structure in mint because it belongs to what you picked.

In the viewer, picking reads atom IDs from a one-pixel render on the GPU, so it stays instant at 729,000 atoms. Shift-click measures there. Here a second click does it.

06 States every screen a scientist could land on
6.1State map24 built · 8 designed

While researching how your app gets used, I mapped the states a scientist would hit across the four steps. I built the ones that matter most and designed the rest. Built ones work in the viewer now; the sample files in step 1 trigger most of the step 1 states.

built, try it in the viewerdesigned, not built
01Structurepick, upload or build
EmptyA dashed drop zone, with starters beside it. Nothing to look at yet, so the screen says what to do.
Starter pickedPreviews in element colours with the cell drawn, before anything runs.
Wrong fileAn image or binary is named as what it is, with the formats that work.
Other formatA CIF is recognised and the message says the full app would read it.
Typo in an elementGives the line number and the nearest real symbol: “Tq” → Ta.
Molecule, no cellWarns, and offers to wrap it in 10 Å of vacuum, the usual fix.
Atoms overlappingFlies to the pair from outside and measures it on the structure.
Too bigOver 100 MB or 729,000 atoms is refused before reading.
Search a databasePull a known crystal by formula, as in the tess CLI.
Edit, formula changesRemoving atoms updates the formula and flags the change.
02Setupcalculation, model, when to stop
DefaultsRelax · Orb v3 · 0.02 eV/Å · 50 steps. One click from a sensible run.
Not in this demoOther calculations and models are listed and marked, never hidden.
Target tighter than computedRun is blocked and the note says why.
Uploaded structureStops before the queue and says where it would go.
Time per stepMeasured on my laptop, shown as measured.
Element the model wasn’t trained onWarn before queueing, suggest a model that covers it.
03Runon the GPUs, minutes to days
QueuedA short beat before the first step, so the hand-off reads as its own state.
RunningThe result screen fills in: chart draws live, atoms settle, cancel stays in reach.
CancelledKeeps the partial run, labelled unfinished.
Step limit hitSet 15 steps and either run stops short, the way a real run would.
Atoms flying apartStop early and open on the frame where the forces blew up.
Leave and come backThe run keeps going; the Run step shows progress and picks up live.
Connection lostSay it’s reconnecting, keep the last frame, never fake progress.
04Resultopen it and check it
ConvergedStatus first, then the numbers, then the chart. Answers “did it work?”.
Not convergedAmber, real numbers kept, and a way back to the settings.
Nothing selectedA dashed slot that says “click an atom”.
Trajectory won’t loadSays so in the log and falls back to the scale test.
Frame rate dropsPixel ratio steps down quietly, and back up when there’s room.
Reduced motionNo autoplay, no log typing, no easing.
Phone widthInspector stacks under the viewer.
Single frameA structure with no trajectory hides the timeline and chart.
No WebGL2Say it plainly and show the numbers without the 3D view.
A concept for Atomic Tessellator, not affiliated. The controls on this page reuse the viewer's code. The atoms in 5.2 are a flat stand-in for the 3D view.
Thejas · tjwhite.space · Open the viewer