Skip to content

Commit

Permalink
chore: testing button component in packages-playground
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshaheer committed Feb 26, 2025
1 parent e7ae565 commit 08810f6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
61 changes: 35 additions & 26 deletions apps/packages-playground/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
import "./App.css";
import { ThemeSwitcher, useTheme } from "@signozhq/theme";
import { Button } from "@signozhq/button";
import { Typography } from "@signozhq/design-tokens";
import { Spacing } from "@signozhq/design-tokens";
import './App.css';

function App() {
const { theme, currentThemeColors } = useTheme();
import { ThemeSwitcher, useTheme } from '@signozhq/theme';
import Button from '@signozhq/button';
import { Typography } from '@signozhq/design-tokens';
import { Spacing } from '@signozhq/design-tokens';
import { ColorTailwind } from '@signozhq/design-tokens';
import { ArrowBigRightDash, Wrench } from 'lucide-react';

return (
<>
<h1>Theme Switcher and Button</h1>
<ThemeSwitcher />
function App() {
const { currentThemeColors } = useTheme();
console.log(ColorTailwind);

<Button theme={theme} variant="secondary">
hey
</Button>
return (
<>
<h1>Theme Switcher and Button</h1>
<ThemeSwitcher />

<h1>Design tokens</h1>
<p
style={{
background: currentThemeColors.TEXT_COLOR,
letterSpacing: Spacing.MARGIN_10,
fontSize: Typography.FONTSIZE_3XL,
}}
>
hey
</p>
</>
);
<Button
backgroundColor="robin-500"
textColor="vanilla-100"
size="md"
prefixIcon={<Wrench />}
suffixIcon={<ArrowBigRightDash />}
>
Click Me
</Button>
<h1>Design tokens</h1>
<p
style={{
background: currentThemeColors.TEXT_COLOR,
letterSpacing: Spacing.MARGIN_10,
fontSize: Typography.FONTSIZE_3XL,
}}
>
hey
</p>
</>
);
}

export default App;
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
'react/react-in-jsx-scope': 'off',
},
},
];

0 comments on commit 08810f6

Please sign in to comment.