Skip to content
🏳️‍⚧️ TRANSLUX is live — Track 530+ anti-LGBTQ+ bills, organize mutual aid, and build UIs that stand for something. Support the movement →

Core Interfaces

The TRANSLUX system provides strictly typed TypeScript interfaces.

interface TransluxEffect {
target: HTMLElement;
state: 'IDLE' | 'OBSERVED' | 'ENGAGED' | 'INTERACTING';
options: TransluxOptions;
// Lifecycle
mount(): void;
unmount(): void;
// State
transition(trigger: FSMTrigger): void;
}

By keeping configuration purely data-driven, you enable hot-swapping design tokens across multiple themes (e.g., Pink Mode vs Dark Glass).

interface TransluxOptions {
blurRadius?: number; // fallback: 16
saturation?: number; // fallback: 140
borderColor?: string;
shadowIntensity?: number;
}