Lime 标志

Lime

社区
arla6ka
lime

Lime 设计系统规定了此项目 UI 的设计规则。构建或修改任何界面、组件、表单或样式,将现有界面迁移到 Lime,或检查 UI 是否符合 Lime 规范时使用。

Add to TypingMind

概览

发布者arla6ka
代码仓库design.how
技能名称lime
星标数
200
复刻数
15
附带文件
69
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 69 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 arla6ka 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Lime AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/arla6ka/design.how/tree/main/systems/lime
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arla6ka/design.how.git /tmp/design.how
mkdir -p .claude/skills
cp -r /tmp/design.how/systems/lime .claude/skills/lime
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Lime,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Lime。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Lime 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Lime

Lime is a white page, warm-grey surfaces and near-black text with one acid lime on the main action, for consumer apps. Build with these components before writing markup.

Setup

Once, in the root layout: put the "lime" class on <body> or the root element of the UI, with LimePortalProvider inside it. Lime's styles and tokens apply only inside that class. Menus, dialogs, popovers and toasts render at the end of the body; LimePortalProvider keeps them inside the scope, and without it they lose every token. import {LimePortalProvider} from '@/lib/lime/portal' <body className="lime"><LimePortalProvider>{children}</LimePortalProvider></body>

Steps

  1. For a whole screen, start from a block under Blocks when one fits: install it, then swap its sample data and copy for the real ones.
  2. Pick the components the screen needs from the index below. Fetch each one's page before using it: it has the props, variants and that component's rules.
  3. Build only from those components and the tokens under Tokens, inside an element with the "lime" class. Import each from the path in the index; support pieces are under Imports. Dark mode: put data-theme="dark" on the lime element or any ancestor, such as . The theme does not follow the system setting (prefers-color-scheme) on its own.
  4. Frame the screen with the Page shell. If a component is missing, build the stand-in under Coverage gaps; if none is listed, compose it from existing components and tokens and say what you built. Never invent a token.
  5. Ask the person only when the screen needs an amount, a payee or an autonomy limit you were not given; never invent one. Decide everything else from these rules and say what you chose.
  6. Porting an existing screen: swap one piece at a time for its component, keep the behavior and copy, and delete the old styles once nothing uses them. For a whole app, run migrate-design-system when it is installed.
  7. Lint: install it once with npx shadcn@latest add https://design.how/r/lime/lint.json, then run npx eslint -c lime.eslint.config.mjs .. Each message names the fix.
  8. Review before you finish: run the lint and fix every error, then render the screen at 390 and 1280 wide, check it against the global rules and the anti-slop list, fix the worst defect, and check again. Done when no MUST or NEVER is broken and no raw color, size or font is left. Run ui-review when it is installed.

Priority order

When rules conflict, the earlier item wins.

  1. Accessibility and keyboard behavior
  2. Tokens by role, never raw values
  3. Existing components, never rebuilt
  4. Spacing, radius and type scales
  5. Polish: glow, motion, detail

Global rules

  1. lime-components-first MUST Use a Lime component before writing custom markup; fetch its page before you build. Because each one already carries the focus ring, states and touch size a hand-built copy forgets.
    • Correct: import {Button} from '@/components/lime/ui/button'
  2. lime-scope MUST Wrap Lime UI in className="lime" with LimePortalProvider inside it, so overlays keep the tokens. Because a menu or dialog renders at the end of the body, outside the scope, and would lose every color.
    • Correct: <div className="lime"><LimePortalProvider>{children}</LimePortalProvider></div>
  3. lime-tokens-only MUST Use only the token names Lime defines, such as --fg, --surface and --accent; never a hex value, arbitrary px or dark: variant. Because the dark theme and any retune change the roles, and a raw value stays behind.
    • Correct: <p className="text-fg">
    • Wrong: <p className="text-[#0f0f0d]">
  4. lime-one-action MUST Use one lime primary action per view; every other action is solid, secondary, outline or ghost. Because the glowing lime is how the person finds the next step in a second.
  5. lime-lime-scarce NEVER Fill a page, card or section with lime, or put white text on it; text on lime is --on-accent. Because white on lime is unreadable and a lime block drowns the one action.
    • Wrong: <Card className="bg-accent text-white">Your goals</Card>
  6. lime-glow-scarce NEVER Add glow beyond primary and destructive buttons, the balance chip and one featured card. Because two glowing things compete and neither reads as the action.
    • Wrong: <Card variant="glow">Recent activity</Card> // beside the upgrade card
  7. lime-money-sign MUST Format every amount with formatAmount or Amount, never by hand: formatAmount text in List and Table rows, the Amount pill for a sum beside a control or one that needs a tone. Because a hand-built string drops the minus, the separators or the tabular figures.
    • Correct: import {Amount, formatAmount} from '@/components/lime/ui/amount'
    • Wrong: <span>${total}</span>
  8. lime-ask-before-money MUST When the assistant moves money, show an ApprovalRequest first and an ActionReceipt with Undo after; when the person pays, show a review step and then Payment done with Undo. Because money that moves without a check, or with no way back, is the one mistake people do not forgive.
    • Correct: <ApprovalRequest title="Pay Maya for dinner" amount={-24} reason="Your half of Friday dinner"/>
  9. lime-field-label MUST Wrap every input in Field with a label above it; a placeholder is not a label. Because a placeholder disappears as soon as the person types and is not read as a name.
    • Correct: <Field name="title"><FieldLabel>Goal name</FieldLabel><Input/></Field>
  10. lime-focus MUST Keep every control keyboard-operable with the 2px olive :focus-visible ring; never outline: none. Because keyboard and switch users lose their place without it.
  11. lime-section-heading MUST Name a section with a real heading (an h2 at text-lg font-semibold in --fg) or not at all; never a small text-sm or text-xs label above the content. Because a small grey label above content is skipped by heading navigation and makes every section look the same.
  • Correct: <h2 className="text-lg font-semibold">Recent activity</h2>
  • Wrong: <p className="text-sm font-medium text-fg-3">Recent activity</p>
  1. lime-sentence-case MUST Write sentence case and a verb with its object on actions; no emoji, no em dash, no title case. Because the copy then reads like a person talking, and every screen sounds the same.
  • Correct: <Button>Send money</Button>
  • Wrong: <Button>OK</Button>

Page shell

Every screen sits in this frame.

  • Root: <div className="lime min-h-dvh bg-page text-fg"> with LimePortalProvider inside it
  • One task, such as send or pay: <main className="mx-auto w-full max-w-md px-4 pt-4 pb-8 sm:px-6 sm:pt-8">
  • Home, activity, settings: the same main at max-w-2xl
  • A Table on a wide screen: the same main at max-w-5xl
  • Header: <header className="sticky top-0 z-10 flex h-14 items-center gap-2 bg-page">: a ghost size="icon" Button with aria-label="Back", then the h1; add border-b border-line once content scrolls under it
  • Page title: <h1 className="text-xl leading-tight font-semibold tracking-tight sm:text-2xl">, one per page
  • Section: <section className="flex flex-col gap-3"> led by an h2 at text-lg font-semibold; sections sit gap-8 apart
  • Form: Fields in flex flex-col gap-4 at max-w-md; the submit Button last, size="lg" and w-full on a phone
  • Main action of a phone flow: <div className="sticky bottom-0 bg-page pt-3 pb-4"> holding <Button size="lg" className="w-full">; add the safe-area inset under a home bar

Anti-slop

The habits of generated UI that Lime bans. Details: https://design.how/systems/lime/foundations/anti-slop.md

  • anti-slop-no-eyebrow NEVER Put a small label, a category or a number such as 01 above a title or a section. Because the heading already names the section, and the label only adds a second voice saying less.
    • Wrong: <p className="text-xs font-medium text-fg-3">Overview</p><h2>Spending</h2>
  • anti-slop-no-stat-cards NEVER Lay out a row of equal cards each holding one number; show one Balance, a List or a sentence. Because equal boxes make every number equally loud, so the one that matters is lost.
    • Wrong: <Card>Income</Card><Card>Spent</Card><Card>Saved</Card>
  • anti-slop-earn-surface MUST Group with space first; use a Card only around one thing the person acts on, and never put a Card in a Card. Because boxes around everything flatten the page into equal tiles and the eye has nowhere to start.
  • anti-slop-no-icon-tiles NEVER Put an icon in a tinted tile, or beside a heading or a stat as decoration; ListIcon in a List row is the one round mark. Because a decorative icon carries no meaning and pulls the eye from the words.
    • Wrong: <span className="rounded-panel bg-accent-wash p-2"><Icon icon={Wallet}/></span>
  • anti-slop-no-side-rail NEVER Mark a card, row or quote with a colored bar on one edge; use --accent-wash for a chosen row. Because the bar reads as a status nobody defined.
    • Wrong: <div className="border-s-4 border-accent">
  • anti-slop-no-decoration NEVER Add a gradient, blob, texture, grid or dot background, glass blur, or a glow beyond the sanctioned ones. Because decoration competes with the one glowing action, which is the only light Lime allows.
    • Wrong: <div className="bg-gradient-to-br from-accent to-surface backdrop-blur">
  • anti-slop-sticky-edge MUST Give a sticky header a --line bottom edge once content scrolls under it, and none at the top. Because without the edge, scrolled text slides under the title with nothing to say where the header ends.
  • anti-slop-icon-first-line MUST Align a leading icon to the first line of its text, not the middle of a block that wraps. Because a centered icon drifts away from the line it labels once the text runs to two lines.
  • anti-slop-no-small-prose NEVER Set a sentence the person must read, such as a fee or a limit, in text-xs or --fg-3; use text-sm in --fg or --fg-2. A FieldDescription hint is the exception. Because small grey text fails people reading in sunlight or with low vision, and a sentence is meant to be read.
    • Wrong: <p className="text-xs text-fg-3">Transfers over $1,000 take one extra day to arrive.</p>
  • anti-slop-peer-amounts MUST Set amounts that are peers, such as the rows of one list, at one size and weight. Because a bigger or bolder peer reads as more important when it is not.
  • anti-slop-no-caps NEVER Set text in capitals or spread its letters out; keep sentence case. Because capitals are slower to read and shout.
    • Wrong: <span className="uppercase tracking-widest">Queued</span>
  • anti-slop-no-hype NEVER Write instant, secure, effortless, seamless or invented urgency such as Only 2 hours left; say what happens and when. Because people trust an app that states the fact, and hype reads as a sales pitch over their money.
    • Wrong: Instant, secure transfers. Act now!
  • anti-slop-no-emoji NEVER Use emoji in copy, titles, buttons or as icons; use words and the Icon set. Because emoji render differently on every device and turn a money app into a chat thread.
    • Wrong: <Button>Send 💸</Button>
  • anti-slop-no-fake-data SHOULD Fill examples with believable data: real-looking names, amounts with cents, dates near today; never Lorem ipsum, John Doe or $1,234.56. Because placeholder data hides truncation and alignment problems that real data shows at once.
  • anti-slop-no-stream-effects NEVER Blink a cursor, sweep a shimmer or fade in each word of a streamed answer; let the text arrive as it is. Because the effect slows reading and makes the layout jitter while the person tries to read.
    • Wrong: <span className="animate-pulse">▍</span>
  • anti-slop-no-scroll-reveal NEVER Fade, slide or scale content in as it scrolls into view. Because content that hides until scrolled is missed, and motion that answers nothing is decoration.
    • Wrong: <motion.section whileInView={{opacity: 1, y: 0}}>
  • anti-slop-dialog-controlled MUST Open a Dialog, Sheet or AlertDialog with open and onOpenChange; never mount it only while open. Because a dialog that unmounts skips its exit motion and loses the trigger it returns focus to.
  • anti-slop-keep-one-glow MUST Keep one glowing primary action on every view while removing the rest; never flatten a screen to grey. Because Lime without its one lime action is a grey page with nowhere to go next.

Reject list

  • No blue, no second brand hue, no gradient behind content, no colored shadows.
  • No second icon set, no weight 700, no letter-spaced capitals.
  • No transition: all, no looping animation except the spinner.

Coverage gaps

Not in the system yet, and what to build meanwhile.

  • Bottom navigation: a <nav aria-label="Main"> fixed to the bottom on bg-page with border-t border-line, 3 to 5 links each an Icon at 20 over a text-xs label, at least 56px tall; the current one has aria-current="page" in --fg, the rest --fg-3.
  • Date picker: an Input with type="date" inside a Field.
  • Charts beyond a sparkline: the Insight sparkline, or the figures in a List; no chart library.

Imports

  • import {ListItemMenu} from '@/components/lime/ui/list-item-menu': A row's other actions behind a more button, for ListItem's menu.
  • import {Collapsible, CollapsibleTrigger, CollapsibleContent} from '@/components/lime/ui/collapsible': One section that opens and closes, the base of the Why? in Approval request.
  • import {cn, mergeClass} from '@/lib/lime/utils': cn, which merges class names and knows Lime's radius and shadow names, and mergeClass, which keeps Lime's classes when className is a function of state.
  • import {Icon} from '@/components/lime/icon': The one import point for Carbon icons.
  • import {LimePortalProvider, useLimePortal} from '@/lib/lime/portal': Puts overlays inside the .lime scope so they keep its tokens.
  • import {useFocusWhenReplaced} from '@/lib/lime/use-focus-when-replaced': Moves focus to an outcome when the buttons that had it are replaced, so a keyboard user is not dropped to the top.
  • import {popupClass, itemClass, groupLabelClass, separatorClass} from '@/lib/lime/popup': The panel, item and separator classes every floating list shares.

Icons

Import a glyph beside Icon from the path under Imports and pass it in: <Icon icon={Add} size={16}/>. These are all the names; another needs adding to that file first. Add, ArrowDown, ArrowRight, ArrowUp, Attachment, Checkmark, CheckmarkFilled, ChevronDown, ChevronRight, ChevronSort, ChevronUp, Close, Copy, ErrorFilled, Image, Information, Menu, Play, Receipt, Renew, Search, Send, Subtract, Time, Upload, Wallet, PiggyBank, Warning, WarningFilled, ChevronLeft, ArrowLeft, Pause, OverflowMenuHorizontal, Folder, Star, Plus, Delete, Cafe, ShoppingBag, Notification, Locked, Undo, Edit, CircleDash, Location

Tokens

The closed list. Use a token through its class, never a raw value: colors are utilities named after the role (bg-surface, text-fg, border-line); sizes read the scale (text-sm, rounded-field, shadow-card, h-(--control-lg), duration-(--dur-fast)). The class to use follows each token in brackets. Color names take bg-, text- or border-. A token with no class is read as a value, such as h-(--name).

  • Surfaces: --page (bg-page), --surface (bg-surface), --surface-2 (bg-surface-2), --surface-3 (bg-surface-3), --raised (bg-raised), --field (bg-field), --scrim (bg-scrim)
  • Text: --fg (text-fg), --fg-2 (text-fg-2), --fg-3 (text-fg-3), --fg-disabled (text-fg-disabled), --fg-inverse (text-fg-inverse), --on-accent (text-on-accent), --glow-accent-fg
  • Lines: --line (border-line), --line-strong (border-line-strong), --control (border-control)
  • Solid ink: --ink (bg-/text-/border-ink), --ink-hover (bg-/text-/border-ink-hover), --ink-active (bg-/text-/border-ink-active)
  • Accent: --accent (bg-/text-/border-accent), --accent-hover (bg-/text-/border-accent-hover), --accent-active (bg-/text-/border-accent-active), --accent-wash (bg-/text-/border-accent-wash), --accent-line (bg-/text-/border-accent-line), --ring (bg-/text-/border-ring)
  • Status: --success (bg-/text-/border-success), --success-tint (bg-/text-/border-success-tint), --success-text (bg-/text-/border-success-text), --warn (bg-/text-/border-warn), --warn-tint (bg-/text-/border-warn-tint), --warn-text (bg-/text-/border-warn-text), --danger (bg-/text-/border-danger), --danger-hover (bg-/text-/border-danger-hover), --danger-tint (bg-/text-/border-danger-tint), --on-danger (bg-/text-/border-on-danger), --danger-text (bg-/text-/border-danger-text)
  • Elevation: --shadow-ink, --shadow-card (shadow-card), --shadow-menu (shadow-menu), --shadow-overlay (shadow-overlay), --thumb, --switch-on, --switch-on-thumb, --shadow-thumb
  • Glow: 37 tokens read only through their classes and components; never by name.
  • Type: --font-sans (font-sans), --font-mono (font-mono), --text-xs (text-xs), --text-sm (text-sm), --text-base (text-base), --text-lg (text-lg), --text-xl (text-xl), --text-2xl (text-2xl), --text-3xl (text-3xl), --leading-tight (leading-tight), --leading-snug (leading-snug), --leading-normal (leading-normal), --tracking-tight (tracking-tight), --weight-normal (font-normal), --weight-medium (font-medium), --weight-semibold (font-semibold)
  • Size: --control-sm, --control-md, --control-lg
  • Radius: --radius-sm (rounded-sm), --radius-md (rounded-md), --radius-field (rounded-field), --radius-panel (rounded-panel), --radius-sheet (rounded-sheet), --radius-control (rounded-control)
  • Motion: --dur-instant, --dur-fast, --dur-base, --dur-slow, --dur-spin, --ease-out (ease-out), --ease-in (ease-in), --scale-enter, --scale-press
  • Layers: --z-dialog, --z-popover, --z-toast
  • Layout: --overlay-sm (max-w-overlay-sm), --overlay (max-w-overlay), --overlay-lg (max-w-overlay-lg), --popover (max-w-popover), --sheet (max-w-sheet), --popup-max (max-w-popup), --focus-offset, --line-focus, --scrollbar-thumb

Components

Actions

  • Button: Starts an action, such as Send money. The lime primary is the one glowing action on a screen. import {Button, Spinner, buttonVariants} from '@/components/lime/ui/button'
  • Copy button: Copies a value, such as a payment link, and confirms with a check. import {CopyButton} from '@/components/lime/ui/copy-button'

Inputs

  • Input: One line of text, such as a merchant name or a search. import {Input, fieldControl} from '@/components/lime/ui/input'
  • Textarea: Several lines of text, such as a note on a payment. import {Textarea} from '@/components/lime/ui/textarea'
  • Field: A label, a control, a hint and an error, wired together. import {Field, FieldLabel, FieldDescription, FieldError} from '@/components/lime/ui/field'
  • Select: One choice from a list, such as an account or a category. import {Select, SelectGroup, SelectLabel, SelectTrigger, SelectContent, SelectItem, triggerVariants} from '@/components/lime/ui/select'
  • Combobox: A searchable choice from a long list, such as friends or merchants. import {Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxEmpty} from '@/components/lime/ui/combobox'
  • Dropzone: A target for receipts and statements, with type and size checks. import {Dropzone} from '@/components/lime/ui/dropzone'
  • Keypad: The number pad for entering an amount on a phone, such as how much to send. import {Keypad, pressKey} from '@/components/lime/ui/keypad'

Selection

  • Checkbox: One option on or off, with a mixed state. import {Checkbox} from '@/components/lime/ui/checkbox'
  • Radio: One choice from a short visible list, such as a transfer speed. import {RadioGroup, Radio} from '@/components/lime/ui/radio'
  • Switch: A setting that applies at once, such as round-ups. import {Switch} from '@/components/lime/ui/switch'
  • Slider: A value or a range on a track, such as a monthly savings amount. import {Slider} from '@/components/lime/ui/slider'
  • Segmented: A short row of exclusive options, such as Week, Month and Year. import {Segmented, SegmentedItem, trackVariants} from '@/components/lime/ui/segmented'
  • Chip: A filter the person toggles, such as a spending category. import {Chip, chipClass} from '@/components/lime/ui/chip'

Display

  • Badge: A short fact that never changes on its own, such as Plus or New. import {Badge, badgeVariants} from '@/components/lime/ui/badge'
  • Avatar: A person, such as a friend you split a bill with, with initials as the fallback. import {Avatar, AvatarGroup, avatarVariants} from '@/components/lime/ui/avatar'
  • Card: A grouped block, such as a savings goal or a card, on warm grey, outlined or raised. import {Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, cardVariants} from '@/components/lime/ui/card'
  • Table: Rows of transactions you scan across, with amounts at the end. import {Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption} from '@/components/lime/ui/table'
  • List: Rows of transactions, accounts or settings, each with a mark, a title and a value or a chevron. import {List, ListItem, ListIcon, listVariants} from '@/components/lime/ui/list'
  • Progress: How far a goal has come, such as $640 of $1,000 saved, as a bar or a ring. import {Progress} from '@/components/lime/ui/progress'
  • Amount: A money amount with its sign, currency and tabular figures. import {Amount, amountAffordability, formatAmount, spokenAmount, toMoney, amountVariants} from '@/components/lime/ui/amount'
  • Bill schedule: The bills coming up in date order, each under a date tile, with who pays it. import {BillSchedule} from '@/components/lime/ui/bill-schedule'
  • Balance: The amount left in an account, kept in the header. import {Balance, balanceVariants} from '@/components/lime/ui/balance'

Feedback

  • Status: The state of a payment as a dot and a word. import {Status, STATUS_META} from '@/components/lime/ui/status'
  • Empty: An empty state with one action, such as Add a card. import {Empty, EmptyIcon, EmptyTitle, EmptyDescription, EmptyActions} from '@/components/lime/ui/empty'
  • Skeleton: Still grey shapes in place of content that is loading, such as recent activity. import {Skeleton, skeletonVariants} from '@/components/lime/ui/skeleton'
  • Error state: What failed to load, in its place, with Try again. import {ErrorState} from '@/components/lime/ui/error-state'
  • Toast: A short note after an action, such as Moved $50 to savings, with an optional Undo. import {ToastProvider, useToast, createToastManager} from '@/components/lime/ui/toast'

Overlays

  • Dialog: A focused task over a scrim, such as sending money. import {Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, backdropClass, dialogVariants} from '@/components/lime/ui/dialog'
  • Alert dialog: A blocking decision, such as deleting a goal, that cannot be dismissed from outside. import {AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogClose} from '@/components/lime/ui/alert-dialog'
  • Sheet: A panel from an edge, such as transaction details, that keeps the page visible. import {Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter, SheetClose, useSheetSide} from '@/components/lime/ui/sheet'
  • Popover: An anchored panel with controls, such as splitting a bill. import {Popover, PopoverTrigger, PopoverContent, PopoverTitle, PopoverDescription, PopoverClose} from '@/components/lime/ui/popover'
  • Dropdown menu: A list of commands behind a button. import {DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator} from '@/components/lime/ui/dropdown-menu'
  • Tooltip: A short label on hover and focus. import {Tooltip, TooltipTrigger, TooltipContent, TooltipProvider} from '@/components/lime/ui/tooltip'

Navigation

  • Tabs: Switches between views of one list, such as Activity and Scheduled. import {Tabs, TabsList, TabsTrigger, TabsContent} from '@/components/lime/ui/tabs'
  • Toolbar: A row of related controls with one tab stop. import {Toolbar, ToolbarGroup, ToolbarButton, ToolbarToggle, ToolbarSeparator} from '@/components/lime/ui/toolbar'

Layout

  • Accordion: A stack of questions that open one at a time. import {Accordion, AccordionItem, AccordionTrigger, AccordionContent} from '@/components/lime/ui/accordion'
  • Separator: A hairline between groups. import {Separator} from '@/components/lime/ui/separator'
  • Scroll area: A scrolling region with a slim thumb. import {ScrollArea} from '@/components/lime/ui/scroll-area'

Assistant

  • Chat input: The box a request to the assistant is written in, with the amount and send. import {ChatInput} from '@/components/lime/ai/chat-input'
  • Message: One turn in a conversation with the assistant. import {Message, messageVariants} from '@/components/lime/ai/message'
  • Tool call: One step the assistant took, such as Moved $50 to Vacation fund, as a single line. import {ToolCall} from '@/components/lime/ai/tool-call'
  • Follow ups: Suggested next requests under an answer. import {FollowUps} from '@/components/lime/ai/follow-ups'
  • Approval request: The assistant asking before it moves money, with the amount, one reason, and Approve, Edit or Decline. import {ApprovalRequest} from '@/components/lime/ai/approval-request'
  • Action receipt: A message listing what the assistant just did, one line per action, with Undo. import {ActionReceipt} from '@/components/lime/ai/action-receipt'
  • Autonomy rule: How far the assistant may go on its own, as one sentence with the limit typed into it. import {AutonomyRule} from '@/components/lime/ai/autonomy-rule'
  • Receipt match: A receipt paired with its payment, with whether the two match. import {ReceiptMatch} from '@/components/lime/ai/receipt-match'
  • Insight: One thing the assistant noticed, as a sentence, the number behind it and a tiny line. import {Insight} from '@/components/lime/ai/insight'

Blocks

Whole screens built only from the components above. Each installs to the blocks folder beside them.

  • Home screen: An app home: a greeting, the balance, three quick actions with Add as the glow, and a savings goal. npx shadcn@latest add https://design.how/r/lime/home.json import {HomeScreen} from '@/components/lime/blocks/home'
  • Assistant approval: You ask the assistant to pay a bill and it asks before it pays, with Approve as the glow. npx shadcn@latest add https://design.how/r/lime/assistant-approval.json import {PayingABill} from '@/components/lime/blocks/assistant-approval'
  • Assistant alert: The assistant flags an unusual charge or an unused subscription, with one row and the answers to it. npx shadcn@latest add https://design.how/r/lime/assistant-alert.json import {UnusualCharge, CancelSubscription} from '@/components/lime/blocks/assistant-alert'
  • Settings rules: Payday rules and the assistant's limits as settings lists, one row per rule. npx shadcn@latest add https://design.how/r/lime/settings-rules.json import {PaydayRule, AssistantLimits} from '@/components/lime/blocks/settings-rules'
  • Split request: A bill you paid, split by what each person owes, with one request to send. npx shadcn@latest add https://design.how/r/lime/split-request.json import {SplitDinner} from '@/components/lime/blocks/split-request'

Foundations

  • Color: The colors Lime uses, and where each one goes.
  • Typography: The typeface, sizes and weights Lime uses for every word and number.
  • Spacing: How much room goes between things, and how tall controls are.
  • Radius: How round each corner is, from pill buttons to softer panels.
  • Elevation: How things stack, using grey steps and a soft shadow for what floats.
  • Motion: How things move, quickly and only when something changes.
  • Iconography: One set of simple line icons, drawn in the same color as the text.
  • Anti-slop: The habits of generated UI to avoid, and what to do instead.

Add a component

npx shadcn@latest add https://design.how/r/lime/<name>.json, the name being the last part of its page link.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 9 个文件。

常见问题

Lime AI 技能有什么作用?

Lime 设计系统规定了此项目 UI 的设计规则。构建或修改任何界面、组件、表单或样式,将现有界面迁移到 Lime,或检查 UI 是否符合 Lime 规范时使用。

为什么在 TypingMind 中使用 Lime?

因为您只需安装一次,就能搭配任何模型使用。Lime 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Lime?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/arla6ka/design.how/tree/main/systems/lime。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Lime?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Lime 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Lime 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Lime AI 技能免费吗?

是的。arla6ka 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇