Dark
Light
<p><p:toggleSwitch onchange="PF('lightSwitch').toggle()"/></p> <p><p:button value="Dark" onclick="PF('lightSwitch').dark();return false"/></p> <p><p:button value="Light" onclick="PF('lightSwitch').light();return false"/></p>