Step 1: Include the script wherever you please. Step 2: $('#box').lightOrDark(); Step 3: ???? Step 4: PROFIT (Note: It depends on jQuery, but I dont see why it wouldn't work with zepto. Feel free to port it to other frameworks too!!!1!!)