diff --git a/sx/sx/cssx.sx b/sx/sx/cssx.sx index 20e2d1b..19d2b0a 100644 --- a/sx/sx/cssx.sx +++ b/sx/sx/cssx.sx @@ -352,3 +352,70 @@ (li (strong "Live Streaming: ") "SSE and WebSocket transports push data to components. " "Style components react to that data like any other component — no separate style " "streaming protocol."))))) + + +;; --------------------------------------------------------------------------- +;; CSS Delivery +;; --------------------------------------------------------------------------- + +(defcomp ~cssx-delivery-content () + (~doc-page :title "CSS Delivery" + + (~doc-section :title "Multiple Strategies" :id "strategies" + (p "A CSSX component chooses its own styling strategy — and each strategy has its " + "own delivery path:") + (ul :class "list-disc pl-5 space-y-1 text-stone-700" + (li (strong "Tailwind classes: ") "Delivered via the on-demand protocol below. " + "The server ships only the rules the page actually uses.") + (li (strong "Inline styles: ") "No delivery needed — " (code ":style") " attributes " + "are part of the markup.") + (li (strong "Emitted " (code "