# JellyRoll · SnapLogic Design System 2.0

The design system for **SnapLogic** — an enterprise iPaaS for connecting applications, data, and AI agents. JellyRoll is the source of truth for Designer, Admin Manager, Monitor, AutoSync, APIM, and the Pattern Catalog.

## For AI coding agents

### Claude Code slash command (recommended)

Install once. `/jellyroll` then works in any Claude Code **terminal** session — no need to clone this repo.

> Cowork, cloud sessions, and claude.ai don't read `~/.claude/`. Use the manual prompt below in those.

**1. Install**

```bash
BASE=https://raw.githubusercontent.com/SL-Design-Team/jellyroll/main/.claude/commands
mkdir -p ~/.claude/commands
curl -sL $BASE/jellyroll.md -o ~/.claude/commands/jellyroll.md
```

Restart Claude Code (or start a new session) so it picks up the command. Type `/jell` — you should see `jellyroll` in the autocomplete.

**2. Build**

```text
/jellyroll build a connection list page with a KPI row and a status table
```

For React:

```text
/jellyroll build a React component for the search overlay
```

**3. Share it for review**

Ask the agent to publish it, or run this yourself — it creates a repo in the SL-Design-Team org and turns on GitHub Pages, so customers and stakeholders get a link instead of a file.

```bash
gh repo create SL-Design-Team/<prototype-name> --internal --source . --push
gh api -X POST repos/SL-Design-Team/<prototype-name>/pages \
  -f "source[branch]=main" -f "source[path]=/"
```

Live a minute later at `https://sl-design-team.github.io/<prototype-name>/`. Internal repos are visible to SnapLogic accounts only — for an external customer review, make the repo public first and keep anything confidential out of it.

`/jellyroll` fetches the live design system at invocation time and pulls the relevant components, tokens, and patterns before it writes anything. The command declares its own `allowed-tools`, so the token fetch runs without a permission prompt — no separate setup step.

<details>
<summary>If you still get a permission prompt</summary>

Older Claude Code versions ignore per-command `allowed-tools`. Either approve the prompt once, or add this to the `permissions.allow` array in `~/.claude/settings.json`:

```json
"Bash(curl -s https://sl-design-team.github.io/jellyroll/*)"
```

`/jellyroll-setup` (also in [`.claude/commands`](https://github.com/SL-Design-Team/jellyroll/tree/main/.claude/commands)) does exactly that one edit and nothing else.

</details>

### Manual prompt (Cursor, Copilot, other agents)

The design system is published live from [`SL-Design-Team/jellyroll`](https://github.com/SL-Design-Team/jellyroll) — the repo is the source of truth, not a frozen export. Any AI coding agent that can fetch URLs can pull the agent-oriented context with this prompt:

```
Read the JellyRoll index for agents at https://sl-design-team.github.io/jellyroll/llms.txt,
fetch the token CSS at https://sl-design-team.github.io/jellyroll/colors_and_type.css,
and pull the preview files at https://sl-design-team.github.io/jellyroll/preview/<name>.html
(or the bare snippets at /snippets/<name>.html) for whatever you're building.
Implement: <describe what you want built>
```

**Agent-readable entry points** (all served live):

- **[`llms.txt`](https://sl-design-team.github.io/jellyroll/llms.txt)** — index of the whole system: every component grouped by section, with one-line descriptions and links. Start here.
- **[`jellyroll.json`](https://sl-design-team.github.io/jellyroll/jellyroll.json)** — the structured catalog: each asset's anatomy / options / usage / behaviors and its token list, as parseable JSON (no HTML scraping).
- **`colors_and_type.css`** — the token source of truth (10 ramps, semantic tokens, spacing, radii, shadows, type).
- **`preview/<name>.html`** — the canonical full demo of each component (every state and variant). Each also carries a `<script type="application/json" id="jellyroll-meta">` block in its `<head>`.
- **`snippets/<name>.html`** — chrome-free, copy-paste blocks (reusable CSS + canonical markup, real `:hover`/`:active` states). A curated subset; see [`snippets/README.md`](https://sl-design-team.github.io/jellyroll/snippets/README.md).

Browse the rendered gallery at <https://sl-design-team.github.io/jellyroll/> to see component names + previews; each tile's URL maps directly to a fetchable file under `/preview/`.

Because the source of truth is the live repo, what you fetch is always current — no stale tarball drift.

## Browse

Open `index.html` in any browser, or run a quick local server:

```bash
python3 -m http.server 8000
# then visit http://localhost:8000
```

The gallery lists 106 design assets — foundations, color ramps, brand, primitives, components, advanced editors, patterns, the Designer template, and data-visualization charts. A left-hand accordion lists every asset under its category; a top-of-sidebar search filters both the nav and the grid. Click any tile to open its detail page — the preview renders inline (no iframes), alongside the Adobe Spectrum-style Anatomy / Options / Usage guidelines / Behaviors / Tokens sections.

If you want to publish this on GitHub Pages, push to a repo and enable Pages from `main` → `/ (root)`. No build step required — it's all static HTML/CSS + Acherus Grotesque webfonts.

## Use the tokens in your project

Drop `colors_and_type.css` and `fonts.css` (with the `fonts/` directory) into your app, then `@import` or `<link>` the stylesheet.

**Internal SnapLogic projects must ship Acherus Grotesque** — SnapLogic holds the license, and the `fonts/` directory here is the source. If your app renders in a fallback sans, that's a bug. See [FONTS.md](FONTS.md) for how to verify what your app actually painted (your own machine will lie to you if Acherus is installed locally).

```html
<link rel="stylesheet" href="/jellyroll/colors_and_type.css" />
```

This gives you every JellyRoll token as a CSS custom property — color ramps, semantic colors, spacing, radii, shadows, the type scale, and ready-made type recipes (`.sl-body`, `.sl-pill`, `h1`–`h6`, etc.):

```css
.my-button {
  background: var(--sl-blue-600);
  color: var(--sl-white);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-6);
  font: 800 14px/22px var(--font-sans);
}
.my-button:hover {
  background: var(--color-background-primary-hover); /* teal→blue gradient */
}
```

### Quick rules

- **Primary brand:** `--sl-blue-600` (`#0841B4`). Primary hover is the **teal→blue gradient** in `--color-background-primary-hover` — distinctive, not a darker blue. Pressed = `--sl-teal-400`.
- **Secondary buttons:** white fill; on hover only the border + text shift blue → teal.
- **Body text:** `--color-text-body` (`#031A48`, dark navy). Subtle text: `--color-text-subtle` (`#7D8695`).
- **Cards:** white, 1px Grey-300 border, 4px radius, 16px padding, `--shadow-raised`. Borders — not shadow — indicate selection (1px → 1.5px on hover → 3px when selected).
- **Sentence case** everywhere (Microsoft style), except Snap names and SnapLogic terms such as Snaplex and Triggered Task. Pills/tags = 10px ExtraBold UPPERCASE only, via CSS. See the **Content guidelines** and **Terminology** cards under Foundations.
- **No emoji.** Icons via [Lucide](https://lucide.dev) CDN; Font Awesome 6 as a fallback for vendor logos and domain pictograms.
- **No gradients in normal UI.** Reserved for the 6 product launcher icons + SnapGPT accent + the brand gradient.

The full visual + content guidelines lived in the agent-oriented bundle README — preserved in the project history if you need the long version (voice, tone, casing, surfaces & elevation, animation, iconography rules).

## Structure

```
jellyroll-design-system/
├── index.html              # SPA gallery — Getting Started, categories, detail view, search
├── _data/
│   ├── items.js            # Catalog: category structure, taglines, usage + behaviors per item
│   └── tokens.js           # Per-item token lists (rendered in the Tokens section)
├── colors_and_type.css     # Full token system (drop-in CSS variables)
├── fonts.css               # @font-face for Acherus Grotesque
├── fonts/                  # Acherus Grotesque WOFF2/OTF, weights 200–900
├── assets/                 # SnapLogic logo (white wordmark) + SnapGPT mark
├── preview/                # 113 standalone preview cards + the combined color-ramps page
├── Brand Gradient.html     # Full-page brand-gradient demo
└── network-graph.html      # Full-page force-directed network graph demo
```

### Categories (mirroring the gallery)

| #  | Category              | Count | Examples                                            |
|----|-----------------------|-------|-----------------------------------------------------|
| —  | Getting started       | 9     | Overview, accessibility, design principles, content guidelines (terminology, voice and grammar, numbers, microcopy, error messages, writing for accessibility) |
| 01 | Foundations           | 17    | Color (ramps, semantic text, status, palettes), typography, spacing, radii, shadows, surfaces, motion, breakpoints, z-index, tokens |
| 02 | Brand                 | 3     | Logo, brand gradient, iconography                   |
| 03 | Components            | 25    | Buttons, inputs, badges, checkbox, number input, avatar, menu… |
| 04 | Composite components  | 26    | Combobox, date picker, drawer, modal, table, tabs, toast, global header… |
| 05 | Patterns              | 22    | Validation, save/discard, AI-assisted input, wizard, agent activity |
| 06 | Data visualization    | 17    | KPI, sparkline, time series, heatmap, histogram, hive plot… |
| 07 | Advanced editors      | 7     | Code, JSON, schema, connection picker, API parameter builder |
| 08 | Templates             | 1     | Designer · Empty canvas                             |

The progression is: learn the system (**Getting started**), then the primitives (**Foundations**) and the **Brand** assets, then **Components**, **Composite components** (assembled from components), **Patterns** (recurring flows), and the specialized sections. In the left nav, Foundations shows one line per topic: Color and Typography each open to their other pages when you are inside them.

## Caveats

- **Icons are Lucide via CDN** as a substitute for the Figma's Untitled UI Icons (~95% visual match). If pixel-perfect Untitled UI Icons are required, swap in the Pro SVGs.
- **Product launcher gradient icons** (Designer, APIM, AutoSync, Admin Manager, Monitor, Project Manager) are placeholder gradient circles with Lucide glyphs. Real product icons were not exported from Figma.
- **No formal dark theme.** The dark global navbar is treated as inverted chrome, not full dark mode.
- **Acherus Grotesque** is licensed; the WOFF2/OTF files in `fonts/` are bundled for use within SnapLogic surfaces. They are never published to the public npm package — `scripts/build-npm.js` refuses to build if one reaches the tarball. External consumers get a metric-matched fallback instead. See [FONTS.md](FONTS.md).

## Sources

Built from the JellyRoll Figma library (60 pages, 279 frames) and the SnapLogic Confluence design-tokens documentation. Design rationale was captured during a back-and-forth in Claude Design across three sessions covering color ramps, primitive components, AI patterns, the spinner, the Designer template, and the data-viz wave (network graph, hive plot, Sankey, swim-lane Gantt, calendar heatmap, etc.).
