Alert Component Prompt
Prompt intent
Generate Alert implementations that follow Yoonet AU & NZ tokens, typography, spacing, and interaction conventions.
Output target
Alert variants + usage-ready code
ℹ
Heads up
This action will affect all team members.
⚠
Destructive action
Deleting this project cannot be undone.
OK
Changes saved
Your project was updated successfully.
alert-prompt.txtComponent prompt
# Alert — Yoonet AU & NZ Component Prompt
You are building a Alert component for Yoonet AU & NZ.
Use shadcn/ui with the CSS variables below applied to :root.
## Active Brand Tokens
--primary: hsl(231 100% 77%); /* #8A9EFF */
--primary-foreground: hsl(0 0% 100%); /* #fff */
--secondary: hsl(183 70% 76%);
--secondary-foreground: hsl(235 22% 12%);
--destructive: hsl(341 100% 70%); /* #FF6495 */
--radius: 0.5rem;
--font-heading: var(--font-heading); /* Manrope */
--font-body: var(--font-body); /* Inter */
## Typography
- Heading font: Manrope (weights 700, 800)
- Body / UI font: Inter (weights 400, 700)
## Code Conventions
- Import from @/components/ui/alert
- Use cn() from @/lib/utils for conditional classes
- "use client" only when state or events are needed
- No inline hex values — always reference CSS variables
## Usage
```tsx
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert"
{/* Info */}
<Alert>
<AlertTitle>Heads up</AlertTitle>
<AlertDescription>This action will affect all team members.</AlertDescription>
</Alert>
{/* Destructive */}
<Alert variant="destructive">
<AlertTitle>Error</AlertTitle>
<AlertDescription>Something went wrong. Please try again.</AlertDescription>
</Alert>
```
## Rules
- Info alerts: var(--primary) accent, var(--primary)/10 background
- Destructive alerts: var(--destructive) = #FF6495, use sparingly
- Success state: #10B981 (outside token system — use only for confirmations)
- Always include both AlertTitle and AlertDescriptionRecommended workflow
- Select your brand and component variant first.
- Paste this prompt in your AI tool and request one state at a time.
- Validate spacing, contrast, and interaction states before shipping.