gpt-taste
gpt taste
Use this skill when the user asks to "generate dark mode", "create dark theme", "add dark mode support", "convert to dark mode colors", "generate dark color palette", or wants to automatically generate dark mode variants for their components with intelligent color inversion and accessibility pres...
Full skill instructions
Automatically generate dark mode color schemes from light mode designs with intelligent color inversion, contrast preservation, and accessibility compliance (WCAG 2.2).
Input: Light mode component Output: Dark mode CSS variables, color mappings, theme toggle, updated stories
Extract all colors from component:
// Detected colors
Background: #FFFFFF
Text: #1F2937 (gray-800)
Primary: #2196F3 (blue-500)
Border: #E5E7EB (gray-200)
Shadow: rgba(0, 0, 0, 0.1)
Apply intelligent transformations:
/* Light Mode */
--bg-primary: #FFFFFF; /* white */
--text-primary: #1F2937; /* dark gray */
--color-primary: #2196F3; /* blue */
--border: #E5E7EB; /* light gray */
/* Dark Mode (Generated) */
--bg-primary: #1F2937; /* dark gray (inverted) */
--text-primary: #F9FAFB; /* off-white (inverted) */
--color-primary: #60A5FA; /* lighter blue (adjusted for contrast) */
--border: #374151; /* medium gray (adjusted) */
Rules:
Ensure WCAG compliance maintained:
Light Mode: #1F2937 on #FFFFFF = 16.1:1 (AAA) ✓
Dark Mode: #F9FAFB on #1F2937 = 15.8:1 (AAA) ✓
Light Mode: #2196F3 on #FFFFFF = 3.1:1 (AA Large) ✓
Dark Mode: #60A5FA on #1F2937 = 4.7:1 (AA Normal) ✓ (Improved!)
Create complete dark mode implementation:
CSS Variables:
/* themes/colors.css */
:root {
--bg-primary: #FFFFFF;
--bg-secondary: #F9FAFB;
--text-primary: #1F2937;
--text-secondary: #6B7280;
--color-primary: #2196F3;
--border: #E5E7EB;
--shadow: rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
--bg-primary: #1F2937;
--bg-secondary: #111827;
--text-primary: #F9FAFB;
--text-secondary: #D1D5DB;
--color-primary: #60A5FA;
--border: #374151;
--shadow: rgba(0, 0, 0, 0.3);
}
Theme Toggle Component:
// components/ThemeToggle.tsx
'use client';
import { useEffect, useState } from 'react';
import { Moon, Sun } from 'lucide-react';
export function ThemeToggle() {
const [theme, setTheme] = useState<'light' | 'dark'>('light');
useEffect(() => {
const saved = localStorage.getItem('theme') || 'light';
setTheme(saved as 'light' | 'dark');
document.documentElement.setAttribute('data-theme', saved);
}, []);
const toggleTheme = () => {
const newTheme = theme === 'light' ? 'dark' : 'light';
setTheme(newTheme);
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
};
return (
<button
onClick={toggleTheme}
aria-label={`Switch to ${theme === 'light' ? 'dark' : 'light'} mode`}
className="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800"
>
{theme === 'light' ? <Moon size={20} /> : <Sun size={20} />}
</button>
);
}
Add dark mode variants:
// Button.stories.tsx
export const LightMode: Story = {
parameters: {
backgrounds: { default: 'light' },
theme: 'light',
},
};
export const DarkMode: Story = {
parameters: {
backgrounds: { default: 'dark' },
theme: 'dark',
},
decorators: [
(Story) => (
<div data-theme="dark">
<Story />
</div>
),
],
};
export const AllThemes: Story = {
render: () => (
<div className="grid grid-cols-2 gap-4">
<div data-theme="light" className="p-4 bg-white">
<h3>Light Mode</h3>
<Button variant="primary">Click me</Button>
</div>
<div data-theme="dark" className="p-4 bg-gray-900">
<h3>Dark Mode</h3>
<Button variant="primary">Click me</Button>
</div>
</div>
),
};
Light → Dark
#FFFFFF → #1F2937 (primary background)
#F9FAFB → #111827 (secondary background)
#F3F4F6 → #0F172A (tertiary background)
Light → Dark
#111827 → #F9FAFB (primary text)
#374151 → #E5E7EB (secondary text)
#6B7280 → #9CA3AF (tertiary text)
Adjust for contrast, not just invert:
Primary Blue:
#2196F3 → #60A5FA (lighter for dark BG)
Success Green:
#10B981 → #34D399 (lighter)
Error Red:
#EF4444 → #F87171 (lighter)
Warning Yellow:
#F59E0B → #FBBF24 (lighter)
#E5E7EB → #374151 (visible on dark)
#D1D5DB → #4B5563 (medium)
#9CA3AF → #6B7280 (subtle)
Light Mode: rgba(0, 0, 0, 0.1)
Dark Mode: rgba(0, 0, 0, 0.3) (darker, more pronounced)
Maintain semantic meaning across themes:
/* Semantic tokens */
:root {
--color-success: #10B981;
--color-warning: #F59E0B;
--color-error: #EF4444;
--color-info: #3B82F6;
}
[data-theme="dark"] {
--color-success: #34D399; /* Lighter green */
--color-warning: #FBBF24; /* Lighter yellow */
--color-error: #F87171; /* Lighter red */
--color-info: #60A5FA; /* Lighter blue */
}
// tailwind.config.js
module.exports = {
darkMode: 'class', // or 'media'
theme: {
extend: {
colors: {
primary: {
light: '#2196F3',
dark: '#60A5FA',
},
},
},
},
};
// Usage
<div className="bg-white dark:bg-gray-900">
<h1 className="text-gray-900 dark:text-gray-100">
/* Component.module.css */
.container {
background: var(--bg-primary);
color: var(--text-primary);
}
[data-theme="dark"] .container {
/* Inherits CSS variables */
}
Automatic dark mode generation:
Result: Production-ready dark mode in minutes, not hours.
gpt taste
Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.
Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.
Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.
Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.
Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.
Frontend design and iteration for production-grade interfaces, from concept to ship.
Reverse-engineer design tokens from public websites into starter token files for your project.
Builds an animation from scratch by making the decisions in the order that determines whether it feels right.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
Chat-to-edit AI studio for product photos, portraits, branding, and video.
Generate your dream room in seconds.
Redesign your interior in seconds using AI
Transform rooms with AI-generated designs.
Transform Your Space with AI-Powered Japanese Interior Designs by Jife
AI-powered wireframes for non-designers.
Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours
Transform sketches into stunning architectural renders with AI.