Skip to content

Theme


html
<button id="btn-light">light</button>
<button id="btn-dark">dark</button>
<button id="btn-limegreen">limegreen</button>
<button id="btn-desert">desert</button>
ts
document.getElementById('btn-light').addEventListener('click', () => {
  PayNow.updateAppearance({ theme: 'light' })
})

document.getElementById('btn-dark').addEventListener('click', () => {
  PayNow.updateAppearance({ theme: 'dark' })
})

document.getElementById('btn-limegreen').addEventListener('click', () => {
  PayNow.updateAppearance({ theme: 'limegreen' })
})

document.getElementById('btn-desert').addEventListener('click', () => {
  PayNow.updateAppearance({ theme: 'desert' })
})

Powered by PayNow