---
title: "Заголовки и текст"
description: "Удобочитаемый текст: продуманные заголовки, форматирование и понятные ссылки."
canonical_url: "https://b24-ui.bx-shef.by/docs/typography/headers-and-text"
---
# Заголовки и текст

> Удобочитаемый текст: продуманные заголовки, форматирование и понятные ссылки.

## Заголовки

Заголовки структурируют содержимое и облегчают чтение.

Если у заголовка есть `id`, его можно обернуть в якорную ссылку: для `H2`, `H3` и `H4` при наведении показывается значок решётки, чтобы читатели могли ссылаться прямо на раздел.

По умолчанию якорные ссылки отключены. Компонент [`Theme`](https://b24-ui.bx-shef.by/raw/docs/components/theme.md) с пропсом `anchor` включает или выключает их для части приложения:

```vue
<template>
  <B24Theme :props="{ prose: { h2: { anchor: true }, h3: { anchor: true }, h4: { anchor: true } } }">
    <!-- ваш отрисованный markdown -->
  </B24Theme>
</template>
```

> [!NOTE]
> При использовании `@nuxt/content` якорные ссылки по умолчанию включены для `H2`, `H3` и `H4`. Их [генерацию](https://content.nuxt.com/docs/getting-started/configuration#anchorlinks) (например, чтобы отключить в интерфейсах AI-чатов) и [генерацию оглавления](https://content.nuxt.com/docs/getting-started/configuration#toc) можно настроить в `nuxt.config.ts`:
> ```ts [nuxt.config.ts]
> export default defineNuxtConfig({
>   content: {
>     renderer: {
>       anchorLinks: false
>     },
>     build: {
>       markdown: {
>         toc: {
>           depth: 3
>         }
>       }
>     }
>   }
> })
> ```

### Заголовок 1

# Bitrix24 UI

```mdc
# Bitrix24 UI
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h1: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(22px+15px+var(--topbar-height))] text-(length:--ui-font-size-5xl) [&>code]:text-(length:--ui-font-size-4xl)/7',
          link: 'inline-flex items-center gap-2'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

### Заголовок 2

## Что нового?

```mdc
## Что нового?
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h2: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(48px+45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(48px+22px+15px+var(--topbar-height))] text-(length:--ui-font-size-4xl) [&_code]:text-(length:--ui-font-size-3xl)/7 [&>a]:focus-visible:outline-(--ui-color-accent-main-primary) hover:[&>a>code]:text-(--ui-color-accent-main-primary-alt-2) hover:[&>a>code]:bg-(--ui-color-design-selection-bg) hover:[&>a>code]:ring-(--ui-color-design-selection-stroke)',
          leading: 'absolute style-tinted-no-accent-1 -ms-4.5 top-[12px] opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-[1px] bg-(--b24ui-background) ring-(length:--b24ui-border-width) ring-(--b24ui-border-color) text-(--b24ui-color) hover:text-(--ui-color-accent-main-primary-alt-2) rounded-(--ui-border-radius-2xs) hidden lg:flex transition',
          leadingIcon: 'size-[14px] shrink-0',
          link: 'group lg:ps-2 lg:-ms-2'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

### Заголовок 3

### Улучшенные компоненты

```mdc
### Улучшенные компоненты
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h3: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(32px+45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(32px+22px+15px+var(--topbar-height))] text-(length:--ui-font-size-3xl) [&_code]:text-(length:--ui-font-size-2xl)/6 [&>a]:focus-visible:outline-(--ui-color-accent-main-primary) hover:[&>a>code]:text-(--ui-color-accent-main-primary-alt-2) hover:[&>a>code]:bg-(--ui-color-design-selection-bg) hover:[&>a>code]:ring-(--ui-color-design-selection-stroke)',
          leading: 'absolute style-tinted-no-accent-1 -ms-4.5 top-[9px] opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-[1px] bg-(--b24ui-background) ring-(length:--b24ui-border-width) ring-(--b24ui-border-color) text-(--b24ui-color) hover:text-(--ui-color-accent-main-primary-alt-2) rounded-(--ui-border-radius-2xs) hidden lg:flex transition',
          leadingIcon: 'size-[14px] shrink-0',
          link: 'group lg:ps-2 lg:-ms-2'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

### Заголовок 4

#### Начало работы

```mdc
#### Начало работы
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h4: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(24px+45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(24px+22px+15px+var(--topbar-height))] text-(length:--ui-font-size-2xl) [&>a>code]:text-(length:--ui-font-size-xl)/5 [&>a]:focus-visible:outline-(--ui-color-accent-main-primary) hover:[&>a>code]:text-(--ui-color-accent-main-primary-alt-2) hover:[&>a>code]:bg-(--ui-color-design-selection-bg) hover:[&>a>code]:ring-(--ui-color-design-selection-stroke)',
          leading: 'absolute style-tinted-no-accent-1 -ms-4.5 top-[6px] opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-[1px] bg-(--b24ui-background) ring-(length:--b24ui-border-width) ring-(--b24ui-border-color) text-(--b24ui-color) hover:text-(--ui-color-accent-main-primary-alt-2) rounded-(--ui-border-radius-2xs) hidden lg:flex transition',
          leadingIcon: 'size-[14px] shrink-0',
          link: 'group lg:ps-2 lg:-ms-2'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

### Заголовок 5

##### Комплексные инструменты для управления взаимоотношениями с клиентами

```mdc
##### Комплексные инструменты для управления взаимоотношениями с клиентами
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h5: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(24px+45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(24px+22px+15px+var(--topbar-height))] text-(length:--ui-font-size-xl)'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

### Заголовок 6

###### Подробные отчёты и анализ кампаний по продажам

```mdc
###### Подробные отчёты и анализ кампаний по продажам
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      h6: {
        slots: {
          base: 'relative mb-2 scroll-mt-[calc(24px+45px+24px+var(--topbar-height))] lg:scroll-mt-[calc(24px+22px+15px+var(--topbar-height))] text-(length:--ui-font-size-md)'
        },
        variants: {
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          accent: 'default'
        }
      }
    }
  }
})
```

## Форматирование текста

Понятные абзацы и единое форматирование текста делают содержимое удобнее для чтения.

### Абзац

Bitrix24 UI — это полный набор компонентов Vue, композаблов и утилит для создания современных доступных приложений с единым дизайном и удобным интерфейсом.

```mdc
Bitrix24 UI — это полный набор компонентов Vue, композаблов и утилит для создания современных доступных приложений с единым дизайном и удобным интерфейсом.
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      p: {
        slots: {
          base: 'mb-2 last:mb-0 leading-relaxed text-pretty'
        },
        variants: {
          small: {
            true: 'text-(length:--ui-font-size-3xs) leading-(--ui-font-line-height-2xs)',
            false: 'text-(length:--ui-font-size-xl) leading-(--ui-font-line-height-lg)'
          },
          accent: {
            default: 'text-label',
            accent: 'text-(--ui-color-accent-brand-blue)',
            'accent-more': 'text-(--ui-color-accent-soft-element-blue)',
            less: 'text-description',
            'less-more': 'text-(--ui-color-design-plain-na-content-secondary)'
          }
        },
        defaultVariants: {
          small: false,
          accent: 'default'
        }
      }
    }
  }
})
```

### Жирный шрифт

**Жирный текст**

```mdc
**Жирный текст**
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      strong: {
        slots: {
          base: ''
        }
      }
    }
  }
})
```

### Курсив

*Выделенный текст*

```mdc
*Выделенный текст*
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      em: {
        slots: {
          base: ''
        }
      }
    }
  }
})
```

## Ссылки

Чтобы создать ссылку, заключите её текст в квадратные скобки, а адрес — в круглые. Подходит для внешних и внутренних ссылок.

[Документация Bitrix24](https://bitrix24.com)

```mdc
[Документация Bitrix24](https://bitrix24.com)
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      a: {
        slots: {
          base: 'cursor-pointer text-(--ui-color-accent-main-link) dark:text-(--ui-color-blue-40) hover:not-focus-visible:underline underline-offset-2 hover:text-(--ui-color-accent-main-primary-alt) dark:hover:text-(--ui-color-blue-50) focus-visible:outline-info-text focus-visible:has-[>code]:outline-0 transition-colors [&>code]:transition-colors hover:[&>code]:text-(--ui-color-accent-main-primary-alt-2) hover:[&>code]:bg-(--ui-color-design-selection-bg) hover:[&>code]:ring-(--ui-color-design-selection-stroke) focus-visible:[&>code]:ring-(--ui-color-design-selection-stroke) focus-visible:[&>code]:text-(--ui-color-accent-main-primary-alt-2)'
        }
      }
    }
  }
})
```

## Цитаты

Цитаты выделяют важную информацию или чужие слова.

> Bitrix24 UI автоматически подстраивается под настройки темы, обеспечивая единую типографику во всём приложении.

```mdc
> Bitrix24 UI автоматически подстраивается под настройки темы, обеспечивая единую типографику во всём приложении.
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      blockquote: {
        slots: {
          base: 'mb-2 border-s-4 border-(--ui-color-accent-soft-element-blue) ps-4 italic'
        }
      }
    }
  }
})
```

## Горизонтальные линии

Горизонтальные линии визуально разделяют разделы содержимого.

---

```mdc
---
```

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {
      hr: {
        slots: {
          base: 'my-4 border-t border-(--ui-color-divider-default)'
        }
      }
    }
  }
})
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
