Skillpedia
الواجهات (UI/UX)48k · #6048

ui-tokens

ما الذي تفعله

تساعد هذه المهارة على إدارة «tokens» التصميم، وهي لبنات تُكوّن مظهر الموقع أو التطبيق. يمكنك عرضها وإضافتها وتغييرها.

متى تستخدمها

  • ✓عندما تريد رؤية كل كتل الألوان المتاحة.
  • ✓عندما تحتاج إلى إضافة حجم مسافة جديد.
  • ✓عندما تريد تغيير لون زر.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-tokens/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-tokens/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أظهر كل رموز الألوان (color tokens).”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحدّث المهارة ملفًا خاصًا (JSON) يحوي التعريفات، وكذلك كود الموقع (CSS) حتى تظهر التغييرات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Design Token Manager

When to Use

Use this skill when you need view, add, or modify design tokens in the StyleSeed design system.

When NOT to use

  • For applying tokens in components → use /ss-component or /ss-pattern
  • For finding token violations in existing code → use /ss-lint
  • For brand-wide color/font choices that don't exist yet — define a skin first, then add tokens
  • For non-CSS token systems (Figma, native iOS/Android) — Tailwind v4 / CSS variables only

Action: $0 | Token type: $1 Arguments: $ARGUMENTS

Token File Locations

Type JSON Source CSS Implementation
Colors tokens/colors.json css/theme.css :root + @theme inline
Typography tokens/typography.json css/fonts.css + css/base.css
Spacing tokens/spacing.json Tailwind utilities (no custom CSS needed)
Radius tokens/radii.json css/theme.css @theme inline
Shadows tokens/shadows.json css/theme.css :root

Instructions

list — Show current tokens

Read and display the requested token file in a formatted table.

add — Add new token

  1. Add the token to the JSON source file (tokens/*.json)
  2. Add the CSS custom property to css/theme.css under :root
  3. If it needs a Tailwind utility, add to the @theme inline block
  4. If it has a dark mode variant, add to the .dark block

update — Modify existing token

  1. Update the value in the JSON source file
  2. Update the CSS custom property in theme.css
  3. Check all components for direct usage that might need updating

Rules

  • Always keep JSON and CSS in sync
  • Use semantic names, not descriptive names (--success not --green-500)
  • Colors should support both light and dark modes
  • New tokens must be added to BOTH the JSON source AND the CSS implementation

Example

User request:

Review this interface with @ui-tokens, identify the highest-impact design problems, and propose an implementation-ready improvement.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
الأسئلة الشائعة

ما هي «design tokens»؟

هي قيم قابلة لإعادة الاستخدام، مثل الألوان والخطوط والمسافات، تحدد الهوية البصرية للمشروع.

هل يمكنني استخدامها لتغيير الخطوط؟

نعم، يمكنك إدارة رموز الخطوط (typography tokens).

ماذا يعني «keep JSON and CSS in sync»؟

تعني أن التعريف في ملف البيانات (JSON) والتنفيذ في كود الموقع (CSS) يجب أن يكونا متطابقين دائمًا.

التفاصيل

الوصف الأصلي من المؤلف

View, add, or modify design tokens in the StyleSeed design system

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#6048
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة