You can use global custom properties in Houdini paint workers by mapping them to initial values.

Here, I'm mapping the global --border-thin (declared on :root) to the registered --cross-width. The thickness of the cross changes with --border-thin, keeping them in sync.

There's no need to use `--cross-width: var(--border-thin)` on the element. It passes the initial value silently.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!