Skip to content

CSS: heading

.instui-heading — نمط العناوين من -level-h1 إلى -level-h6.

تقوم إعدادات -variant-* بتجاوز حجم الخط وسمك الخط في -level-*، لذا اجمع فقط واحدًا من كل عائلة لكل عنصر.

Source: heading.css

سهولة الوصول

تضبط هذه الأصناف المستوى البصري فقط، لذا قم بعرض عنصر <h1><h6> حقيقي (أو استخدم role="heading" مع aria-level) لنقل مستوى العنوان.

الاستخدام

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/heading.css";

أمثلة

html
<div class="instui-heading -level-h1">Heading h1</div>

المعدّلات

معدّلالوصف
.-border-bottomأضف حدًا سفليًا.
.-border-topأضف حدًا علويًا.
.-color-aiلون تمييز الذكاء الاصطناعي.
.-color-primary(الافتراضي) اللون الأساسي.
.-color-primary-inverseاللون على الخلفية الداكنة (الانعكاس الأساسي).
.-color-secondaryاللون الثانوي (مخفف).
.-level-h1العرض بمقياس خط h1.
.-level-h2العرض بمقياس خط h2.
.-level-h3العرض بمقياس خط h3.
.-level-h4العرض بمقياس خط h4.
.-level-h5العرض بمقياس خط h5.
.-level-h6العرض بمقياس خط h6.
.-variant-labelإعداد نمط نص التسمية.
.-variant-title-card-miniإعداد عنوان البطاقة المصغرة.
.-variant-title-card-regularإعداد عنوان البطاقة العادي.
.-variant-title-card-sectionإعداد عنوان قسم البطاقة.
.-variant-title-pageإعداد عنوان الصفحة.
.-variant-title-sectionإعداد عنوان القسم.

الرموز المستهلكة

Tokenنوعقيمة
--instui-component-heading-ai-text-bottom-gradient-color<color>LightDarklight-dark(#027887, #3CC0D4)
--instui-component-heading-ai-text-top-gradient-color<color>LightDarklight-dark(#944FB3, #CAA1D9)
--instui-component-heading-base-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-heading-border-color<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-heading-border-padding<length>0.125rem
--instui-component-heading-border-width<length>0.0625rem
--instui-component-heading-h1-font-family[ <font-family-name> | <generic-font-family> ]#Inclusive Sans, "Helvetica Neue", Helvetica, Arial, sans-serif
--instui-component-heading-h1-font-size<length>2.5rem
--instui-component-heading-h1-font-weight<integer>700
--instui-component-heading-h2-font-size<length>1.75rem
--instui-component-heading-h2-font-weight<integer>600
--instui-component-heading-h3-font-size<length>1.25rem
--instui-component-heading-h3-font-weight<integer>700
--instui-component-heading-h4-font-size<length>1rem
--instui-component-heading-h4-font-weight<integer>700
--instui-component-heading-h5-font-size<length>0.875rem
--instui-component-heading-h5-font-weight<integer>600
--instui-component-heading-h6-font-size<length>0.75rem
--instui-component-heading-h6-font-weight<integer>600
--instui-component-heading-inverse-color<color>LightDarklight-dark(#ffffff, #1C222B)
--instui-component-heading-label-font-size<length>1rem
--instui-component-heading-label-font-weight<integer>700
--instui-component-heading-line-height<percentage>125%
--instui-component-heading-muted-color<color>LightDarklight-dark(#576773, #AAB0B5)
--instui-component-heading-title-card-mini-font-size<length>1rem
--instui-component-heading-title-card-mini-font-weight<integer>700
--instui-component-heading-title-card-regular-font-size<length>1.25rem
--instui-component-heading-title-card-regular-font-weight<integer>700
--instui-component-heading-title-card-section-font-size<length>1.75rem
--instui-component-heading-title-card-section-font-weight<integer>700
--instui-component-heading-title-page-desktop-font-size<length>2.5rem
--instui-component-heading-title-page-desktop-font-weight<integer>700
--instui-component-heading-title-section-font-size<length>1.75rem
--instui-component-heading-title-section-font-weight<integer>700

ذات صلة

  • text — تنسيق نص الجسم للنص غير العنواني.