Skip to content
Esc

Home / Get started

Get started with Space

Choose how you'll use it. Mix paths freely: design in Figma and build with Tailwind using the same names.

You need Tailwind CSS v4. Don't have it yet? Follow the official install guide and come back.

1

Download the theme

Grab it from GitHub or link it from the CDN. It's 21 kB minified.

terminal
curl -O https://cdn.jsdelivr.net/gh/josefloresdesign/space-ds/tailwind/theme.css
2

Import it in your main CSS

It goes right after Tailwind, together with the IBM Plex Sans font.

main.css
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&display=swap");
@import "tailwindcss";
@import "./theme.css";
3

Use the classes

Names match Figma. Semantic colors already switch in dark mode.

index.html
<button class="h-control-md px-4 rounded-control
  bg-action-primary-default hover:bg-action-primary-hover
  text-text-on-action text-body-md font-semibold">
  Save changes
</button>
4

Turn on dark mode (optional)

It follows the system setting on its own. To force it, set it on the html tag.

index.html
<html data-theme="dark">