AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read microsoft--frontend-ui-dark-ts at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 4

references/components.md · 24000

heckCircleIcon> = { success: CheckCircleIcon, error: XCircleIcon, warning: ExclamationCircleIcon, info: InformationCircleIcon, };

const variants: Record<ToastVariant, string> = { success: 'text-status-success', error: 'text-status-error', warning: 'text-status-warning', info: 'text-status-info', };

function ToastContainer() { const { toasts, removeToast } = useToast();

return ( {toasts.map((toast) => { const Icon = icons[toast.variant]; return ( <motion.div key={toast.id} initial={{ opacity: 0, y: 20, scale: 0.95 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, x: 100, scale: 0.95 }} transition={{ duration: 0.2 }} className="glass-card p-4 min-w-[300px] max-w-[400px] flex items-start gap-3" > <Icon className={clsx('w-5 h-5 flex-shrink-0 mt-0.5', variants[toast.variant])} /> {toast.title} {toast.description && ( {toast.description} )} <button onClick={() => removeToast(toast.id)} className="text-text-muted hover:text-text-primary transition-colors" > </motion.div> ); })} ); }


### Toast Usage

```tsx
// Wrap app with provider
<ToastProvider>
  <App />
</ToastProvider>

// Use in components
const { addToast } = useToast();

addToast({
  variant: 'success',
  title: 'Changes saved',
  description: 'Your settings have been updated.',
});

addToast({
  variant: 'error',
  title: 'Error',
  description: 'Something went wrong.',
});

Component Index

Export all components from a central file:

// src/components/ui/index.ts
export { Button } from './Button';
export { Input, SearchInput } from './Input';
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './Card';
export { Badge } from './Badge';
export { Dialog, DialogFooter } from './Dialog';
export { Tabs, TabsList, TabsTrigger, TabsContent } from './Tabs';
export { Avatar } from './Avatar';
export { Checkbox } from './Checkbox';
export { Select } from './Select';
export { ToastProvider, useToast } from './Toast';