Cave design system
العربية

Foundations

Typography

IBM Plex Sans for English and IBM Plex Sans Arabic for Arabic, with system-font fallbacks.

Families

--font-display

IBM Plex Sans

Aa Bb Cc Dd Ee Ff Gg 0123456789

--font-sans

IBM Plex Sans

Aa Bb Cc Dd Ee Ff Gg 0123456789

--font-ar-display

IBM Plex Sans Arabic

أ ب ت ث ج ح خ د ذ ر ز ٠١٢٣٤٥٦٧٨٩

--font-ar-text

IBM Plex Sans Arabic

أ ب ت ث ج ح خ د ذ ر ز ٠١٢٣٤٥٦٧٨٩

Type scale

Each style is shown in its own face. Arabic styles are set right to left.

Display

display-xlSize 64pxLine 68pxWeight 400

Clear interfaces for everyone

English typography for display xl. Allow text scaling and wrapping.

display-lgSize 48pxLine 52pxWeight 400

Clear interfaces for everyone

English typography for display lg. Allow text scaling and wrapping.

heading-lgSize 32pxLine 40pxWeight 400

Clear interfaces for everyone

English typography for heading lg. Allow text scaling and wrapping.

heading-mdSize 24pxLine 32pxWeight 400

Clear interfaces for everyone

English typography for heading md. Allow text scaling and wrapping.

Text

body-lgSize 18pxLine 28pxWeight 400

Clear interfaces for everyone

English typography for body lg. Allow text scaling and wrapping.

bodySize 16pxLine 24pxWeight 400

Clear interfaces for everyone

English typography for body. Allow text scaling and wrapping.

body-smSize 14pxLine 20pxWeight 400

Clear interfaces for everyone

English typography for body sm. Allow text scaling and wrapping.

captionSize 12pxLine 16pxWeight 400

Clear interfaces for everyone

English typography for caption. Allow text scaling and wrapping.

body-strongSize 16pxLine 24pxWeight 600

Clear interfaces for everyone

English typography for body strong. Allow text scaling and wrapping.

labelSize 14pxLine 20pxWeight 500

Clear interfaces for everyone

English typography for label. Allow text scaling and wrapping.

page-titleSize 24pxLine 32pxWeight 600

Clear interfaces for everyone

English typography for page title. Allow text scaling and wrapping.

section-titleSize 18pxLine 28pxWeight 600

Clear interfaces for everyone

English typography for section title. Allow text scaling and wrapping.

table-headSize 12pxLine 16pxWeight 600

Clear interfaces for everyone

English typography for table head. Allow text scaling and wrapping.

Arabic display

ar-displaySize 56pxLine 76pxWeight 400

واجهات واضحة بالعربية

Arabic typography for ar display. Allow text scaling and wrapping.

ar-headingSize 32pxLine 46pxWeight 400

واجهات واضحة بالعربية

Arabic typography for ar heading. Allow text scaling and wrapping.

Arabic text

ar-bodySize 16pxLine 28pxWeight 400

واجهات واضحة بالعربية

Arabic typography for ar body. Allow text scaling and wrapping.

ar-body-smSize 14pxLine 24pxWeight 400

واجهات واضحة بالعربية

Arabic typography for ar body sm. Allow text scaling and wrapping.

ar-body-strongSize 16pxLine 28pxWeight 700

واجهات واضحة بالعربية

Arabic typography for ar body strong. Allow text scaling and wrapping.

ar-page-titleSize 24pxLine 36pxWeight 700

واجهات واضحة بالعربية

Arabic typography for ar page title. Allow text scaling and wrapping.

ar-section-titleSize 18pxLine 30pxWeight 700

واجهات واضحة بالعربية

Arabic typography for ar section title. Allow text scaling and wrapping.

Guidance

IBM Plex Sans is the optional English font and IBM Plex Sans Arabic is the optional Arabic font. Packages include system-font fallbacks and make no font-network requests. Download and bundle the open fonts when you want the same typography as this documentation.

Use the locale to choose typography, and the direction to arrange the interface. Arabic text needs appropriate line height and must not receive letter spacing that breaks joined letters. Allow labels and headings to wrap and support larger system text sizes.

Keep code, emails, phone numbers and identifiers left to right inside Arabic pages. Use bdi for isolated mixed text and an explicit direction for fields when appropriate.