xiaohongshu
xiaohongshu
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.
Full skill instructions
Vue 3 component patterns with glass-morphism design for AnimeList.
<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>
<!-- 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>
<!-- 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">
<!-- 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>
<!-- 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>
<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>
<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 -->
<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>
<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 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>
<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 -->
| Purpose | Classes |
|---|---|
| Background | from-purple-600 via-purple-700 to-pink-600 |
| Glass | bg-white/10, bg-white/20 |
| Borders | border-white/20, border-white/30 |
| Text | text-white, text-white/90, text-white/80 |
| Purple accent | text-purple-200, bg-purple-300 |
| Pink accent | text-pink-200, bg-pink-300 |
| Success | text-green-200 |
| Info | text-blue-200 |
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);
});
<!-- Fixed 320x240 dimensions -->
<div class="h-60 w-80 overflow-hidden">
<script setup lang="ts">bg-white/10 backdrop-blur-xs border-white/20)data-testid attributesdrop-shadow-xs/mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience