Complete guide to installing and using Tempo UI components in your projects.
@mickey:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=YOUR-GITHUB-TOKEN
Replace YOUR-GITHUB-TOKEN with a GitHub Personal Access Token that has read:packages scope.
npm install @mickey/tempo-ui
npm install next-themes
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
// Add this line
"./node_modules/@mickey/tempo-ui/dist/**/*.{js,ts,jsx,tsx}",
],
// ... rest of config
}@import "@mickey/tempo-ui/dist/index.css";
import { ThemeProvider } from 'next-themes'
export default function RootLayout({ children }) {
return (
<html lang="en" suppressHydrationWarning>
<body>
<ThemeProvider
attribute="class"
forcedTheme="dark"
defaultTheme="dark"
>
{children}
</ThemeProvider>
</body>
</html>
)
}import { Button, Card, Badge } from '@mickey/tempo-ui'
export default function MyComponent() {
return (
<Card>
<Button variant="brand">Click me</Button>
<Badge variant="success">New Feature</Badge>
</Card>
)
}import {
Card, CardContent, CardHeader, CardTitle,
Input, Label, Button, Checkbox
} from '@mickey/tempo-ui'
export default function LoginForm() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>Login</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<div className="space-y-2">
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="name@example.com" />
</div>
<div className="space-y-2">
<Label htmlFor="password">Password</Label>
<Input id="password" type="password" />
</div>
<div className="flex items-center space-x-2">
<Checkbox id="remember" />
<Label htmlFor="remember">Remember me</Label>
</div>
<Button className="w-full" variant="brand">
Sign In
</Button>
</CardContent>
</Card>
)
}import { useToast, Toaster, Button } from '@mickey/tempo-ui'
export default function NotificationExample() {
const { toast } = useToast()
return (
<div>
<Toaster />
<Button
onClick={() => {
toast({
title: "Success!",
description: "Your changes have been saved.",
variant: "success",
})
}}
>
Show Success Toast
</Button>
</div>
)
}Button - default | brand | success | destructive | outline | secondary | ghost | linkInput - Text inputs with glassmorphismLabel - Form labelsCheckbox - Custom checkboxesSwitch - Toggle switchesSelect - Dropdown selectsCard - Content containers with glass effectSeparator - Visual dividersTabs - Tabbed navigationTable - Data tablesDialog - Modal dialogsBadge - default | secondary | destructive | outline | success | brandToast - Notifications with iconsTooltip - Hover informationDropdownMenu - Context menusThemeToggle - Dark mode indicator# Check for updates npm outdated # Update to latest npm update @mickey/tempo-ui # Update to specific version npm install @mickey/tempo-ui@1.2.3
Semantic Versioning: