Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.
import {
createElement, Power, Sun, Sofa, Film, Moon, DoorOpen, LampCeiling, LampFloor, LampDesk, Lightbulb,
Snowflake, Flame, Droplets, Fan, Wind, Leaf, ChevronDown, ChevronLeft, Plus, Minus, Thermometer,
SlidersHorizontal, Check, House, Settings2, AirVent, Sparkles, FolderOpen, Plug, Lamp, SunDim, SunMedium,
Tv, BedDouble, Palette, RefreshCw, X,
ShieldCheck, Link2, Copy, MessageSquareText, BookOpen, Terminal, RotateCcw, Globe, Laptop, Clock, Box, Download,
Undo2, Activity, KeyRound, ArrowUpRight, Camera, Square,
HouseWifi, Smartphone, Radar, CircleCheck, CircleAlert, ChevronRight, Unlink, LoaderCircle, Router,
List, Trash2, Scan, Redo2, Map as MapIcon, DoorClosed, Armchair,
Layers, ChevronsUp, RotateCw, ZoomIn, ZoomOut, SquareSplitHorizontal, CopyPlus, AppWindow, SquareDashed,
} from 'lucide';
const ICONS = {
power: Power, sun: Sun, sofa: Sofa, film: Film, moon: Moon, door: DoorOpen,
ceiling: LampCeiling, pendant: Lamp, spots: Lightbulb, floor: LampFloor, table: LampDesk, strip: Sparkles,
cool: Snowflake, heat: Flame, dry: Droplets, fan: Fan, auto: RefreshCw, wind: Wind, leaf: Leaf,
down: ChevronDown, back: ChevronLeft, plus: Plus, minus: Minus, thermo: Thermometer,
sliders: SlidersHorizontal, check: Check, home: House, settings: Settings2, ac: AirVent,
folder: FolderOpen, plug: Plug, dim: SunDim, bright: SunMedium, tv: Tv, bed: BedDouble,
palette: Palette, sparkles: Sparkles, close: X,
shield: ShieldCheck, link: Link2, copy: Copy, chat: MessageSquareText, book: BookOpen, terminal: Terminal,
rotate: RotateCcw, globe: Globe, laptop: Laptop, clock: Clock, box: Box, download: Download, undo: Undo2,
activity: Activity, key: KeyRound, external: ArrowUpRight, camera: Camera, stop: Square,
homeassistant: HouseWifi, phone: Smartphone, radar: Radar, ok: CircleCheck, alert: CircleAlert,
next: ChevronRight, unlink: Unlink, spinner: LoaderCircle, bridge: Router, bulb: Lightbulb,
list: List, trash: Trash2, fit: Scan, redo: Redo2, map: MapIcon, opening: DoorClosed, furniture: Armchair,
layers: Layers, stairs: ChevronsUp, rotateCw: RotateCw, zoomIn: ZoomIn, zoomOut: ZoomOut,
split: SquareSplitHorizontal, duplicate: CopyPlus, window: AppWindow, room: SquareDashed,
};
export function icon(name, size = 18, stroke = 1.8) {
const el = createElement(ICONS[name] || ICONS.sparkles);
el.setAttribute('width', size);
el.setAttribute('height', size);
el.setAttribute('stroke-width', stroke);
el.classList.add('icon');
return el;
}