|
1 |
| -import "./App.css"; |
2 |
| -import { ThemeSwitcher, useTheme } from "@signozhq/theme"; |
3 |
| -import { Button } from "@signozhq/button"; |
4 |
| -import { Typography } from "@signozhq/design-tokens"; |
5 |
| -import { Spacing } from "@signozhq/design-tokens"; |
| 1 | +import './App.css'; |
6 | 2 |
|
7 |
| -function App() { |
8 |
| - const { theme, currentThemeColors } = useTheme(); |
| 3 | +import { ThemeSwitcher, useTheme } from '@signozhq/theme'; |
| 4 | +import Button from '@signozhq/button'; |
| 5 | +import { Typography } from '@signozhq/design-tokens'; |
| 6 | +import { Spacing } from '@signozhq/design-tokens'; |
| 7 | +import { ColorTailwind } from '@signozhq/design-tokens'; |
| 8 | +import { ArrowBigRightDash, Wrench } from 'lucide-react'; |
9 | 9 |
|
10 |
| - return ( |
11 |
| - <> |
12 |
| - <h1>Theme Switcher and Button</h1> |
13 |
| - <ThemeSwitcher /> |
| 10 | +function App() { |
| 11 | + const { currentThemeColors } = useTheme(); |
| 12 | + console.log(ColorTailwind); |
14 | 13 |
|
15 |
| - <Button theme={theme} variant="secondary"> |
16 |
| - hey |
17 |
| - </Button> |
| 14 | + return ( |
| 15 | + <> |
| 16 | + <h1>Theme Switcher and Button</h1> |
| 17 | + <ThemeSwitcher /> |
18 | 18 |
|
19 |
| - <h1>Design tokens</h1> |
20 |
| - <p |
21 |
| - style={{ |
22 |
| - background: currentThemeColors.TEXT_COLOR, |
23 |
| - letterSpacing: Spacing.MARGIN_10, |
24 |
| - fontSize: Typography.FONTSIZE_3XL, |
25 |
| - }} |
26 |
| - > |
27 |
| - hey |
28 |
| - </p> |
29 |
| - </> |
30 |
| - ); |
| 19 | + <Button |
| 20 | + backgroundColor="robin-500" |
| 21 | + textColor="vanilla-100" |
| 22 | + size="md" |
| 23 | + prefixIcon={<Wrench />} |
| 24 | + suffixIcon={<ArrowBigRightDash />} |
| 25 | + > |
| 26 | + Click Me |
| 27 | + </Button> |
| 28 | + <h1>Design tokens</h1> |
| 29 | + <p |
| 30 | + style={{ |
| 31 | + background: currentThemeColors.TEXT_COLOR, |
| 32 | + letterSpacing: Spacing.MARGIN_10, |
| 33 | + fontSize: Typography.FONTSIZE_3XL, |
| 34 | + }} |
| 35 | + > |
| 36 | + hey |
| 37 | + </p> |
| 38 | + </> |
| 39 | + ); |
31 | 40 | }
|
32 | 41 |
|
33 | 42 | export default App;
|
0 commit comments