;; ---------------------------------------------------------------------------
;; Provide / Context / Emit! — render-time dynamic scope
;; ---------------------------------------------------------------------------
;; ---- Demo components ----
(defcomp ()
  (div (~tw :tokens "space-y-2")
    (provide "theme" {:primary "violet" :accent "rose"}
      (div (~tw :tokens "rounded-lg p-3 bg-violet-50 border border-violet-200")
        (p (~tw :tokens "text-sm text-violet-800 font-semibold") "Inside provider: theme.primary = violet")
        (p (~tw :tokens "text-xs text-stone-500") "Child reads context value without prop threading.")))
    (div (~tw :tokens "rounded-lg p-3 bg-stone-50 border border-stone-200")
      (p (~tw :tokens "text-sm text-stone-600") "Outside provider: no theme context."))))
