Skip to content

Commit 08810f6

Browse files
committed
chore: testing button component in packages-playground
1 parent e7ae565 commit 08810f6

File tree

2 files changed

+40
-26
lines changed

2 files changed

+40
-26
lines changed

apps/packages-playground/src/App.tsx

+35-26
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,42 @@
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';
62

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';
99

10-
return (
11-
<>
12-
<h1>Theme Switcher and Button</h1>
13-
<ThemeSwitcher />
10+
function App() {
11+
const { currentThemeColors } = useTheme();
12+
console.log(ColorTailwind);
1413

15-
<Button theme={theme} variant="secondary">
16-
hey
17-
</Button>
14+
return (
15+
<>
16+
<h1>Theme Switcher and Button</h1>
17+
<ThemeSwitcher />
1818

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+
);
3140
}
3241

3342
export default App;

eslint.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ export default [
1919
pluginJs.configs.recommended,
2020
...tseslint.configs.recommended,
2121
pluginReact.configs.flat.recommended,
22+
{
23+
rules: {
24+
'react/react-in-jsx-scope': 'off',
25+
},
26+
},
2227
];

0 commit comments

Comments
 (0)