Skip to content
creating-vue-components logo

Creating Vue Components

creating-vue-components

Guides creating Vue 3 components with glass-morphism UI for the anime extension. Use when building UI components, styling with Tailwind, or implementing the design system.

SKILL.md

Full skill instructions

Creating Vue Components

Vue 3 component patterns with glass-morphism design for AnimeList.

Component Template

<script setup lang="ts">
import { ref } from "vue";

interface Props {
    title: string;
    count?: number;
}

const props = withDefaults(defineProps<Props>(), {
    count: 0,
});

const emit = defineEmits<{
    (e: "update", value: number): void;
}>();
</​script>

<template>
    <div
        data-testid="component-name"
        class="rounded-xl border border-white/​20 bg-white/​10 p-6 backdrop-blur-xs"
    >
        <!-- Content -->
    </​div>
</​template>

Design System

Background Gradients

<!-- Full-screen gradient -->
<div class="bg-gradient-to-br from-purple-600 via-purple-700 to-pink-600">

<!-- Animated particles (optional) -->
<div class="fixed inset-0 opacity-10">
    <div class="absolute left-8 top-12 h-3 w-3 animate-pulse rounded-full bg-white"></​div>
    <div class="absolute right-16 top-20 h-2 w-2 animate-ping rounded-full bg-pink-300"></​div>
</​div>

Glass Cards

<!-- Primary card -->
<div class="rounded-2xl border border-white/​20 bg-white/​10 p-8 backdrop-blur-xs">

<!-- Interactive card -->
<div class="rounded-xl border border-white/​20 bg-white/​10 p-6 backdrop-blur-xs
            transition-all duration-300 hover:border-white/​30 hover:bg-white/​15
            hover:shadow-lg hover:shadow-black/​20">

Typography

<!-- Headings -->
<h1 class="text-3xl font-bold text-white drop-shadow-md">Page Title</​h1>
<h2 class="text-2xl font-bold text-white drop-shadow-md">Section</​h2>
<h3 class="text-lg font-semibold text-white drop-shadow-xs">Card Title</​h3>

<!-- Body text -->
<p class="leading-relaxed text-white/​90 drop-shadow-xs">Description</​p>
<p class="text-lg text-white/​80 drop-shadow-xs">Subtitle</​p>

<!-- Stats -->
<p class="text-2xl font-bold text-purple-200 drop-shadow-xs">12</​p>
<p class="text-2xl font-bold text-green-200 drop-shadow-xs">87</​p>

Buttons

<!-- Primary -->
<button class="rounded-xl border border-white/​30 bg-white/​20 px-6 py-3
               font-medium text-white backdrop-blur-xs transition-all duration-200
               hover:border-white/​40 hover:bg-white/​30 hover:shadow-lg
               hover:shadow-black/​20 active:scale-95">
    Button
</​button>

<!-- Secondary -->
<button class="rounded-lg border border-white/​20 bg-white/​10 px-4 py-2
               text-sm font-medium text-white/​90 backdrop-blur-xs
               transition-all duration-200 hover:bg-white/​20 active:scale-95">
    Secondary
</​button>

Navigation

<RouterLink
    class="group flex items-center gap-3 rounded-xl border border-transparent
           px-4 py-3 text-sm font-medium text-white/​90 transition-all duration-200
           hover:border-white/​20 hover:bg-white/​10 hover:text-white
           hover:shadow-md hover:shadow-black/​20 active:scale-95"
    :class="{
        'border-white/​30 bg-white/​15 text-white shadow-md shadow-black/​20': isActive,
    }"
>
    <span class="text-lg drop-shadow-xs">📺</​span>
    <span>Watch Lists</​span>
</​RouterLink>

Icons (Emoji System)

<span class="text-lg drop-shadow-xs">🏠</​span>  <!-- Home -->
<span class="text-lg drop-shadow-xs">📺</​span>  <!-- Watch Lists -->
<span class="text-lg drop-shadow-xs">⭐</​span>  <!-- Favorites -->
<span class="text-lg drop-shadow-xs">⚙️</​span>  <!-- Settings -->
<span class="text-2xl drop-shadow-xs">▶️</​span> <!-- Currently Watching -->
<span class="text-2xl drop-shadow-xs">📝</​span> <!-- Plan to Watch -->

Brand Icon

<div class="flex h-8 w-8 items-center justify-center rounded-lg
            border border-white/​30 bg-white/​20 backdrop-blur-xs">
    <img src="/​assets/​images/​darkness_32x32.png"
         alt="Darkness from KonoSuba"
         class="h-6 w-6 rounded-sm" />
</​div>

Layout Patterns

Sidebar

<aside class="flex w-64 flex-col border-r border-white/​20 bg-black/​30
              text-white backdrop-blur-xs">
    <div class="flex h-16 items-center justify-center border-b border-white/​20 bg-black/​40">
        <!-- Brand -->
    </​div>
    <nav class="flex-1 space-y-2 p-4">
        <!-- Nav items -->
    </​nav>
</​aside>

Header

<header class="border-b border-white/​20 bg-black/​20 px-6 py-4 backdrop-blur-xs">
    <div class="flex items-center justify-between">
        <nav class="flex items-center space-x-2 text-sm text-white/​80">
            <!-- Breadcrumbs -->
        </​nav>
    </​div>
</​header>

Grids

<div class="grid grid-cols-1 gap-6 md:grid-cols-3">  <!-- 3-col -->
<div class="grid grid-cols-1 gap-6 md:grid-cols-2">  <!-- 2-col -->
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4">  <!-- 4-col -->

Color Palette

PurposeClasses
Backgroundfrom-purple-600 via-purple-700 to-pink-600
Glassbg-white/​10, bg-white/​20
Bordersborder-white/​20, border-white/​30
Texttext-white, text-white/​90, text-white/​80
Purple accenttext-purple-200, bg-purple-300
Pink accenttext-pink-200, bg-pink-300
Successtext-green-200
Infotext-blue-200

Testing Requirements

Always include data-testid attributes:

<div data-testid="anime-card">
<button data-testid="submit-button">
<input data-testid="search-input" />

Test pattern:

import { mount } from "@vue/​test-utils";

it("should render", () => {
    const wrapper = mount(Component);
    expect(wrapper.find('[data-testid="anime-card"]').exists()).toBe(true);
});

Popup Constraints

<!-- Fixed 320x240 dimensions -->
<div class="h-60 w-80 overflow-hidden">

Checklist

  • Use <script setup lang="ts">
  • Apply glass-morphism (bg-white/​10 backdrop-blur-xs border-white/​20)
  • Include data-testid attributes
  • Use typography with drop-shadow-xs/​md
  • Add hover/​active transitions
  • Mobile-first responsive design
  • Proper semantic HTML

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
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