Quick Start
Build a single HTML page with a Dalvan UI card and button. Run these commands after the CSS package is available on npm.
Create the project
mkdir dalvan-html
cd dalvan-html
npm init -y
npm install @dalvan-ui/css
node -e "require('node:fs').copyFileSync('node_modules/@dalvan-ui/css/dist/index.css', 'dalvan-ui.css')"
Add your first page
Save this as index.html beside dalvan-ui.css.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>My first Dalvan UI page</title>
<link rel="stylesheet" href="./dalvan-ui.css" />
</head>
<body>
<main class="dv-p-300">
<article class="dv-card">
<header class="dv-card__header">
<h1 class="dv-m-0">Project status</h1>
</header>
<div class="dv-card__body">
<details>
<summary class="dv-button dv-color-primary dv-appearance-solid dv-appearance-interactive">
Show project details
</summary>
<p class="dv-text-body-md">The component guide is ready for review.</p>
</details>
</div>
</article>
</main>
</body>
</html>
Open index.html in your browser and activate Show project details to expand the summary. If you update the npm package, copy the stylesheet again.
Explore Foundations, then use the Card guide to adjust the layout.