Skip to main content
Tutorial

💡 Lucid ex​​​​​​​pert tip: Creating dynamic buttons with layer formulas

  • May 15, 2026
  • 0 replies
  • 6 views

Forum|alt.badge.img+6

Want to build a truly interactive diagram? This walkthrough shows you how to use the isVisible() formula to create smart buttons that act as "active" indicators when toggling between different layers, such as current and future state views. 

What you’ll learn:

  • How to use the isVisible() formula to detect which layers are currently active on your canvas.
  • How to create unique labels for your layers using custom data properties.
  • How to link those layer labels to specific shapes to build a functional navigation menu.
  • How to apply conditional formatting rules that visually highlight a button only when its corresponding layer is turned on.

⚙️ A note on the UI

This video was produced around 2024. While the Lucid interface has been refreshed since then, the layer logic and the isVisible() formula remain the standard for building interactive, multi-state documents.

Do you use layers to show "before and after" scenarios? Tell us how you're styling your interactive toggles below!