# Somnia Design System > Tokens, tones and React components for Somnia's marketing site and explorer, and the explorer sidebar every product page embeds. ## Setup - Install: npm install @somnia-chain/ui @somnia-chain/explorer-sidebar - CSS: @import "tailwindcss"; @import "@somnia-chain/ui/theme.css"; - Next.js: import components from "@somnia-chain/ui/next" so internal links use next/link. - Explorer chrome: import "@somnia-chain/explorer-sidebar/styles.css" and wrap pages in . - Use semantic token utilities (text-fg-2, border-line, bg-surface) rather than raw colors. - Full-height frames: use h-viewport, min-h-viewport and max-h-viewport (100dvh) or h-viewport-s, min-h-viewport-s and max-h-viewport-s (100svh), not raw dvh, svh or h-screen. The text size zooms the page and these divide by --ui-zoom; divide any other viewport length by var(--ui-zoom,1). ## Foundations - [Color](/foundations/colors): Scales, semantic tokens and how tones redefine them. - [Typography](/foundations/typography): Inter, Inter Tight and Source Code Pro, and the type utilities. - [Tones](/foundations/tones): The five section backgrounds and how they behave in each theme. - [Motion](/foundations/motion): One easing, three durations and the motion utilities every transition uses. - [Text size](/foundations/text-size): A viewer's text size, the zoom behind it, and the viewport utilities full-height frames use. ## Components - [Button](/components/button) (Button, buttonClass): A link styled as a button, in five variants and three sizes: md for marketing pages, sm for the console, xs for dense console panels. danger is for destructive actions, such as a stop switch. External links open in a new tab and get an up-right arrow. - [TextLink](/components/text-link) (TextLink, SmartLink): Inline accent link with an arrow, for 'see all' style actions beside headings. - [Input](/components/input) (Input, inputClass): The console's text field, in the heights of the console buttons: sm (36px) beside an sm button, xs (28px) beside an xs one. inputClass() styles a