# Rightpoint/BonMot

Beautiful, easy attributed strings in Swift

Repository: https://github.com/Rightpoint/BonMot
Canonical: https://ross.abutalabs.com/products/bonmot
Language: Swift
License: MIT
License Family: permissive
Topics: swift, special-characters, typography, design, text-formatting, text, auto-layout, constraints, dynamic-type, xml-parsing
Last push: 2024-07-21T16:21:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4123, "days_push": 773, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3548, forks 194 (observed 2026-08-28T04:08:09.458099+00:00)

## What it is
BonMot is a Swift library for building attributed strings with a declarative, chainable styling API across iOS, macOS, tvOS, and watchOS. It abstracts typography complexities like fonts, line height, OpenType features, special characters, and dynamic type.

## Use cases
- style attributed strings in Swift
- apply consistent typography across an iOS app
- support dynamic type with custom fonts
- compose text styles with fonts, colors, and line spacing
- parse and style XML-tagged strings
- handle special characters and ligatures in text

## When to choose
- you target iOS 14 or earlier where Foundation.AttributedString is unavailable
- you want a composable, reusable text styling API in UIKit/AppKit
- you need advanced typographic controls like OpenType features and special characters

## When to avoid
- you target iOS 15+ and can use Apple's built-in Foundation.AttributedString
- your project is not written in Swift
- you need rich text editing rather than styled text rendering

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, templating, parser
- domain: mobile-development, frontend, web-design
- platform: cross-platform
- tags: attributed-strings, typography, dynamic-type, text-styling, uikit, swift, ios, macos, mobile

## Member repositories
- Rightpoint/BonMot (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.458099+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:34:22.959025+00:00, confidence not recorded.
  - readme: https://github.com/Rightpoint/BonMot (fetched 2026-08-28T04:08:09.458099+00:00, sha 6c9874a9b148)
- Data as of 2026-08-30T08:39:29.467469+00:00.
