csszyx v0.5.0
Minor Changes
-
9385bd5: ###
csszyx/browser— standalone IIFE runtime for vanilla HTMLA new sub-path bundles a self-contained runtime that processes
sz="..."
attributes in plain HTML pages, no bundler required. Drop a single
<script>tag from unpkg or jsdelivr and start writingszattributes
directly in.htmlfiles:<script src="https://unpkg.com/@tailwindcss/browser@4"></script> <script src="https://unpkg.com/csszyx@0.5.0"></script> <body sz="{ p: 8, bg: 'slate-950' }"> <h1 sz="{ text: '4xl', color: 'blue-500' }">Hello csszyx</h1> </body>
The runtime walks the DOM on load, compiles each
[sz]element into
Tailwind classes, and installs aMutationObserverso dynamically-added
elements are processed automatically. CSP-safe (noeval/new Function).package.jsonchanges for CDN auto-discovery:unpkgfield →./dist/browser.iife.jsjsdelivrfield →./dist/browser.iife.js- New
./browserentry inexports
See the new CDN — Vanilla HTML guide
for full usage including anti-FOUC, version pinning, and offline use.@csszyx/vscode— full HTML attribute supportThe extension now provides autocomplete, hover, and syntax highlighting
forsz="..."attributes in.htmlfiles (previously JSX/TSX only).
Both explicit (sz="{ p: 4 }") and implicit (sz="p: 4, bg: 'red-500'")
syntax forms are supported. Pairs naturally with the newcsszyx/browser
runtime — author with full IntelliSense, ship via CDN.
Patch Changes
- Updated dependencies [9385bd5]
- @csszyx/compiler@0.5.0
- @csszyx/runtime@0.5.0
- @csszyx/core@0.5.0
- @csszyx/types@0.5.0
- @csszyx/unplugin@0.5.0
- @csszyx/dynamic@0.5.0