Token reference and component library for StudyLens. Every color, component, and pattern on this page is rendered using the live token system — toggle dark mode in the header to see all tokens switch automatically.
All colors are CSS custom properties defined in globals.css. Light values shown first, dark values after the slash. Swatches render the live token — they switch automatically with the theme.
--background--foreground--card--card-foreground--popover--popover-foreground--primary--primary-foreground--secondary--secondary-foreground--accent--accent-foreground--muted--muted-foreground--border--input--ring--destructive--destructive-foreground--success--success-foreground--success-muted--warning--warning-foreground--warning-muted--info--info-foreground--info-muted--gold--gold-foreground--gold-muted--silver--silver-foreground--silver-muted--bronze--bronze-foreground--bronze-mutedtext-xs0.75rem / 12pxExtra small texttext-sm0.875rem / 14pxSmall texttext-base1rem / 16pxBase texttext-lg1.125rem / 18pxLarge texttext-xl1.25rem / 20pxExtra large texttext-2xl1.5rem / 24px2XL headingtext-3xl1.875rem / 30px3XL headingtext-4xl2.25rem / 36px4XL headingtext-xsconst data = await fetch(url);text-smconst data = await fetch(url);text-baseconst data = await fetch(url);text-lgconst data = await fetch(url);text-xlconst data = await fetch(url);Tailwind spacing utilities. Each unit = 0.25rem = 4px.
10.25rem / 4px20.5rem / 8px30.75rem / 12px41rem / 16px51.25rem / 20px61.5rem / 24px82rem / 32px102.5rem / 40px123rem / 48px164rem / 64px205rem / 80px246rem / 96pxrounded-sm6pxrounded-md8pxrounded-lg12pxrounded-xl16pxshadow-smshadow-mdshadow-lgCards use bg-card and border-border tokens.
Cards support hover states with hover:shadow-md. Used for collection listings and dashboard cards.
This demonstrates how cards compose with badges, titles, and metadata — matching the study page header pattern.
border-muted + border-t-primarySample size (N) is the number of participants in a study. Larger samples provide more reliable results. Very small studies (N < 30) have wide uncertainty margins. Always check whether the study was adequately powered.
Learn more →max-w-sm(384px)max-w-lg(512px)max-w-2xl(672px)max-w-4xl(896px)max-w-6xl(1152px)Description text using text-muted-foreground token.
Description text using text-muted-foreground token.
Description text using text-muted-foreground token.
Description text using text-muted-foreground token.
Facts, abstract, and media coverage render here in a single column.
Quick stats, quality flags, and teaching cards.
Font Awesome icons used throughout StudyLens. All rendered at the actual component size.
faFlaskfaNewspaperfaBookOpenfaLayerGroupfaMagnifyingGlassfaArrowUpRight...faChevronDownfaChevronRightfaTriangleExcl...faCheckfaMinusfaPlusfaSpinnerfaUsersfaCalendarDaysfaQuoteLeftfaSunfaMoonAA requires 4.5:1 for normal text, 3:1 for large text. All primary text combinations meet AA or better.
Tab through these elements to see focus ring styles. Focus rings use the ring token (teal in light, teal-400 in dark).