This directory contains the core design tokens and reusable components for the application.
The demo of the design system can be found here: Demo Site
The design system is organized into Foundations and Components.
Base definitions that drive the visual style.
- Colors: Base scales and semantic color tokens.
- Typography: Font families, sizes, and utility classes.
- Spacing: Spacing, sizing, and radius tokens.
Reusable UI elements built using the foundations.
- Button (CSS): Primary, secondary, and utility buttons.
- Boxes (CSS): Container components.
- Dropdown (CSS, JS): Customizable dropdown menus.
- Horizontal Cards (CSS, JS): Horizontal scrolling card carousel with navigation buttons and card centering.
- Icons (CSS): Scalable SVG icons with size and color variants.
- Input (CSS): Text, number, checkbox, and radio button inputs with various states and sizes.
- Modal (CSS, JS): Customizable modal dialogs with flexible content insertion. Includes a help modal variant optimized for documentation.
- Numeric Slider (CSS, JS): Single value and range sliders with optional input fields.
- Tags (CSS): Label and status indicator tags.
Include the relevant CSS files in your HTML. For a full integration, you typically include:
<!-- Fonts (Work Sans) -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Design System Foundations -->
<link rel="stylesheet" href="/design-system/colors/colors.css">
<link rel="stylesheet" href="/design-system/spacing/spacing.css">
<link rel="stylesheet" href="/design-system/typography/typography.css">
<!-- Design System Components -->
<link rel="stylesheet" href="/design-system/components/button/button.css">
<link rel="stylesheet" href="/design-system/components/boxes/boxes.css">
<link rel="stylesheet" href="/design-system/components/dropdown/dropdown.css">
<link rel="stylesheet" href="/design-system/components/horizontal-cards/horizontal-cards.css">
<link rel="stylesheet" href="/design-system/components/icons/icons.css">
<link rel="stylesheet" href="/design-system/components/input/input.css">
<link rel="stylesheet" href="/design-system/components/modal/modal.css">
<link rel="stylesheet" href="/design-system/components/numeric-slider/numeric-slider.css">
<link rel="stylesheet" href="/design-system/components/tags/tags.css">Note on Fonts:
- Work Sans: Must be imported via Google Fonts (as shown above).
- Founders Grotesk: Included via
@font-faceintypography.css. - JetBrains Mono: Included via
@font-faceintypography.css.
Components have their own CSS and JS files located within their respective directories. See individual component READMEs for implementation details.
You can view and test the design system elements by opening the test harness:
http://[your-server]/design-system/test.html
This provides a sidebar navigation to explore colors, typography, and interactive component demos.