Life design system
A quiet, precise interface system for Sarvam workspaces, components, and documentation.
Overview
Life is the shared visual language for Sarvam’s Platform, Cowork, and Code workspaces and their design-system catalog. Give the work the strongest hierarchy. Keep navigation, tooling, and supporting information calm enough to scan repeatedly throughout the day.
This guide focuses on Life as rendered in the catalog. Its YAML captures representative values from the implementation. For the full palette and alias chains, use the Figma token export and tokens.css. For Factory-specific pane dimensions, density, and recipes, see the Factory design guidance and the component specimens.
Colors
- Use
--sv-background-canvasfor the surrounding ground,--sv-background-primaryfor the main reading or working surface, and--sv-background-chromefor chrome that needs a distinct plane. Separate adjacent surfaces with a single--sv-border-defaultedge where a boundary is useful. - Use
--sv-content-primaryfor the strongest readable text and--sv-content-secondaryfor supporting text. Use--sv-content-linkfor links and--sv-background-actionwith--sv-content-on-actionfor primary controls. Orange in Light and warm gold in Dark provide the accent. - Pair status color with a label, shape, or glyph. Keep chart series, syntax highlighting, diffs, and terminal output on their own semantic families. Check contrast where the content actually renders, including active controls and overlays.
- The semantic tables show Light and Dark together, with each swatch beside its primitive alias and resolved value. In Figma, the canonical Content family is
core/content/<role>. Use--sv-content-<role>on web andFactoryTokens.content_<role>on Android.
Typography
Inter is the default Life catalog family. Use a 32 px semibold page title and keep interface copy compact. Catalog cards use a 14 px medium title and a 13 px regular description. Keep reading widths comfortable and reserve monospace for identifiers, paths, commands, and source code.
Use the Typography reference to choose size, weight, leading, tracking, and family. Keep hierarchy apparent through size, weight, and spacing so it carries across the available font modes.
Layout
- Give the main catalog sections a consistent starting point. Primitives & Tokens, Components, Skills, and Prototypes each open to an overview with direct links into their contents.
- Start the desktop catalog sidebar at 280 px. Let it resize within its supported range. Center the divider highlight at the grab point while dragging. In short lists, keep “The end.” at the bottom. In long lists, put it after the last item in the scroll area.
- Use the shared catalog card grid for navigation. On wide token indexes, show up to five cards per row. Let the grid wrap as space narrows. Use a 12 px gap and a 16 px card inset in the standard grid.
- Center the skill reader on a quiet canvas. Put the copy actions just above the paper, aligned to its right edge. Set the title and description above a divider, then let the document body read in one column.
Elevation & Depth
Use tonal surfaces, spacing, and hairlines for resting hierarchy. Product components follow the three flat surface roles (ground, surface, tray), with no shadows, in the visual-direction skill. Catalog cards have a subtle grey fill mixed from the primary and hover surfaces, with a slightly stronger fill on hover. The skill reader uses a square sheet, a hairline edge, and a restrained shadow. Reserve stronger elevation for floating or layered surfaces that need it.
Shapes
Use 12 px corners for catalog cards and 8 px for compact catalog controls. Keep the skill sheet square. Use pill shapes where the established recipe calls for them. Check the specimen before choosing a radius for a product component.
Motion & Micro-interaction
Use motion to clarify a state change or the relationship between surfaces. Keep local feedback quick. Let the sidebar resize track the pointer directly. Honor reduced-motion preferences and retain the visible state change when a transition is reduced.
See Motion and Keyboard and focus for component behavior and accessibility details.
Voice & Content Strategy
Write in plain, calm language. Use sentence case for action labels, helper copy, and status messages. Preserve established product names and menu labels. Name the outcome of an action, such as “Copy link” or “Save changes.” For empty and error states, say what happened and give a next step when one exists.
In a component preview, put a short prompt beside the interaction when it helps someone know what to try. For example, “Select Save changes to see the loading and confirmation states.”
Components
- Buttons and fields. Start from the Button specimen and the TextField and Combobox specimens. Use visible labels, preserve focus treatment, and show supported states near the working example.
- Feedback and overlays. Use the Banner, Toast, and Dialog specimens to choose a pattern that matches the scope of the event. Check announcement, dismissal, and focus return as appropriate.
- Icons. Use the catalog’s Stroke Standard library. Follow the icon size and stroke pair in the sizing reference, and give icon-only actions accessible names.
- Catalog cards. Use a 24 px icon, a short title, and a concise description. Give neighboring categories distinct icons where the icons help people tell them apart.
- Specimens. Keep the reusable recipe in the component layer and put fixtures and demo controls in the authored preview. Lead with one working example, label the states people need to compare, and make the result visible and repeatable.
Do's and Don'ts
- Start with an existing recipe, then apply semantic roles that match the job. Use the authored source and keep generated files in sync through the token build.
- Check Light and Dark, narrow and wide layouts, and keyboard behavior at the normal entry point. Give focus a visible indicator and provide a keyboard alternative for essential drag actions. See Accessibility.
- Follow the Figma and comparison-board workflow in the repository’s
AGENTS.mdfor token changes. Preserve variable bindings and update affected specimens and mappings in the prescribed order.