Text Style Manager lets site builders set fonts, sizes, weights, spacing and colors for any part of a site, chosen by CSS selector, and for headings H1 to H6. Everything is configured from one admin form with a live preview, with no theme changes or custom CSS files. Styles can be limited to the front-end or admin theme, to specific pages and to specific roles, and saved as presets to reuse on other sites.
Project Summary
Configure typography for any area of the site by CSS selector, with heading styles, Google Fonts, a live preview, visibility rules and presets.
header, .main-content or #footer .menu a. Add, remove or disable as many as you need..main-content.font-display value is configurable.!important, so the configured styles win over theme rules of equal specificity./admin/config/user-interface/text-style-settings).
The module ships with Header, Body and Footer sections that set Arial, Georgia and Verdana on header, #header, .main-content and footer. Disable or change them if your theme already styles these areas.
No external libraries are needed. Google Fonts are loaded from fonts.googleapis.com only when a Google font is selected and loading is enabled.
None. The module works on its own with any front-end or admin theme.
@font-your-face focuses on loading fonts from many providers and assigning them to selectors. Text Style Manager covers the other text properties as well (size, weight, spacing, transform and color), adds heading styles, visibility rules and presets, and shows a live preview.
Asset Injector injects any CSS you write by hand. Text Style Manager is a form-based alternative for typography, so site builders don't need to write or validate CSS themselves.
Bug reports, feature requests, patches, and documentation improvements are welcome through the Drupal.org issue queue.
Documentation is available in the project repository's README and in the module's built-in help at Help → Text Style Manager.
A style doesn't change anything on the page. Check that the section is enabled and that its selector matches elements in your theme's markup. If the theme sets the same property with a more specific selector, enable Override theme styles on the Fonts and output tab, or make the section's selector more specific.
No styles appear on some pages. Check the Visibility tab. Styles apply to the front-end theme only by default, and page and role rules are combined, so a page must match all of them.
A Google font shows as a fallback font. Make sure Load Google Fonts is enabled. If your site sends a Content Security Policy, allow fonts.googleapis.com for styles and fonts.gstatic.com for fonts.
An import is rejected. The error message lists each invalid value. Role IDs in the visibility settings must exist on the importing site.
Administer text styles: configure styles, presets, import, export and visibility rules. This permission is marked as restricted, because the configured CSS is output on every matching page.
The module is fully compatible with Drupal 11.