-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: testing button component in packages-playground
- Loading branch information
1 parent
e7ae565
commit 08810f6
Showing
2 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters