CSS

Design system 1 can style native HTML without loading its JavaScript bundle. The CSS-only API is useful for static pages, server-rendered interfaces, and progressive enhancement.

Load one.css, then apply Design system 1 classes to native elements:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/ds-one@alpha/DS1/1-root/one.css"
/>
<title>CSS-only Design system 1</title>
</head>
<body>
<main class="ds-card">
<h1 class="ds-text ds-text--heading">Welcome</h1>
<p class="ds-text">This page uses Design system 1 without JavaScript.</p>
<label class="ds-text" for="email">Email</label>
<input
class="ds-input"
id="email"
name="email"
type="email"
placeholder="you@example.com"
/>
<button class="ds-button ds-button--primary" type="button">
Get started
</button>
<button class="ds-button ds-button--secondary" type="button" disabled>
Unavailable
</button>
</main>
</body>
</html>

There is intentionally no <script> element in this example.

ClassPurpose
.ds-textDefault text treatment
.ds-text--headingHeading variant used with .ds-text
.ds-text--smallSmall-text variant used with .ds-text
.ds-buttonBase native button or link
.ds-button--primaryPrimary button variant
.ds-button--secondarySecondary button variant
.ds-inputNative form input
.ds-cardBordered content container

The classes use the same CSS custom properties as the Web Components, including the color, typography, spacing, scaling, and theme tokens in one.css.

The CSS-only classes do not replace the component bundle. Load the JavaScript bundle separately when you need Design system 1’s Web Components, internationalization, stored preferences, or other scripted behavior.