Skip to content
frontend-design logo

Frontend Design

frontend-design

Create frontend components and pages for the Fables & Sagas D&D app. Use this skill when building UI for the dnd-homebrew-frontend project. Generates code that matches the existing dark fantasy aesthetic, theme system, and component patterns.

SKILL.md

Full skill instructions

This skill guides creation of frontend interfaces for the Fables & Sagas D&D Solo app. All output must integrate seamlessly with the existing codebase and its dark medieval fantasy aesthetic.

Tech Stack

  • Framework: Next.js 16 with React 19, TypeScript
  • Styling: Tailwind CSS v4 with DaisyUI v5
  • State: Zustand (useDnDStore from @/​stores/​useStore)
  • Icons: lucide-react (primary), @mdi/​react + @mdi/​js (supplemental)
  • Toasts: sonner (dark theme, custom styled — see layout.tsx)
  • Lists: react-virtuoso for virtualized scrolling
  • Markdown: react-markdown
  • Fonts loaded via next/​font/​google:
    • MedievalSharp — display/​headings (import from @/​app/​components/​medievalFont)
    • EB_Garamond — secondary display
    • Geist / Geist_Mono — body text (CSS variables --font-geist-sans, --font-geist-mono)

Theme: "fables"

DaisyUI custom theme (data-theme="fables") defined in src/​app/​globals.css:

TokenValueUsage
primary#d4af37 (antique gold)Headings, accents, borders, CTA
primary-content#0a0a0aText on primary backgrounds
secondary#8b1a1a (deep crimson)Secondary actions, danger accents
secondary-content#f0e6c8Text on secondary backgrounds
accent#e6c44c (bright gold)Highlights, hover states
neutral#1a1a1aCard/​panel backgrounds
neutral-content#d4c9a8 (parchment)Body text on neutral
base-100#0a0a0a (near-black)Page background
base-200#1a1a1aElevated surfaces
base-300#2a2a2aHigher elevation
base-content#d4c9a8Default text
error#dc2626Destructive actions
success#22c55eConfirmations

Always use DaisyUI semantic tokens (text-primary, bg-base-200, btn-primary, etc.) instead of hardcoded colors.

Custom Tailwind Utilities

Defined in src/​app/​globals.css:

  • bg-login-vignette — radial gradient overlay for cinematic scenes
  • bg-gradient-radial, bg-gradient-conic — custom gradient utilities
  • .animate-fade-in-up, .animate-fade-in-up-delay-1/​2/​3 — staggered entrance animations
  • .text-glow-gold — gold text-shadow glow effect for dramatic headings

Component Patterns

Follow these conventions from existing code:

  • "use client" directive on all interactive components
  • DaisyUI classes for base components: btn, input, input-bordered, modal, drawer, card, badge, tooltip
  • Opacity modifiers for subtle layering: bg-base-200/​50, border-primary/​15, text-base-content/​30
  • Section headers use medievalFont.className with gold decorative horizontal rules (see SectionHeader.tsx pattern)
  • Modals use fixed overlay with bg-black bg-opacity-50, centered card with border-2
  • Inputs use: input input-bordered w-full bg-base-200/​50 border-primary/​15 text-base-content placeholder:text-base-content/​30 focus:border-primary/​40 focus:outline-none
  • Drawers slide from right with backdrop blur

Aesthetic Direction

This app has a dark medieval fantasy aesthetic — think weathered parchment text on near-black backgrounds, gold filigree accents, and deep crimson highlights. The tone is immersive and atmospheric, like opening an ancient tome by candlelight.

When designing new components:

  • Lean into the dark + gold contrast
  • Use medievalFont for section titles and dramatic text
  • Apply subtle opacity and blur for depth (backdrop-blur-sm, /​50 opacity modifiers)
  • Use staggered animate-fade-in-up for page entrances
  • Add text-glow-gold sparingly for emphasis on hero elements
  • Keep backgrounds dark (base-100, base-200) with gold (primary) as the accent color
  • Borders should be subtle: border-primary/​15 to border-primary/​40

File Organization

  • Components: src/​app/​components/​{Feature}/​ComponentName.tsx
  • Hooks: src/​hooks/​useHookName.ts
  • Stores: src/​stores/​useStore.ts (single Zustand store)
  • API routes: src/​app/​api/​{endpoint}/​route.ts
  • Services: src/​services/

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View