Typography
Fifteen text styles in five roles: display, headline, title, body and label. Prose sets long text, such as rendered Markdown or a methods section, in those styles, and the shadcn typography pieces are here for building pages by hand.
Install
npx shadcn@latest add @nelumbo/typographyType scale
Each style is one utility class, such as type-title-lg, that sets size, line height, weight and tracking together. Larger styles are tighter and heavier, and smaller ones open up so they stay readable. The figures are read from the page.
Typefaces
The docs use Geist and Geist Mono. Nelumbo leaves the font to your project: set --font-sans and --font-mono and the scale follows.
Numbers
Use tabular-nums wherever numbers sit in columns or change in place, like tables, counters and timers, so the digits line up and don't jitter. Prose tables do this for you.
Prose
Wrap plain HTML in Prose and it takes the scale: headings, links, lists, a quote, inline code and keys, a table, sub- and superscripts and a short centered rule. Lines stay under about 68 characters for comfortable reading.
Library preparation
Total RNA (500 ng, RIN ≥ 8) was polyA-selected and fragmented for 8 min at 94 °C. First-strand synthesis used random hexamers in 1× buffer with 3 mM MgCl2, and libraries were indexed with 12 PCR cycles. We followed the kit protocol with one change: the bead cleanup ratio was raised to 0.9× to keep fragments above 200 bp.1
Quality control
Each library passed three checks before pooling:
- Concentration above 2 ng/µL by Qubit
- A single peak between 300 and 500 bp on the Bioanalyzer
- Adapter dimers below 3% of the trace
- Fewer than 0.1% reads mapping to E. coli in a shallow test run
Pool by molarity, not by volume. Two libraries with the same ng/µL can differ twofold in molecules.
Core facility handbook, section 4.2
Sequencing
Pools were loaded at 650 pM and run 2 × 150 bp. Demultiplexing used bcl-convert with one mismatch allowed per index; press Ctrl + C to stop a run in the console.
| Sample | Tissue | Reads (M) | Mapped |
|---|---|---|---|
| S01 | Liver | 42.8 | 94.2% |
| S02 | Liver | 38.1 | 93.7% |
| S03 | Kidney | 9.6 | 88.0% |
- Trim adapters and low-quality tails
- Align with STAR, two-pass mode
- Count with salmon against GENCODE v46
1 Raising the ratio drops yield by about 15%, which is fine at 500 ng input.
<Prose> <h2>Library preparation</h2> <p>Total RNA (500 ng, RIN ≥ 8) was polyA-selected …</p> <ul> <li>Concentration above 2 ng/µL by Qubit</li> </ul></Prose>// rendered Markdown<Prose dangerouslySetInnerHTML={{ __html: html }} />Prose sizes
size sm suits side panels and notes; lg suits a reading view. Headings and spacing scale with it.
sm
Storage
Keep libraries at −20 °C for up to six months. Avoid more than three freeze–thaw cycles; aliquot pools before long-term storage.
lg
Storage
Keep libraries at −20 °C for up to six months. Avoid more than three freeze–thaw cycles; aliquot pools before long-term storage.
Named pieces
The same names as shadcn's typography examples, so pages written for shadcn keep working. Each takes asChild to render a different element.
Taming the transcriptome
A practical guide to bulk RNA-seq, from sample to differential expression, for labs running their first study.
Before you sequence
Most failed experiments fail at the bench, not in the analysis. Plan replicates first: three per condition is the minimum, and design = ~ batch + treatment only helps if batches cross conditions.
Replicates beat depth
- Six samples at 20 M reads beat three at 40 M
- Randomize extraction order across conditions
- Record RIN, input and kit lot for every sample
A note on pooling
Pool by molarity, not by volume.Core facility handbook
| Condition | Replicates | Depth (M) |
|---|---|---|
| Vehicle | 6 | 20.0 |
| Drug, 1 µM | 6 | 20.0 |
Updated 2 minutes ago
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
Prose size | "sm" | "md" | "lg" | "md" | Body size and spacing; headings follow. |
Prose asChild | boolean | false | Style an article, section or Markdown root instead of a div. |
Typography* asChild | boolean | false | Render a piece as a different element, e.g. a TypographyH2 as an h1. |
type-* classes | utility | — | display, headline and title in lg, md, sm; body and label in lg, md, sm. |