Skip to main content

PurgeCSS logo

npm npm NPM

info

PurgeTSS is a toolkit for building mobile apps with the Titanium framework. It adds practical utilities for styling and setup work.

It includes utility classes, icon font support, an Animation module, a simple grid system, and the shades command for generating custom colors.

If you build UI-heavy screens, PurgeTSS keeps you from hand-writing long TSS files.

What it does:

  • 23,400+ utility classes for colors, spacing, typography, layout, and more.
  • Parses XML files and writes an app.tss with only the classes you use.
  • Customizable through config.cjs, with arbitrary values for one-off sizes and colors.
  • Icon fonts for Buttons and Labels: Font Awesome, Material Icons, Material Symbols, and Framework7-Icons in Alloy and Classic projects.
  • build-fonts installs custom fonts in Alloy or Classic; TSS class definitions are generated only for Alloy.
  • shades command generates color palettes from a hex value.
  • Animation module with 2D transforms, draggable views with collision detection, sequential animations, and position utilities.
  • Grid system for aligning and distributing elements in rows and columns.

Table of Contents​


Changelog​

Unreleased​

v7.20.2​

  • Restore arbitrary RGB/RGBA color classes, broken since 7.8.0, with balanced nested parentheses. Malformed values and inverted negatives remain unsupported. Property deduplication in apply preserves color commas and quoted strings. See arbitrary color values and the full changelog.

v7.20.1​

  • Generator corrections exclude read-only properties, emit numeric iOS SplitWindow ratios and bounds, resolve Font Awesome Pro/Beta families from installed font metadata, and reject inverted negatives in the formatter. See the full changelog.

v7.20.0​

  • Update Titanium Completions to SDK 14.0.0.GA: 63 new property entries and 356 recovered property descriptions.
  • Regenerate utility classes and the glossary, including 18 new property pages for boolean, color, split-view and layout settings.

→ See the full changelog for older releases (v7.19.0 and earlier).