.cursor/skills/ui-design-styling/SKILL.md
Design and style UI components for ryOS following the 4 OS themes (System 7, macOS Aqua, Windows XP, Windows 98). Use when creating UI components, styling elements, working with themes, adding visual effects, or implementing retro OS aesthetics.
npx skillsauth add ryokun6/ryos ui-design-stylingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Theme | ID | Key Traits |
|-------|-----|------------|
| System 7 | system7 | Black/white, square corners, Chicago font, dotted patterns |
| macOS Aqua | macosx | Pinstripes, traffic lights, glossy buttons, Lucida Grande |
| Windows XP | xp | Blue gradients, Luna style, soft shadows, Tahoma |
| Windows 98 | win98 | Gray 3D bevels, classic blue title bars, MS Sans Serif |
import { cn } from "@/lib/utils";
import { useTheme } from "@/contexts/ThemeContext";
const { osTheme } = useTheme();
// Theme-conditional classes
className={cn(
"base-classes",
osTheme === "macosx" && "aqua-specific",
osTheme === "system7" && "system7-specific"
)}
className="bg-os-window-bg" // Window background
className="border-os-window" // Window border
className="rounded-os" // Theme-appropriate radius
className="font-os-ui" // UI font stack
className="font-os-mono" // Monospace font
className="shadow-os-window" // Window shadow
className="h-os-titlebar" // Title bar height
Access via var(--name):
--os-font-ui, --os-font-mono
--os-color-window-bg, --os-color-window-border
--os-color-titlebar-active-bg, --os-color-titlebar-inactive-bg
--os-color-button-face, --os-color-button-highlight, --os-color-button-shadow
--os-color-selection-bg, --os-color-selection-text
--os-metrics-border-width, --os-metrics-radius
--os-metrics-titlebar-height, --os-metrics-menubar-height
<div className={cn(
"border-2 border-black bg-white rounded-none",
"font-chicago text-black",
"shadow-[2px_2px_0px_0px_rgba(0,0,0,0.5)]"
)}>
<div className={cn(
"bg-[#E8E8E8] border border-black/30",
"rounded-lg font-lucida-grande",
"shadow-[0_3px_10px_rgba(0,0,0,0.3)]"
)}>
<button className="aqua-button primary">OK</button>
</div>
<div className={cn(
"bg-[#ECE9D8] border-[3px] border-[#0054E3]",
"rounded-[0.5rem] font-tahoma",
"shadow-[0_4px_8px_rgba(0,0,0,0.25)]"
)}>
<div className={cn(
"bg-[#C0C0C0] border-2 rounded-none font-ms-sans-serif",
"border-t-white border-l-white",
"border-b-[#808080] border-r-[#808080]"
)}>
system7)| Property | Value |
|----------|-------|
| Fonts | Chicago, Monaco (mono) |
| Window BG | #FFFFFF |
| Border | 2px solid #000000 |
| Radius | 0px |
| Selection | Black bg, white text |
| Shadow | 2px 2px 0px 0px rgba(0,0,0,0.5) |
macosx)| Property | Value |
|----------|-------|
| Fonts | Lucida Grande, Monaco (mono) |
| Window BG | #E8E8E8 |
| Border | 0.5px solid rgba(0,0,0,0.3) |
| Radius | 0.45rem (8px) |
| Selection | #3875D7 bg, white text |
| Shadow | 0 3px 10px rgba(0,0,0,0.3) |
| Traffic Lights | Red #FF5F57, Yellow #FEBC2E, Green #28C840 |
xp)| Property | Value |
|----------|-------|
| Fonts | Tahoma, Consolas (mono) |
| Window BG | #ECE9D8 |
| Border | 3px solid #0054E3 |
| Radius | 0.5rem (8px) |
| Selection | #316AC5 bg, white text |
| Shadow | 0 4px 8px rgba(0,0,0,0.25) |
| Title Bar | Blue gradient #0A246A → #0054E3 |
win98)| Property | Value |
|----------|-------|
| Fonts | MS Sans Serif, Fixedsys (mono) |
| Window BG | #C0C0C0 |
| Raised Bevel | border: 2px solid; border-color: #FFF #808080 #808080 #FFF |
| Sunken Bevel | border: 2px solid; border-color: #808080 #FFF #FFF #808080 |
| Radius | 0px |
| Selection | #000080 bg, white text |
| Title Bar | Gradient #000080 → #1084D0 |
import { Button } from "@/components/ui/button";
<Button variant="default">Standard</Button>
<Button variant="retro">Retro Style</Button>
<Button variant="aqua">Aqua (macOS)</Button>
<button className="aqua-button">Default</button>
<button className="aqua-button primary">Primary (pulsing)</button>
<button className="aqua-button secondary">Secondary</button>
<button className={cn(
"px-4 py-1 bg-[#C0C0C0]",
"border-2 border-t-white border-l-white",
"border-b-[#808080] border-r-[#808080]",
"active:border-t-[#808080] active:border-l-[#808080]",
"active:border-b-white active:border-r-white"
)}>
<div className="bg-white/80 backdrop-blur-lg rounded-lg">
<div className="bg-black/40 backdrop-blur-xl text-white">
<div className={cn(
"p-4 bg-os-window-bg border-os-window rounded-os",
osTheme === "system7" && "border-2 border-black",
osTheme === "macosx" && "shadow-md",
osTheme === "win98" && "border-2 border-t-white border-l-white border-b-[#808080] border-r-[#808080]"
)}>
| Component | Usage |
|-----------|-------|
| AudioBars | Frequency visualization |
| PlaybackBars | Equalizer animation |
| VolumeBar | Horizontal volume indicator |
| Dial | Circular dial control (sm/md/lg) |
| RightClickMenu | Context menu wrapper |
import { Dial } from "@/components/ui/dial";
<Dial value={50} onChange={setValue} size="md" label="Volume" />
| Mode | Use Case |
|------|----------|
| default | Standard opaque windows |
| transparent | Semi-transparent (iPod, Photo Booth) |
| notitlebar | Immersive with floating controls (Videos) |
cn() for conditional class mergingbg-os-*, border-os-*) when availableuseTheme() for complex conditional renderingdevelopment
Update ryOS documentation by analyzing the codebase and syncing docs with current implementation. Use when updating docs, syncing documentation, or when docs are outdated.
development
Localize ryOS apps and components by extracting hardcoded strings, replacing with translation keys, and syncing across languages. Use when localizing an app, adding i18n support, translating UI text, or working with translation files.
development
Create new applications for ryOS following established patterns and conventions. Use when building a new app, adding an application to the desktop, creating app components, or scaffolding app structures.
content-media
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).