RefRight design system
Tokens and components shared across every RefRight surface. Restrained, scholarly, enterprise-grade.
refright-design.css · v2.0 · Inter / JetBrains Mono
Colors
One brand color, one accent (used sparingly), four semantic, ten-step slate. Light + dark adapt automatically.
Brand · Indigo
Vela accent · sparingly used
Reserved for the Svela parent brand-mark and the Student-tier badge. Avoided in everyday UI to keep the product palette clean and trustworthy.
Semantic
Slate (neutrals)
Typography
Inter for UI & reading. JetBrains Mono for citations & code. Tightened for enterprise density.
Spacing
4 px base. Use multiples for all margins, padding, gaps.
Radii & shadows
Subtler than v1. md on inputs and buttons, lg on cards, full on pills only.
Border radii
Shadow scale
Form inputs
36 px height. Subtle elevation by default. Clear focus ring. Inline validation.
Cards
Default, elevated, interactive, accented. Tightened padding for enterprise density.
Plain card
Base surface with thin border. Used for lists, settings panels, content blocks.
Elevated card
Soft drop-shadow. Used for dialogs, drawers, popovers.
Hover me
Border darkens on hover. Used for clickable list items.
Featured
Brand-bordered. Used for highlight cards (e.g., "Most popular" pricing).
KPI & stat cards
Used on the dashboard. Tabular numerals for clean alignment.
Citation cards
Domain-specific. Left border conveys validation status at a glance.
Badges, pills & dots
Always paired with text or context — never floating alone.
Badges
Pills
Alerts
Inline messaging for system feedback. Four severities.
Toasts
Transient confirmation. Top-right of the viewport. Auto-dismiss after 4 s.
Modal
Static example. In production the overlay covers the viewport.
Tabs & segmented controls
Tabs for primary navigation in a page. Segmented for binary or 2–3 option toggles.
Tabs
Segmented
Empty states
Use whenever a list, tab, or page has no content yet. Always offer a clear next action.
Your library is empty
Save references from the workspace, import from BibTeX/RIS, or look up a DOI to get started.
Progress & skeletons
Used during batch processing and async loading.
Progress bar
Skeleton loader
Avatars & user chips
Use the user's initials. Background tints by user-hash later.
Tables
Used for compare grids, library lists, usage logs.
| Reference | Year | DOI | Status |
|---|---|---|---|
| Verified | |||
| Smith, J. (2020). Title of paper. Nature, 580(7803), 100–105. | 2020 | 10.1038/s41586-020... | OK |
| Brown, R. & Lee, S. (2019). Comparative review. Cell, 178(4), 720–735. | 2019 | 10.1016/j.cell.2019... | OK |
| Needs review | |||
| Anonymous (n.d.). Untitled. Unknown. | — | — | Incomplete |
| Wei, X. et al. (2018). Disputed paper. The Lancet, 391, 105–110. | 2018 | 10.1016/S0140... | Retracted |