New to Blocks UI? Follow the Hello World tutorial for a complete walkthrough, including a working example and GitHub Pages publishing.
Clone the source
git clone https://github.com/gargadobe/blocks-ui.git
cd blocks-ui
npm ciCreate a website
Use the source CLI from your checkout. The command creates a minimal project with a shared layout, fragments, and canonical blocks.
node packages/cli/index.js create my-website --template hello-world
cd my-website
npm install
npm run devOr start with plain HTML
Copy a block's HTML, CSS, and JavaScript from its documentation page. Include the shared token and base styles, then import the block directly.
<link rel="stylesheet" href="./styles/tokens.css">
<link rel="stylesheet" href="./styles/base.css">
<link rel="stylesheet" href="./blocks/accordion/accordion.css">
<div class="accordion">
<div><div>Do I need a framework?</div><div>No. Just the web.</div></div>
</div>
<script type="module">
import decorate from './blocks/accordion/accordion.js';
document.querySelectorAll('.accordion').forEach(decorate);
</script>Build and deploy
Run npm run build inside the generated website and deploy its dist/ directory. No Node.js server is needed in production.