Website for the Bushin Lab, Department of Chemistry, Stanford University. PI: Leah B. Bushin, Assistant Professor of Chemistry.
- Live: https://leahbushin.github.io/bushinlab-website/
- Repo: https://github.com/leahbushin/bushinlab-website
- Deploy: GitHub Pages,
mainbranch, root path. Push tomainand it goes live in 30–90 seconds. There is no CI, no build step, and no staging branch.
First-time Pages setup. The repo starts private, and GitHub Pages needs either a public repo or a paid plan. Repo admin must, in Settings:
- General → Danger Zone → Change visibility → Public
- Pages → Build and deployment → Source: Deploy from a branch →
main// (root)→ SaveThe site appears at https://leahbushin.github.io/bushinlab-website/ within a couple of minutes. Every canonical URL,
og:tag and the JSON-LD block already point there. If the repo is ever renamed, or a custom domain is added, update those —grep -rn "leahbushin.github.io".This repository was moved from
yeatmanlab/bushin-lab-websitewith its full commit history intact; that copy is the origin of commits66d1cbe–957e8f1.
A two-page static site written by hand in HTML, CSS, and vanilla JS. No framework, no bundler, no npm, no dependencies at all. That is a deliberate choice: a lab site changes a few times a year, usually by someone who is not a front-end developer, and a toolchain that rots is worse than none. Everything here can be edited with a text editor and previewed by opening a file.
index.html home: hero, mission, research, PI, press, publications, join, footer
people.html "Meet the Bushin Lab" roster
assets/css/style.css the whole design system (~490 lines)
assets/js/main.js canvas, reveals, filters, theme, menu (~320 lines)
assets/img/ portraits
.nojekyll tells GitHub Pages to serve files as-is
.claude/launch.json local preview config for Claude Code's browser pane
python3 -m http.server 8000Then http://localhost:8000. Hard-reload after editing CSS.
Read this before changing any visual detail. Almost everything is driven by custom properties
at the top of style.css.
The palette is derived from xanthommatin, the ommochrome pigment the lab taught a microbe to make (their 2025 Nature Biotechnology paper). It is not decoration — it is the lab's own molecule:
| Token | Dark | Light | Meaning |
|---|---|---|---|
--amber |
#ffb228 |
#c9770a |
oxidized xanthommatin; primary accent |
--ember |
#ff5f3d |
#d83f1c |
reduced form |
--cardinal |
#b1040e |
— | Stanford |
--cyan |
#4fd1c5 |
#0f8b80 |
fourth accent, cool counterweight |
--grad |
amber → ember → cardinal | buttons, gradient text |
Dark is the default. Light theme is a token override under html[data-theme="light"],
persisted to localStorage under bushin-theme. If you add a colour, add it to both
blocks or it will break in one theme. Never hard-code a hex outside :root.
--ff-displayInstrument Serif — headlines only, alwaysfont-weight: 400--ff-sansInter — body--ff-monoJetBrains Mono — labels, eyebrows, metadata, citations
The mono uppercase label with wide letter-spacing (.eyebrow, .card-num, .role, .tag)
is the signature of the design. Use it for anything metadata-like; use the serif for anything
that should feel authored.
<svg class="mark">, inline in the nav of both pages, plus a data-URI favicon in <head>.
It is a plasmid map: a thin backbone ring carrying three engineered cassettes (amber, ember, cyan) around the hexagonal molecule they produce. Synthetic biology on the outside, chemistry in the middle. Five shapes total, which is what lets it survive at 20 px.
Earlier attempts at a DNA double helix and a rod-shaped cell both collapsed into an indistinct X below ~40 px. If you revisit the mark, check it at 20 px before anything else — that is the size that actually ships. The arc path data was generated by a short Python snippet (angles 18–108°, 128–228°, 248–338° on r=13, centre 16,16); regenerate rather than hand-editing coordinates.
- Hero canvas
#lattice(main.js): drifting nodes, transient bonds within range, and reactive-intermediate walkers that leave decaying crosslinks. Pointer-repelled, paused when the tab is hidden, and completely skipped underprefers-reduced-motion. .rvelements fade up on scroll viaIntersectionObserver; stagger withdata-delay.- A global
prefers-reduced-motionrule collapses every animation and transition to ~0s. - A
<noscript>block forces.rvvisible, so the site still reads with JS disabled.
The publication list is generated from NCBI, on purpose. An earlier hand-written version had 10 of 13 PubMed IDs pointing at the wrong papers — they resolved to real PubMed pages, just other people's articles. Nobody catches that by proofreading.
To regenerate after a new paper:
curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=Bushin+LB%5BAuthor%5D&retmax=100&retmode=json" -o /tmp/ids.jsonThen pull esummary for those IDs and rebuild each <li class="pub"> from the returned
title, authors, source, volume, pages, and the doi article-id. Links must use
https://doi.org/<doi>, never a hand-typed PubMed ID. Keep <b>Bushin LB</b> bolded in the
author string.
Per-entry conventions:
data-topicsdrives the filter chips:rsam ripp engineering discovery microbiome first. Add a topic and the paper joins that chip automatically; the counter is computed at runtime.<span class="jr top">adds the amber highlight. It currently marks the four Nature-family papers and nothing else, because the stats block claims "4 papers in the Nature family of journals" — a reader counting amber entries must get 4. If you highlight another journal, fix that stat too.- Errata are folded into the paper they correct as an inline note, not listed separately.
Every number in .stats must be checkable against a cited source:
| Number | Source |
|---|---|
| 1000× | Scripps press release, "up to 1,000 times" — labelled as a peak |
| 3 g/L | Nature Biotechnology 2025, 1–3 g/L |
| 18 | PubMed record count, minus the erratum |
| 4 | Nature-family papers, must match the amber-highlighted entries |
An earlier draft had an invented "4 new enzymatic crosslinks" figure. Don't add a stat you cannot point at a source for.
Cards are plain HTML. To add someone, copy an existing <article class="person"> and set:
style="--c:var(--amber)"— per-card accent, cycle amber / ember / violet / cyan.avatar— initials. There are no member photos; monogram avatars are the intentional solution, so don't add a photo for one person and leave the rest as initials..edu— degree line,.links— profile chips
Keep bios within roughly 400–460 characters. Cards in a row stretch to match the tallest, so one long bio leaves visible voids in its neighbours. This was a real problem when one bio ran 40% longer than the others.
- Cite or omit. Every biographical and numerical claim on this site traces to a public source. Where nothing could be verified — Zheng Yang, Angela Rao — the card says "Profile coming soon" rather than inventing plausible filler.
- Pronouns only where a published profile establishes them. Kyla's and Ace's come from the Mercer and Berkeley Lab articles. Bailey's are unknown, so that bio is written to avoid them entirely. Do not guess from a name.
- Radical SAM stays out of current-research framing. At Leah's request it appears only in publication titles and the publications filter chip. It is not the lab's programme now. Present research is framed by her own statement: synthetic and systems biology applied to scalable production, selective biocatalysts, and late-stage functionalization.
- Both footers must match. They are duplicated across the two pages; edit both.
These need input from the lab and are the first things to fix:
- Email — nowhere on the site. Both "contact" routes point at the Stanford Chemistry
faculty page. Add a real address to the footer of both pages and to the
#joinCTA. - Building and room — only the department mail address (337 Campus Drive) is listed.
- Zheng Yang and Angela Rao — name and role only.
- Bailey Daymo's pronouns — bio currently avoids them.
- Recruiting copy in
#join— written from the department's announcement, not approved by Leah. Students may read it as policy. - Google Scholar — no profile found; ORCID and PubMed are linked instead.
No CI runs, so run these by hand.
# 1. tags balance (catches an unclosed div, which silently wrecks the layout)
python3 - <<'PY'
import html.parser
class P(html.parser.HTMLParser):
def __init__(s): super().__init__(); s.stack=[]; s.bad=[]
def handle_starttag(s,t,a):
if t not in ('meta','link','img','br','hr','input','path','circle','line','source','rect'): s.stack.append(t)
def handle_endtag(s,t):
if s.stack and s.stack[-1]==t: s.stack.pop()
elif t in s.stack: s.bad.append(t)
for f in ('index.html','people.html'):
p=P(); p.feed(open(f).read()); print(f, 'unclosed:', p.stack, 'mismatch:', p.bad)
PY
# 2. JS parses
node --check assets/js/main.js
# 3. no straight apostrophes left in prose
grep -n "[a-zA-Z]'[a-zA-Z]" index.html people.html | grep -v '="'
# 4. every outbound link resolves
cat index.html people.html | grep -oE 'href="https?://[^"]+"' | sed 's/href="//;s/"$//' | sort -u |
while read -r u; do
c=$(curl -sL -o /dev/null -w '%{http_code}' -A "Mozilla/5.0" --max-time 25 "$u")
case "$c" in 200|203|403|999) ;; *) echo " $c $u";; esac
doneExpected noise in check 4: 403 from ACS / PNAS / ASM / doi.org / phys.org and 999 from
LinkedIn are publisher bot-blocks and work fine in a browser. The two fonts.googleapis.com
and fonts.gstatic.com 404s are preconnect origins, not navigable links.
Tag-balance passing is not the same as looking right. Check, at minimum:
- 375 px wide and ~1280 px wide, in both themes
- open the mobile menu, and press Escape to close it
- a publication row on a phone — the DOI link must be visible and tappable
(it used to be
display:noneunder 720 px, which left every paper unclickable) - the nav logo at its real 26 px
Screenshots of the Claude Code browser pane sometimes render stale or partially painted
content, and JPEG compression puts blocky halos around saturated text. Confirm anything
suspicious with preview_inspect on computed styles rather than trusting the image.
Listed so they don't get reintroduced:
- Wrong PubMed IDs — 10 of 13 pointed at other people's papers. Now generated from NCBI.
- Publications unclickable on phones — the hover-reveal DOI link was
display:nonebelow 720 px. Now shown inline under the citation. - Portraits rendered at full natural height — with no author
heightrule, the presentationalheight=""attribute beataspect-ratioin the cascade, so a 900 px-tall image sat in a 300 px column..portrait imgnow setsheight: auto. - Mobile menu leaked while closed — it relied on
transformalone, and a vertically centred link column overflows a short panel. Now alsovisibility: hiddenand scrollable. - Brand and theme toggle sat under the open menu — both are raised above it now.
- Empty grid block on single-member groups — the people grid used a shared-background hairline grid, so empty cells showed as a grey slab. Now discrete bordered cards.
- Units read as exponents —
3^g/L. Stat units are baseline-aligned, not superscript. - Heading levels skipped — publication titles were
h4directly under anh2; nowh3.
Content is drawn from:
- Stanford Chemistry faculty page
- Department welcome announcement (bio, direct quotes)
- Scripps press release (xanthommatin quotes, yields, funders)
- Nature Biotechnology 2025
- NCBI eutils (publication list), ORCID public API (verified iDs)
- Member bios: Stanford Profiles, Sarafan ChEM-H, Berkeley Lab ABPDU, Mercer University news
Leah's ORCID was confirmed against her Stanford affiliation and works list; member ORCIDs came from their Stanford Profiles pages and were checked against the ORCID API by name.
cd bushin-lab-website
claudeUseful opening prompts:
- "Read the README, then regenerate the publications list from NCBI and add any new papers."
- "Add to people.html as a . Search for their public profiles first and only include what you can cite — leave the card minimal if you find nothing."
- "Run the checks in README section 5, then screenshot index.html and people.html at 375 px and 1280 px in both themes and tell me what looks wrong."
Two things worth telling any agent explicitly, because both were learned the hard way here:
- Look up identifiers; never recall them. DOIs, PubMed IDs, ORCIDs, and URLs must come from an API or a fetched page in the same session.
- Verify rendering with computed styles, not screenshots. The pane's images can be stale, clipped, or compression-artifacted.
When committing, note that git commit -m in zsh will silently eat backticked words — use
git commit -F- with a heredoc for multi-line messages.