Color Palette

--hds-primary
--hds-secondary
--hds-accent
--hds-muted
--hds-destructive
--hds-background

Colour roles (every palette since 0.5.0; status roles since 0.6.0)

Tailwind names from hds-style/css/tailwind-map.css (text-body, bg-toast...). Where a palette does not set a role yet, the map falls back to the value shown here.

--hds-text-body
--hds-text-faint
--hds-tint-border
--hds-control-off
--hds-warning
--hds-warning-bg
--hds-toast
--hds-scrim
--hds-success
--hds-info
--hds-destructive-text

Status text on its own 10% tint (badges, alerts), AA in every palette:

Saved Pending review Sync failed

Primary Scale (Tailwind primary-*)

50
100
200
300
400
500
600
700
800
900
950

Data Visualization

1
2
3
4
5
6
7
8
9
10

Typography

Body and headings: Inter (body weight 300) — h1 and display titles: Inter Tight

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

This is a regular paragraph with bold and italic text, along with a link. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • Unordered list item 1
  • Unordered list item 2
  1. Ordered list item 1
  2. Ordered list item 2
This is a <pre><code> section.

Components

Buttons

Card

Card Title

Card content with some description text.

Form Inputs

Table

Name Status Role
Dr. Smith Active Physician
Dr. Johnson Pending Researcher
Dr. Williams Revoked Specialist

Connection List

Connections

Search connections...
DR
Dr. Roberts
Your next appointment is confirmed
CS
Clinical Study UNIL
Action required
PH
Pharmacy Central
Prescription renewed

Tabs

Sidebar

Badges

Primary Secondary Destructive Muted

Icons

From Flowbite — 24px, stroke width 2.2. Click a URL to copy.

arrow-left-to-bracket images/icons/arrow-left-to-bracket.svg
badge-check images/icons/badge-check.svg
ban images/icons/ban.svg
bars-from-left images/icons/bars-from-left.svg
clock-arrow images/icons/clock-arrow.svg
close images/icons/close.svg
cog-outline images/icons/cog-outline.svg
file-copy-alt-solid images/icons/file-copy-alt-solid.svg
file-pen-solid images/icons/file-pen-solid.svg
folder-open-outline images/icons/folder-open-outline.svg
life-saver-solid images/icons/life-saver-solid.svg
mail-box-outline images/icons/mail-box-outline.svg

Logos

Favicons

HDS favicon, ICO favicon.ico
HDS favicon, 512 px PNG hds-favicon-512x512.png
HDS favicon, SVG hds-favicon.svg

Horizontal

HDS horizontal logo, colour hds-logo-hz-color.svg
HDS horizontal logo, white hds-logo-hz-white.svg

Stacked

HDS stacked logo, colour hds-logo-stacked-color.svg
HDS stacked logo, white hds-logo-stacked-white.svg

Badge Outlined

HDS outlined badge, 512 px PNG hds-badge-outlined-512x512.png
HDS outlined badge, white hds-badge-white-outline.svg

Usage

Install the style package

npm install 'hds-style@github:healthdatasafe/style-package#0.6.0'

Import in your CSS

@import "tailwindcss";
@import "hds-style/css/theme.css";
@import "hds-style/css/palettes.css";

Apply a palette

<html class="palette-doctor">  <!-- or palette-patient, palette-dark -->
<html class="palette-patient palette-dark">  <!-- patient dark (teal) -->

Reference images from CDN

<link rel="icon" href="https://style.datasafe.dev/images/logos/favicon/favicon.ico">
<img src="https://style.datasafe.dev/images/icons/badge-check.svg">