evalstate/fast-agent / design/fast-agent-system
fast-agent-design
UnverifiedUse this skill to generate well-branded interfaces and assets for fast-agent, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for protoyping.
components/feedback/Dialog.jsx
View on GitHubimport React from 'react';
export function Dialog({ open = true, title, children, actions, onClose, inline = false, width = 460 }) {
if (!open) return null;
const panel = <div role="dialog" aria-modal={!inline} style={{ background: 'var(--paper)', color: 'var(--petrol)', border: 'var(--border)', borderRadius: 'var(--radius-lg)', padding: 24, width, maxWidth: '100%', boxSizing: 'border-box', fontFamily: 'var(--font-read)' }}>
<div style={{ display: 'flex', alignItems: 'flex-start', gap: 16 }}>
{title && <h2 style={{ margin: 0, flex: 1, fontFamily: 'var(--font-voice)', fontWeight: 900, fontVariationSettings: 'var(--voice-settings)', letterSpacing: 'var(--track-voice)', fontSize: 26, lineHeight: 1.1 }}>{title}</h2>}
{onClose && <button onClick={onClose} aria-label="Close" style={{ background: 'none', border: 0, fontFamily: 'var(--font-code)', fontSize: 20, lineHeight: 1, color: 'var(--petrol)', cursor: 'pointer', padding: 0 }}>×</button>}
</div>
<div style={{ fontSize: 15, lineHeight: 1.6, marginTop: 10 }}>{children}</div>
{actions && <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 12, marginTop: 22 }}>{actions}</div>}
</div>;
if (inline) return panel;
return <div onClick={e => { if (e.target === e.currentTarget && onClose) onClose(); }} style={{ position: 'fixed', inset: 0, background: 'rgba(8, 44, 52, 0.8)', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 24, zIndex: 100 }}>{panel}</div>;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |