PHPackages                             cms-alchemy/textsize-control - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cms-alchemy/textsize-control

ActiveDrupal-module

cms-alchemy/textsize-control
============================

Drupal module providing dynamic user-controlled text scaling with intelligent fallback strategies.

v1.0.1(1mo ago)00GPL-3.0-or-laterJavaScript

Since Mar 30Pushed 1mo agoCompare

[ Source](https://github.com/DanielMoody/textsize_control)[ Packagist](https://packagist.org/packages/cms-alchemy/textsize-control)[ RSS](/packages/cms-alchemy-textsize-control/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Textsize Control
================

[](#textsize-control)

A lightweight Drupal module that provides user-adjustable text scaling with intelligent fallback strategies.

This module adds a small floating UI (`A- / A / A+`) that allows users to dynamically adjust text size across the site. It is designed to work across a wide range of themes, including those that rely on `rem`, `em`, or fixed `px` units.

---

Features
--------

[](#features)

- Persistent text scaling via `localStorage`
- Three scaling strategies:
    - Root font-size scaling (preferred)
    - Class-based scaling fallback
    - Transform-based scaling (last resort)
- Automatic detection of whether scaling is effective
- Minimal UI injected on page load
- No configuration required

---

How It Works
------------

[](#how-it-works)

The module attaches a Drupal behavior that:

1. Injects a control UI into the page (`A-`, `A`, `A+`)
2. Tracks the current scale and mode in `localStorage`
3. Applies scaling using a CSS variable (`--text-scale`)
4. Attempts scaling in this order:
    - Root (`html { font-size }`)
    - Class-based (`.textsize-mode-class`)
    - Transform (`scale()`)

If root scaling does not visibly affect the page, the module automatically falls back to alternative methods.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/991582a25b97e57d7515e394e19dcb6dd8c1875d2ce1e76cec695e4f92ac6408?d=identicon)[CMS\_Alchemy](/maintainers/CMS_Alchemy)

---

Top Contributors

[![DanielMoody](https://avatars.githubusercontent.com/u/231975106?v=4)](https://github.com/DanielMoody "DanielMoody (9 commits)")

### Embed Badge

![Health badge](/badges/cms-alchemy-textsize-control/health.svg)

```
[![Health](https://phpackages.com/badges/cms-alchemy-textsize-control/health.svg)](https://phpackages.com/packages/cms-alchemy-textsize-control)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
