بنقرة واحدة
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