info
PurgeTSS is a toolkit for building mobile apps with the Titanium framework. It adds practical utilities to speed up styling and reduce repeated 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 helps you move faster without hand-writing long TSS files.
What's New in v7.5.0
Added
extendsupport for Window, View, and ImageView — customize component defaults fromtheme.extendinconfig.cjs- Shorthand
apply—{ apply: '...' }is automatically normalized to{ default: { apply: '...' } } - Apply directive property deduplication — applied values win over static defaults instead of duplicating
- Automatic platform resolution in apply directives — classes inside
ios:/android:blocks find their platform-specific version automatically - Updated Font Awesome to 7.2.0
Fixed
extend.Windowwas silently ignored — boththeme.Windowandtheme.extend.Windowwork now- Duplicate
fontproperties in apply directives - Array-type properties (
extendEdges,mediaTypes, etc.) now correctly wrapped in[ ]notation
What's New in v7.4.0
Animation module expansion. 9 new methods bring the module to 15 total:
New methods
transition(views, layouts)— multi-view layout transitions using GPU-acceleratedMatrix2D.translate().rotate().scale(). Compatible with TiDesigner presetspulse(view, count)— scale-up-and-back pulse using nativeautoreverse+repeat. Good for notification badgessequence(views, cb)— animate views one after another (not parallel likeplay)swap(view1, view2)— animate two views exchanging positionsshake(view, intensity)— bidirectional horizontal shake for error/validation feedbacksnapTo(view, targets)— snap a view to the nearest target by center distancereorder(views, newOrder)— animate views to new positions by index mappingundraggable(views)— remove draggable behavior and clean up all listenersdetectCollisions(views, dragCB, dropCB)— collision detection with hover and drop callbacks
New utility classes
snap-back,snap-center,snap-magnet— control drop behavior on draggable viewskeep-z-index— preserve z-order during drag (fortransitionpresets)
Improvements
- Delta-based drag for views with
rotate/scaletransforms - Position normalization —
swap,reorder, andsnapTowork without explicittop/left - Property inheritance —
swap,reorder,snapTo, andshakeinheritduration,delay, andcurvefrom the<Animation>object
See the Animation Module documentation for full details.
What it does:
- 23,300+ utility classes for colors, spacing, typography, layout, and more.
- Parses your XML files and writes an
app.tsswith only the classes you actually use. - Customizable via
config.cjs. Supports arbitrary values for one-off sizes and colors. - Icon fonts: Font Awesome, Material Icons, Material Symbols, and Framework7-Icons in Buttons and Labels.
build-fontscommand generatesfonts.tsswith class definitions andfontFamilyselectors for any font you drop in.shadescommand generates color palettes from a hex value.- Animation module: 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
- Installation
- Commands
- Customization
- Animation Module
- Grid System