Skip to main content

Theme light/dark mode for custom URL apps

  • July 7, 2024
  • 4 replies
  • 101 views

deepdev

Hi, new Monday app dev here. My app is hosted via Custom URL and I’m curious how I can find out what the current UX theme is for the user? My app supports themes but I need to somehow query the API (user preferences maybe? still learning/reading the docs) or possibly tap into some JS events from the parent frame/host?

Thanks

4 replies

dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • July 7, 2024

Listen to the context. The theme is in there.

monday.listen(“context”,…)


deepdev
  • Author
  • Participating Frequently
  • July 8, 2024

Ok thanks I’ll try that. I don’t see any docs for “context” but I’ll keep looking. I also searched API Docs for ‘theme’ and no results. I’ll figure it out, thanks


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • July 8, 2024

Hello there @deepdev !

You can check out this article about what David mentioned 😀

You can also get the context proactively.

I hope that helps!

Cheers,
Matias


deepdev
  • Author
  • Participating Frequently
  • July 9, 2024

Ok that helps! Thanks for the links!