원클릭으로
add-theme-colors
Add or customize theme colors in the CSS custom properties system
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add or customize theme colors in the CSS custom properties system
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Add a new Recharts visualization with theme-aware styling to the dashboard
Add a new metric card to the dashboard with proper styling and components
Add Lucide React icons to components following project conventions
Add responsive layouts following mobile-first design principles with Tailwind CSS
Add a new shadcn/ui component to the project following the New York style variant
Create a new dashboard page following Next.js 15 App Router conventions
| name | add-theme-colors |
| description | Add or customize theme colors in the CSS custom properties system |
When adding or customizing theme colors in this Next.js dashboard:
Locate the theme definitions in src/app/globals.css:
:root selector.dark selectorColor format: Use HSL values without the hsl() wrapper:
--color-name: 220 10% 50%;
This allows using hsl(var(--color-name)) in components.
Available color categories:
Adding a new theme color:
:root {
--new-color: 210 100% 50%; /* Light mode */
}
.dark {
--new-color: 210 50% 40%; /* Dark mode */
}
Using the color in components:
// In Tailwind classes (if configured)
className="text-new-color"
// In inline styles or charts
color: "hsl(var(--new-color))"
backgroundColor: "hsl(var(--new-color))"
Chart colors (predefined: chart-1 through chart-5):
useChartColors hookBest practices:
Color palette consistency:
/* In src/app/globals.css */
:root {
--success: 142 76% 36%; /* Green for light mode */
--success-foreground: 0 0% 100%;
}
.dark {
--success: 142 69% 58%; /* Lighter green for dark mode */
--success-foreground: 0 0% 0%;
}
/* Usage in component */
<div className="bg-success text-success-foreground">
Success message
</div>
/* In src/app/globals.css */
:root {
--chart-6: 280 80% 60%; /* Purple for light mode */
}
.dark {
--chart-6: 280 70% 50%; /* Adjusted purple for dark mode */
}
/* The useChartColors hook can be extended to use it */
const colors = {
...useChartColors(),
chart6: "hsl(var(--chart-6))"
};
src/app/globals.csssrc/components/DashboardCharts.tsxadd-chartadd-shadcn-component