a post-component library for building user-interfaces on the web.
at main 28 lines 653 B view raw
1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 <title>dhtml example with signals</title> 7 <script type="importmap"> 8 { 9 "imports": { 10 "dhtml": "../../dist/index.js", 11 "dhtml/client": "../../dist/client.js", 12 "alien-signals": "./node_modules/alien-signals/esm/index.mjs" 13 } 14 } 15 </script> 16 <script type="module" src="main.js"></script> 17 <style> 18 @import url(../../reset.css); 19 [data-theme='light'] { 20 color-scheme: light; 21 } 22 [data-theme='dark'] { 23 color-scheme: dark; 24 } 25 </style> 26 </head> 27 <body></body> 28</html>