Introduction
DS one can be installed via package managers or loaded directly from a CDN.
Package Manager
Section titled “Package Manager”Install DS one using your preferred package manager:
# Using bun (recommended)bun add ds-one@alpha
# Using npmnpm install ds-one@alpha
# Using yarnyarn add ds-one@alphaCDN (No Build Step)
Section titled “CDN (No Build Step)”For quick prototyping or simple projects, you can load DS one directly from a CDN:
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>DS one Example</title>
<!-- DS one Styles --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ds-one@alpha/DS1/1-root/one.css" />
<!-- DS one Components --> <script type="module" src="https://cdn.jsdelivr.net/npm/ds-one@alpha/dist/ds-one.bundle.js" ></script> </head> <body> <ds-button variant="primary">Click Me</ds-button> </body></html>Using @alpha Tag
Section titled “Using @alpha Tag”For automatic updates to the latest alpha version, you can use the @alpha tag:
<script type="module" src="https://cdn.jsdelivr.net/npm/ds-one@alpha/dist/ds-one.bundle.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ds-one@alpha/DS1/1-root/one.css"/>Import in JavaScript/TypeScript
Section titled “Import in JavaScript/TypeScript”After installing via package manager, you can import components:
// Import all componentsimport "ds-one";
// Or import specific componentsimport "ds-one/DS1/2-core/ds-button";import "ds-one/DS1/2-core/text-v1";
// Import stylesimport "ds-one/styles";Next Steps
Section titled “Next Steps”- Manual Setup - Learn the basics
- Components - Explore available components