شعار Colormason

Colormason

المجتمع
vladzima
colormason

Generates a complete color system from a single brand color - perceptually even OKLCH ramps (50-950) plus WCAG-checked semantic design tokens (backgrounds, text, borders, focus ring) with light/dark values - via a zero-dependency local Python script. Use when starting or restyling a project's colors, generating design tokens or a Tailwind theme from a brand hex, building a light/dark palette, picking accessible UI colors, or when the user mentions color palette, design tokens, theme colors, brand color, OKLCH, or WCAG color contrast.

نظرة عامة

الناشرvladzima
المستودعcolormason
اسم المهارةcolormason
النجوم
3
التفريعات
0
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها vladzima على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Colormason في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/vladzima/colormason/tree/main/colormason
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vladzima/colormason.git /tmp/colormason
mkdir -p .claude/skills
cp -r /tmp/colormason/colormason .claude/skills/colormason
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Colormason في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Colormason تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Colormason بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

colormason

Turn one brand hex into a full, consistent, accessible color system: 8 ramps (11 steps each) and ~45 semantic tokens with light/dark values, emitted as CSS variables, Tailwind v4 theme, JSON, or Markdown. Fully deterministic and offline - never invent palette hex values by hand when this skill is available.

When to use

  • New project or rebrand needs a color system / theme file
  • User gives a brand color and asks for a palette, tokens, or theme
  • Building or fixing light/dark mode colors
  • Tailwind @theme, CSS variables, or design-token file needs generating
  • Checking or repairing color contrast (WCAG AA/AAA) in a token set

Do not use for one-off decorative colors (a single gradient, an illustration), for pinning colors that must match an existing system exactly (use that system's values verbatim instead), or when the project already has a token file - extend it, don't generate a competing one.

Inputs to collect first

  1. Brand hex (required). Ask the user, or extract from a logo / existing CSS. Any hex works; near-neutral brands (grays) produce a warning because accent hues become arbitrary - suggest pinning accents in that case.
  2. Scheme (default complementary): complementary, analogous, triadic, split, monochromatic. Pick analogous for calm/conservative brands, triadic for playful, complementary for max accent distinction.
  3. Scope (default full): basic drops the accent ramps (keeps primary, neutral, status colors).
  4. WCAG target (default AA): use AAA for text-heavy or government/health products.
  5. Pins (optional): exact --accent / --accent-2 hexes when the brand system already specifies secondary colors.

If the user hasn't decided, do not interview them - run the defaults and offer the knobs after showing output.

Procedure

  1. Run the generator (script is relative to this skill's directory):

    bash
    python3 scripts/palette.py --brand 3d7dff --format css
  2. Pick the format for the target project:

    • css - plain CSS custom properties (default; works everywhere)
    • tailwind - Tailwind v4 @theme + @theme inline blocks with light/dark variables
    • json - machine-readable; use when feeding a token pipeline
    • markdown - human-readable summary for review/discussion
  3. Write the output to the project (e.g. src/theme.css or into the main CSS file / Tailwind entry). Do not rename tokens downstream - other tools and agents may rely on the exact contract in references/tokens.md.

  4. Report to the user: brand, scheme, target, any warnings from stderr, and the two or three token pairs that were auto-adjusted (visible in JSON as contrast.*.adjusted: true).

Rules

  • Use semantic tokens (--bg-canvas, --text-primary, ...) in UI code, not raw ramp steps. Raw steps bypass the light/dark mapping and the contrast checking, so components break in dark mode or fail WCAG.
  • Never hand-edit generated hex values. Each foreground/background pair is contrast-verified; a "small tweak" silently breaks the verified ratio. Regenerate with different inputs instead (scheme, pins, target).
  • The brand hex will not appear verbatim in the ramps. Steps sit on a fixed OKLCH lightness ladder so the scale stays perceptually even. This is expected - use the ramp values, not the original input. If the user insists on exact brand reproduction, primary-500 is the nearest step.
  • bg-surface-raised equals bg-surface in light mode by design - in light mode, elevation must read through shadow, not tone. Add a shadow there instead of "fixing" the token.
  • text-disabled is intentionally below WCAG minimums (disabled controls are exempt). The exemption does not extend to real text - use text-tertiary for low-emphasis but readable copy.
  • Warnings mean what they say. If a pair cannot reach the target at any ramp step (common for AAA on colored buttons), either accept it, lower the target for that pair, or pin a darker accent. Do not silence it.

Edge cases

  • Gray/neutral brand: script warns; recommend --accent/--accent-2 pins.
  • Existing brand has secondary colors: pass them as pins so the palette matches instead of deriving.
  • User wants fewer ramps (no info color, etc.): --exclude info also drops every token that references the excluded ramp.
  • AAA on white-on-brand labels is physically unreachable on most hues; the script keeps the best step and emits a warning rather than breaking the design.

References

  • references/tokens.md - full token contract: every token name, ramp, light/dark steps, role. Read this when writing components against a colormason palette.
  • references/integration.md - wiring output into Tailwind v3/v4, plain CSS, CSS-in-JS, and shadcn-style variable themes.
  • python3 scripts/palette.py --help - all options.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Colormason؟

Generates a complete color system from a single brand color - perceptually even OKLCH ramps (50-950) plus WCAG-checked semantic design tokens (backgrounds, text, borders, focus ring) with light/dark values - via a zero-dependency local Python script. Use when starting or restyling a project's colors, generating design tokens or a Tailwind theme from a brand hex, building a light/dark palette, picking accessible UI colors, or when the user mentions color palette, design tokens, theme colors, brand color, OKLCH, or WCAG color contrast.

لماذا تستخدم Colormason على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Colormason عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Colormason في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/vladzima/colormason/tree/main/colormason. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Colormason؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Colormason؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Colormason معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Colormason مجانية؟

نعم. نشرها vladzima على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇