What problem does it solve?
The design-system guide helps teams build UI using Sentry's core primitives to ensure visual consistency, accessibility, and maintainability across the codebase. It discourages ad-hoc styling with styled components and promotes reuse of layout and typography primitives.
Core Features & Use Cases
- Layout primitives: Container, Flex, Grid, Stack to compose responsive layouts.
- Typography primitives: Text and Heading to standardize typography across components.
- Info components: InfoTip and InfoText to provide contextual help consistently.
- Abstraction guidelines: Promote thin abstractions with user confirmation to improve readability without over-abstracting.
- Token guidance: Use responsive props and tokens for spacing, color, and typography, ensuring a single source of truth.
Quick Start
Start by importing core primitives from @sentry/scraps and compose a simple responsive layout using Flex and Text.