ワンクリックで
css
Guides styling implementation using TailwindCSS + CSS Modules. Triggered when handling component styles, layout design, or CSS patterns.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guides styling implementation using TailwindCSS + CSS Modules. Triggered when handling component styles, layout design, or CSS patterns.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Maintain package-level `agentmap.md` files as outline-level maps of the real file tree and core responsibilities. Use when package structure or responsibility boundaries change and the corresponding `agentmap.md` must be created or updated.
Review uncommitted code changes to find unreasonable design, unfinished requirements, potential bugs, missed reuse opportunities, and optimization opportunities. Use when the user asks for a review of pending, uncommitted, or unpublished code changes and expects both findings and concrete improvements.
Guides the generation, reading, and updating of agentmap.md files. This skill ensures a consistent and up-to-date codebase map for AI Agents.
Interacts with local browser via Chrome DevTools Protocol (only triggered after user explicitly requests to inspect, debug, or interact with pages open in Chrome)
Specialized for translating document files and their content into English. Triggered when localization, translation, or converting Chinese documents to English is requested.
Guides using eRPC (electron-tRPC) for inter-process communication (IPC) between Electron main and renderer processes. Triggered when handling Electron IPC or tRPC-based systems.
| name | css |
| description | Guides styling implementation using TailwindCSS + CSS Modules. Triggered when handling component styles, layout design, or CSS patterns. |
This skill provides mandatory specifications for combining TailwindCSS + CSS Modules for styling implementation in this project.
This project adopts a hybrid styling strategy:
// ✅ Use TailwindCSS:
// - Simple layouts (flex, grid, positioning)
// - Basic spacing (margin, padding)
// - Basic colors and typography
// - One-off styles
// - Rapid prototyping
<div className='flex items-center gap-3 p-4'>
<span className='text-std-600'>Content</span>
</div>
// ✅ Use CSS Modules:
// - Complex state transitions (hover, active, focus state combinations)
// - Component-specific animations
// - Nested selector patterns
// - Repeated complex styles
// - Dark mode switching logic
// - Style combinations that would make TailwindCSS class strings too long
import styles from './index.module.css'
<div className={`w_100 border_box relative${styles._local}`}>
<button className='btn_copy'></button>
</div>
// ✅ Recommended: multi-line for readability
<div
className='
flex
items-center justify-center
w-18 h-screen
is_drag
'
>
<Icon size={20}></Icon>
</div>
// ❌ Avoid: still writing on single line when styles are complex
<div className='flex items-center justify-center w-18 h-screen is_drag'>
// ✅ Use template strings for conditional class names
const Index = ({ fold }: { fold: boolean }) => {
return (
<nav
className={`
relative
flex flex-col
h-full
${fold ? 'w-18 items-center justify-center' : 'border-std-900/8 w-60 border-r py-2'}
`}
>
</nav>
)
}
// Electron window dragging
<div className='is_drag'></div> // Allow dragging
<div className='no_drag clickable'></div> // Disallow dragging, allow clicking
// Lucide icon borders
<svg className='lucide'></svg> // Apply 1.8px line width
// Custom utilities
<div className='clickable'></div> // cursor pointer
<div className='border_box'></div> // box-sizing: border-box
<div className='w_100'></div> // width: 100%
/* index.module.css */
@reference '../../../styles/index.css'; /* For importing Tailwind base */
._local {
/* Component-specific styles */
&:hover {
/* Hover state */
}
:global {
/* Global class styles (skip hashing) */
}
}
/* index.module.css */
._local {
padding: 16px 0;
&:hover {
:global {
.btn_copy {
opacity: 1;
}
}
}
}
:global {
.btn_copy {
opacity: 0;
transition-property: opacity;
&:hover {
@apply bg-std-300;
}
}
}
._local {
/* ✅ Use @apply to include TailwindCSS utilities */
@apply rounded-xl;
/* ✅ Mix custom CSS with @apply */
padding: 16px 0;
/* ✅ Use @apply for colors */
:global {
.lang {
@apply text-std-400;
}
}
}
/* ✅ Use snake_case for CSS variables */
._local {
--margin_y: 1.2em;
p {
margin-block: var(--margin_y);
}
}
The project uses semantic color names:
// TailwindCSS color classes
'text-std-800' // Primary text
'text-std-600' // Secondary text
'text-std-400' // Muted text
'text-std-white' // White text
'text-std-black' // Black text
'bg-std-100' // Primary background
'bg-std-200' // Secondary background
'bg-std-300' // Hover background
'bg-std-800' // Dark background
'border-std-200' // Light border
'border-std-900/8' // Dark border with opacity
snake_case.snake_case with -- prefix._local for the main container class name.style props unless absolutely necessary.!important in CSS Modules.