ENع
الدرس 17 · Motion and scale

Organising CSS at scale

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

On a big site, many rules from many people end up styling the same element, and the winner is decided by specificity, which nobody planned. Follow one heading through a real conflict: an id rule beats the component's class rule. Then fix it with three tools: BEM names that keep selectors to one class, a design token kept in a custom property, and cascade layers that let a later layer win before specificity is even compared. Last, change one token and watch the component follow.

12 دقيقة9 خطوات5 أسئلةAdvanced
شكل 17 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.