Getting Started
Get up and running with the ttoss Design System in minutes.
Installation
npm install @ttoss/ui @ttoss/theme
Basic Setup
1. Wrap Your App with ThemeProvider
import { ThemeProvider } from '@ttoss/ui';
import { BruttalTheme } from '@ttoss/theme/Bruttal';
export const App = () => (
<ThemeProvider theme={BruttalTheme}>{/* Your app content */}</ThemeProvider>
);
2. Use Components
import { Button, Text, Box } from '@ttoss/ui';
export const MyComponent = () => (
<Box sx={{ padding: 4 }}>
<Text variant="headline">Welcome to ttoss</Text>
<Button variant="primary">Get Started</Button>
</Box>
);
3. Access Design Tokens
import { Box } from '@ttoss/ui';
export const TokenExample = () => (
<Box
sx={{
backgroundColor: 'action.background.primary.default',
color: 'action.text.secondary.default',
padding: 'lg',
borderRadius: 'sm',
}}
>
Using semantic tokens
</Box>
);
Next Steps
- Explore Components: Interactive component library
- Understand Design Tokens: Foundation of our design system
- View Examples: Real-world usage patterns
Development Workflow
For Designers
- Use Figma components that match our design tokens
- Reference token names in design handoffs
- Collaborate with developers using shared vocabulary
For Developers
- Import components and themes from
@ttoss/ui
- Use semantic tokens through the
sx
prop - Create new components following our patterns
Need Help?
- Storybook Documentation: Interactive examples
- Design System Overview: Core concepts
- Token Reference: All available tokens