Get started with HTML/CSS
Install Dalvan UI in your project from npm once the package is published. The CSS package includes design tokens, base styles, component classes, and utilities.
Install
npm install @dalvan-ui/css
Load the stylesheet
If your build tool supports CSS imports from JavaScript, import the stylesheet once in your entry file.
import "@dalvan-ui/css";
For a site without a bundler, copy node_modules/@dalvan-ui/css/dist/index.css to an asset directory served by your site. If you copy it to assets/dalvan-ui.css relative to the HTML page, add this link to the page’s head.
<link rel="stylesheet" href="./assets/dalvan-ui.css" />
Try a component
<button
type="button"
class="dv-button dv-color-primary dv-appearance-solid dv-appearance-interactive"
>
Continue
</button>
Build a complete first page in the HTML/CSS Quick Start or browse the CSS component guides.