Skip to content

LedgerHQ/lumen / .claude/skills/component-mdx

component-mdx

Verified

Use when writing or editing Storybook MDX docs (*.mdx) — the two-tab Overview/Implementation structure, story-backed `<Source>` examples, and doc table guidelines.

FileKindSize
SKILL.mdskill md3.9 KB
references/tables.mdmarkdown1.4 KB

references/tables.md

View on GitHub
# Table markup for MDX docs

Copy-paste template for tables inside component `.mdx` docs. This is markup, not a
convention — the rules that matter are: design-system typography
(`body-2`, `body-3`, `body-4`), colours (`text-accent`, `text-muted`,
`text-on-accent`, `bg-muted`, `bg-canvas`), spacing (`p-12`, `my-24`) and borders
(`border-muted`); the last row omits `border-b`; the first column shows utilities
and uses `text-accent`, other columns use `text-muted`.

## Container

```jsx
<div className='my-24 overflow-hidden rounded-lg'>
  <table className='w-full'>{/* table content */}</table>
</div>
```

## Full structure

```jsx
<div className='my-24 overflow-hidden rounded-lg'>
  <table className='w-full'>
    <thead>
      <tr className='border-b border-muted bg-muted'>
        <th className='p-12 text-left text-on-accent body-2'>
          Tailwind class (utilities)
        </th>
        <th className='p-12 text-left text-on-accent body-2'>styles</th>
      </tr>
    </thead>
    <tbody className='bg-canvas'>
      <tr className='border-b border-muted'>
        <td className='text-accent p-12'>h-1</td>
        <td className='p-12 text-muted'>height: var(--size-1); /* 1px */</td>
      </tr>
      {/* More rows... */}
      <tr>
        <td className='text-accent p-12'>h-256</td>
        <td className='p-12 text-muted'>
          height: var(--size-256); /* 256px */
        </td>
      </tr>
    </tbody>
  </table>
</div>
```
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall