بنقرة واحدة
colorhunt-theme
Generate new themes from a colorhunt.co palette URL. Triggered when user provides a colorhunt.co link.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate new themes from a colorhunt.co palette URL. Triggered when user provides a colorhunt.co link.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | colorhunt-theme |
| description | Generate new themes from a colorhunt.co palette URL. Triggered when user provides a colorhunt.co link. |
Use this skill when the user provides a colorhunt.co URL, such as:
https://colorhunt.co/palette/dddddd125d983c8dadf5a962/colorhunt.co/palette/*The palette colors are embedded in the URL path as concatenated 6-character hex values (without #).
Example URL: https://colorhunt.co/palette/dddddd125d983c8dadf5a962/
Split the palette slug into 4 colors (each 6 chars):
dddddd → #dddddd125d98 → #125d983c8dad → #3c8dadf5a962 → #f5a962The slug is exactly 24 characters = 4 × 6-char hex codes.
Assign the 4 extracted colors to theme roles based on lightness and contrast:
--color-background: The darkest or most neutral color (typically used as the page background). For light themes, pick the lightest. For dark themes, pick the darkest.--color-accent: A mid-tone color that complements the background (used for cards, containers, secondary surfaces).--color-primary: The color with the highest contrast against the background (main text/foreground). Must be readable on top of --color-background.--color-secondary: The most vivid or saturated pop color (used for highlights, buttons, accents).Use your judgment to determine lightness: for a light palette, the lightest color becomes background; for a dark palette, the darkest becomes background.
Generate a creative, evocative 2-3 word theme name that captures the mood or aesthetic of the palette. Examples of good names: "Ocean Mist", "Meadow Glow", "Rustic Sunrise", "Midnight Orchid".
Convert the name to:
OceanMistocean-mistThere are exactly 3 files to update:
src/app/common.tsAdd the new enum entry to the ColorScheme enum, before the closing }:
export enum ColorScheme {
// ... existing entries ...
DeepSea = "deep-sea",
NewThemeName = "new-theme-name", // add here
}
src/app/themes.tsAdd the new theme entry to the themes record, before the closing };. The CSS for all themes is generated from this file — do not edit globals.css for theme colors.
export const themes: Record<string, ThemeColors> = {
// ... existing entries ...
"deep-sea": { background: "#2b4450", accent: "#497285", primary: "#dfebed", secondary: "#f78536" },
"new-theme-name": { background: "#xxxxxx", accent: "#xxxxxx", primary: "#xxxxxx", secondary: "#xxxxxx" },
};
src/hooks/useColorScheme.tsAdd the new theme to the validateColorScheme function, before colorScheme === ColorScheme.System:
function validateColorScheme(colorScheme: string): colorScheme is ColorScheme {
return (
// ... existing entries ...
colorScheme === ColorScheme.DeepSea ||
colorScheme === ColorScheme.NewThemeName || // add here
colorScheme === ColorScheme.System
);
}
src/app/common.ts, src/app/themes.ts, src/hooks/useColorScheme.ts).Given URL: https://colorhunt.co/palette/dddddd125d983c8dadf5a962/
Colors extracted:
#dddddd (light gray)#125d98 (deep blue)#3c8dad (steel blue)#f5a962 (warm amber)Role assignment:
#dddddd (lightest — light theme)#3c8dad (mid-tone complement)#125d98 (darkest, high contrast on light bg)#f5a962 (warm pop color)Theme name: "Steel Amber" → enum: SteelAmber = "steel-amber"