{token}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && {token || "Custom Shadow"}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && + {children} +
+); + +const meta: Meta = { + title: "Design Tokens/Borders & Shadows", + component: () => , + parameters: { + docs: { + description: { + component: + "This section defines our visual treatments for **borders** and **shadows**, crucial for defining element boundaries and conveying depth in our UI. These tokens are designed to align with **Bootstrap's border and shadow utilities** (e.g., `.border-radius-*`, `.shadow-*`), ensuring consistent visual presentation and seamless integration across all components. They empower designers and developers to create clear, layered, and modern interfaces.", + }, + }, + layout: "centered", + }, +}; + +export default meta; + +type Story = StoryObj+ The quick brown fox jumps over the lazy dog. +
++ They directly correspond to Bootstrap's `.text-*` utility classes. +
+{token}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && .fs-{token.split("-")[1]}
+ lh-{token}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && .lh-{token})
+ + {children} +
+); + +const meta: Meta = { + title: "Design Tokens/Fonts", + component: () => , + parameters: { + docs: { + description: { + component: + "This section defines our core **typographic system**, including font families, sizes, weights, and line heights. These tokens are seamlessly integrated with **Bootstrap's native font and line-height utilities** (e.g., `.fs-1` to `.fs-6`, and `.lh-1` to `.lh-lg`), ensuring a consistent and responsive typographic hierarchy across all applications. Designers and developers can leverage these tokens to maintain visual harmony and readability.", + }, + }, + layout: "centered", + }, +}; + +export default meta; + +type Story = StoryObj{token}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && + Visualize the effect of different opacity levels on a solid + background, showcasing how elements can become more or less + transparent. +
+{token}
+ {copied === token && (
+ ✓
+ )}
+ {copied !== token && {spacingClass}
+ + The Container Section Card is a reusable component used + throughout the Renku UI to group content visually. It is composed of a + header (with optional icons, buttons, or badges) and a body area for + structured content. This card brings visual consistency to dashboards, + summaries, and complex content blocks. +
++ Use the Section Container Card to visually group related content within + a page. It's ideal for structuring forms, settings, or dashboard + sections where a clear separation between different content blocks + enhances readability and organization. +
+<Card>)
+
+ <CardHeader>)
+
+ <CardBody>)
+
+ + Use the controls below to interact with the Container Section Card and + see how different props affect its appearance. +
+primary-outline button in the card
+ header
+ | Element | +Bootstrap Class(es) | +Notes | +
|---|---|---|
| Card Header Spacing | +
+ .px-3 .pt-3 .pb-0
+ |
+
+ Applies 1rem 16px padding on top, left
+ and right side and 0px on the bottom
+ |
+
| Body Spacing | +
+ .p-3
+ |
+
+ padding 16px all sides
+ |
+
| Header Icon title Spacing | +
+ .me-1
+ |
+
+ Margin between icon and title 4px
+ |
+
| Header Title Badged Spacing | +
+ .me-2
+ |
+
+ Margin between title and badge 8px
+ |
+
| Header Icon Title Badged - Action Button Spacing | +
+ .d-flex justify-content-between
+ |
+ + Main action must be aligned to the right without any additional + space + | +
| Border Radius | +
+ .border-radius
+ |
+
+ Use Token border-radius 6px
+ |
+
| Border | +
+ .border,.border-1
+ |
+
+ Light border style (stroke 1px)
+ |
+
| Shadows | +
+ .box-shadow
+ |
+
+ 0 .5rem 1rem rgba(0, 0, 0, .15)
+ |
+
| Element | +Bootstrap Class(es) | +Notes | +
|---|---|---|
| Header Title | +
+ .h4, .fw-semibold, .mb-0
+ |
+
+ Section title, no margin font-weight 600,{" "}
+ 23.322px
+ |
+
| Icon | +
+ .bi
+ |
+
+ height (1em, 14px) width (
+ 1em, 14px)
+ |
+
| Icon button | +
+ .btn .btn-outline-primary{" "}
+ .btn-sm
+ |
+
+ height (1em, 14px) width (
+ 1em, 23.322px)
+ |
+
| Badge | +
+ .badge .badge-secondary
+ |
+
+ font size: 12px
+ |
+
| Description | +
+ .text-body-secondary p .m-0
+ |
+
+ font size: 16px, margin 0px
+ |
+
| Element | +Bootstrap Class | +Notes | +
|---|---|---|
| Background | +
+ .bg-white
+ |
+ Standard white card background | +
| Text (primary) | +
+ .body-color-rgb
+ |
+
+ Font color: rgb(22, 25, 44)
+ |
+
| Subtitle | +
+ .text-body-secondary
+ |
+
+ Font color: rgba(22, 25, 44, .75)
+ |
+
| Border | +
+ .border
+ |
+
+ Border color: #dee2e6
+ |
+
| Icon Color | +
+ .body-color-rgb
+ |
+
+ Font color: rgb(22, 25, 44)
+ |
+
| Badge | +
+ .badge-secondary
+ |
+
+ background color: rgb(108, 117, 125), font color:{" "}
+ white
+ |
+
| Main action button | +
+ .btn-outline-primary
+ |
+
+ icon color: #006e58;
+ + border color: #006e58;
+ + hover icon color: #fff;
+ + hover bg: #006e58;
+ + hover border color: #006e58;
+ + active icon color: #fff;
+ + active bg: #006e58;
+ + active border color: #006e58;
+ + disabled color: #006e58;
+ + disabled bg: transparent;
+ + disabled border color: #006e58;
+ |
+
{description}
+ {children} +