Typography
An overview of all available typography CSS variables.
Use shared typography styles to keep text consistent across apps. You can find the
heading, text, and link utilities in typography.css.
Primary text
Use text-primary for readable text in Supabase green.
text-primary meets WCAG AA for normal text on app surfaces: darkened in light mode,
bright in dark mode. Focus rings and selected controls derive their brighter fill from
the same primary hue. See Primary and brand colors for when
to use each green.
Inline code
Apps that import config/inline-code.css get shared styles for inline <code>, including
a border, background, and default foreground color. Code inherits the surrounding font weight
and line height. Sizing keeps code readable beside small text, then stays 2px below the
surrounding text from 16px upward, with a minimum of 0.75rem (normally 12px).
| Surrounding text | Inline code |
|---|---|
| 13px | 12px |
| 14px | 12.5px |
| 15px | 13.25px |
| 16px | 14px |
| 20px | 18px |
These sizes assume the standard 16px root font size.
Long identifiers stay intact when they fit on the next line, but can break to avoid overflow.
Tailwind utilities can override the defaults. A size class on <code> sets its size directly;
put the class on a parent to keep the automatic sizing:
<span className="text-sm">
<code>project_id</code>
</span>Code blocks and syntax-highlighting containers keep their own styles. For other custom
displays, such as a command strip, add data-code-style="plain" to the <code> element
or a parent. This removes all shared inline-code styles from that element and its descendants,
so the display can control its own appearance.