Ldls web

From LedgerHQ/ledger-live · View interactive version

Ldls web is an AI agent skill from the GitHub repository LedgerHQ/ledger-live. Lumen UI React design system rules (`@ledgerhq/lumen-ui-react`) and how a web implementation maps a universal contract onto Lumen. Use when writing or reviewing web UI, in `*.web.tsx` files or under `apps/ledger-live-desktop/**`.

How to use this skill

Skill file

Lumen UI React

Read the Lumen rules first

Lumen ships its own rules for components, Tailwind tokens and typography. Read them before writing UI:

CODE0.

The file exists once pnpm i has run. pnpm links @ledgerhq/lumen-ui-react under the packages that

depend on it, not at the repo root. If the path is missing, open ai-rules/RULES.md in the installed

@ledgerhq/lumen-ui-react package of any web consumer.

Map the contract onto Lumen

The rules both platforms follow are in

universal-components. On web,

X.web.tsx maps:

| Contract (X.types.ts) | Web implementation (X.web.tsx) |

| ------------------------------------- | -------------------------------------------------------- |

| Intent callback, onOpenContacts() | onClick={onOpenContacts} |

| Value callback, onSearchQueryChange | onChange={(event) => onSearchQueryChange(event.target.value)} |

| testID | data-testid={testID} |

// ContactsButton.web.tsx
import {
  Card,
  CardContent,
  CardContentTitle,
  CardHeader,
  CardLeading,
} from "@ledgerhq/lumen-ui-react";
import type { ContactsButtonProps } from "./ContactsButton.types";

export function ContactsButton({ title, onOpenContacts, testID }: ContactsButtonProps) {
  return (
    <Card type="interactive" onClick={onOpenContacts} data-testid={testID}>
      <CardHeader>
        <CardLeading>
          <CardContent>
            <CardContentTitle>{title}</CardContentTitle>
          </CardContent>
        </CardLeading>
      </CardHeader>
    </Card>
  );
}

What stays in the web file

These never appear in the contract. The web file owns them:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.