Skip to main content

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

Development Workflow

For Designers

  1. Use Figma components that match our design tokens
  2. Reference token names in design handoffs
  3. Collaborate with developers using shared vocabulary

For Developers

  1. Import components and themes from @ttoss/ui
  2. Use semantic tokens through the sx prop
  3. Create new components following our patterns

Need Help?