一键导入
update-styles
Update Tailwind styles with dark mode support. Use proactively for styling updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update Tailwind styles with dark mode support. Use proactively for styling updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create blog posts — from a topic (writes content) or with provided content (scaffolding). Use proactively when creating new blog posts or articles.
Pre-publication audit for blog posts — comprehensive final review of SEO, AEO, accessibility, images, content quality, i18n parity, and project conventions before publishing. Use proactively before publishing any blog post.
Pre-publication audit for blog series — validates series definition, post ordering, cross-post consistency, navigation, and runs individual post audits for all posts in the series. Use proactively before publishing any blog series.
Audit the blog tag taxonomy — frequency analysis, orphan detection, hierarchy validation, and proposals for new subtopic tags. Read-only — proposes, never modifies tags or posts. Use proactively before each release cycle or after a content drop of 5+ posts.
Optional DeepWorkPlan addon that connects an AI-first repo to the developer's Dailybot team — installing (with consent) the Dailybot agent skill (DailybotHQ/agent-skill) and/or the Dailybot CLI (DailybotHQ/cli), wiring the plan lifecycle into best-effort agent updates - kickoff when a plan starts, significant task completions, a blocked report when an unattended run halts, and a milestone on plan completion - with payloads derived from the plan's state layer, and optionally committing the Dailybot skill's deterministic hook enforcement (dailybot hook lifecycle hooks, CLI >= 1.12.0) so the agent harness itself reminds agents about unreported work. Opt-in, never required, never blocks the work, reconciles existing setups instead of clobbering them, and defers all auth to the Dailybot skill's own consent flow. Use when the developer or team already uses Dailybot and wants DWP progress visible to humans.
Optional DeepWorkPlan addon that safely upgrades a repo's dependencies — reasoning about the repo's ACTUAL package manager (npm/pnpm/yarn + ncu, pip/poetry/uv, cargo, go mod, bundler, composer, and more) rather than assuming npm — with a batched, validated, revertible workflow that detects the manager and manifests/lockfiles, classifies upgrades (patch/minor/major), upgrades in safe batches, runs the repo's real validation gate after each batch, reverts a failing batch, and summarizes. Opt-in, never required, reconciles with the repo's existing tooling. Use when the developer wants to bring dependencies up to date without breaking the build.
| name | update-styles |
| description | Update Tailwind styles with dark mode support. Use proactively for styling updates. |
| disable-model-invocation | false |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
| model | haiku |
| tier | 1 |
| intent | fix |
| max-files | 5 |
| max-loc | 100 |
Update Tailwind CSS styles in components or global CSS with proper dark mode support. This skill handles styling-only changes without modifying component logic.
Tier: 1 - Light/Cheap
Reasoning: Styling changes are visual-only, follow clear Tailwind patterns, and have low risk. Easy to validate visually.
$TARGET: File(s) to update (component or global.css)$CHANGES: What styling changes are needed$DARK_MODE: Ensure dark mode support (default: true)Always consult Brand Guide for the official color palette, dark mode pairing rules, and typography scale before making styling decisions.
Key tokens:
bg-main(Void Black#0F1124),bg-secondary/text-secondary(Crimson Strike#E51641) Full palette: Ninja Navy#152E45, Shadow Steel#637996, Pure White#FFFFFF
<!-- Spacing -->
<div class="p-4 m-2 px-6 py-3">
<!-- Colors -->
<div class="bg-white text-gray-900">
<!-- Typography -->
<p class="text-lg font-bold text-center">
<!-- Flexbox/Grid -->
<div class="flex items-center justify-between gap-4">
<div class="grid grid-cols-3 gap-6">
<!-- Responsive -->
<div class="text-sm md:text-base lg:text-lg">
Always pair light and dark:
<!-- Background -->
<div class="bg-white dark:bg-gray-900">
<!-- Text -->
<p class="text-gray-900 dark:text-gray-100">
<!-- Borders -->
<div class="border-gray-200 dark:border-gray-700">
<!-- Hover states -->
<button class="hover:bg-gray-100 dark:hover:bg-gray-800">
From src/styles/global.css:
@theme {
--color-main: #0f1124;
--color-secondary: #e41541;
}
Usage:
<div class="bg-main text-white">
<span class="text-secondary">
Mobile-first approach with Tailwind breakpoints:
| Breakpoint | Width | Usage |
|---|---|---|
| None (default) | < 640px | Mobile (320-639px) |
sm: | >= 640px | Large phones |
md: | >= 768px | Tablets |
lg: | >= 1024px | Laptops |
xl: | >= 1280px | Desktops |
2xl: | >= 1536px | Large monitors |
Always design mobile-first, then progressively enhance:
<!-- Start simple on mobile, enhance at larger sizes -->
<div class="text-sm md:text-base lg:text-lg">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="p-4 md:p-6 lg:p-8">
Heading text scaling (common pattern):
<!-- Scale headings across breakpoints for better mobile UX -->
<h1 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold">
<h2 class="text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold">
<h3 class="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold">
Responsive spacing patterns:
<!-- Stack on mobile, side-by-side on larger screens -->
<div class="flex flex-col md:flex-row gap-4 md:gap-8">
<!-- Reduce padding on mobile, increase on desktop -->
<div class="p-4 sm:p-6 md:p-8 lg:p-12">
<!-- Hide on mobile, show on larger screens -->
<div class="hidden md:block">
<!-- Show different content at different sizes -->
<div class="block md:hidden">Mobile content</div>
<div class="hidden md:block">Desktop content</div>
Touch target sizing (accessibility requirement):
Minimum 44px touch targets for interactive elements:
<!-- Buttons and interactive elements should be at least 44x44px -->
<button class="px-4 py-2 rounded min-h-[44px] min-w-[44px]">
<a href="/" class="inline-flex items-center justify-center h-12 px-4 rounded">
<div class="w-12 h-12 flex items-center justify-center rounded">
Dark mode + responsive combination:
<!-- Always pair dark mode with responsive changes -->
<h2 class="text-2xl sm:text-3xl md:text-4xl
text-gray-900 dark:text-gray-100
font-bold">
<div class="bg-white dark:bg-gray-800
text-gray-900 dark:text-gray-100
p-4 md:p-6 lg:p-8">
<button class="bg-blue-500 hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700
px-4 md:px-6 py-2 md:py-3">
dark: variants for all color-related classessm:, md:, lg:)pnpm run biome:check
pnpm run dev # Visual inspection
## ✅ Styles Updated
### Target
{What was styled}
### Changes
- `{file}`: {what changed}
### Dark Mode
- Light mode: ✅
- Dark mode: ✅
### Validation
- Biome: ✅
- Visual check: ✅
### Commit Message
style: {description}
Stop and escalate if:
pnpm run biome:check passes<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6
hover:shadow-lg transition-shadow">
<h3 class="text-lg font-bold text-gray-900 dark:text-white">
<p class="text-gray-600 dark:text-gray-300">
</div>
<button class="px-4 py-2 rounded-lg font-medium
bg-blue-500 hover:bg-blue-600 text-white
dark:bg-blue-600 dark:hover:bg-blue-700
transition-colors">
<a class="text-blue-600 hover:text-blue-800
dark:text-blue-400 dark:hover:text-blue-300
underline transition-colors">
<input class="w-full px-4 py-2 rounded-lg border
bg-white dark:bg-gray-800
border-gray-300 dark:border-gray-600
text-gray-900 dark:text-gray-100
focus:ring-2 focus:ring-blue-500 focus:outline-none">
Input:
$TARGET: src/components/Footer.astro
$CHANGES: Add dark mode support to footer text
Before:
<footer class="bg-gray-100 text-gray-600">
After:
<footer class="bg-gray-100 dark:bg-gray-900 text-gray-600 dark:text-gray-400">
Input:
$TARGET: src/styles/global.css
$CHANGES: Add new utility class for cards
Add to global.css:
@layer components {
.card {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-6;
}
}
Input:
$TARGET: src/components/home/HeroSection.astro
$CHANGES: Scale heading text responsively and ensure dark mode support
Before:
<h1 class="text-6xl font-bold text-gray-900">
After:
<h1 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl
font-bold
text-gray-900 dark:text-gray-100">
Input:
$TARGET: src/components/ProjectsSection.astro
$CHANGES: Make project grid responsive with dark mode
Before:
<div class="grid grid-cols-4 gap-6 bg-gray-50">
After:
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6
bg-gray-50 dark:bg-gray-900
p-4 md:p-8">