Logo Lime

Lime

Cộng đồng
arla6ka
lime

Áp dụng các quy tắc hệ thống thiết kế Lime cho giao diện của dự án này. Dùng khi xây dựng hoặc thay đổi bất kỳ màn hình, thành phần, biểu mẫu hay kiểu dáng nào; khi chuyển một màn hình hiện có sang Lime; hoặc khi kiểm tra giao diện theo Lime.

Add to TypingMind

Tổng quan

Nhà phát hànharla6ka
Kho mãdesign.how
Tên kỹ nănglime
Sao
200
Bản fork
15
Tệp đi kèm
69
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 69 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được arla6ka công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Lime trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/arla6ka/design.how/tree/main/systems/lime
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Lime trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Lime ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Lime với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

và 9 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Lime làm được gì?

Áp dụng các quy tắc hệ thống thiết kế Lime cho giao diện của dự án này. Dùng khi xây dựng hoặc thay đổi bất kỳ màn hình, thành phần, biểu mẫu hay kiểu dáng nào; khi chuyển một màn hình hiện có sang Lime; hoặc khi kiểm tra giao diện theo Lime.

Vì sao nên dùng Lime trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Lime là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Lime trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/arla6ka/design.how/tree/main/systems/lime. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Lime?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Lime với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Lime với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Lime có miễn phí không?

Có. Kỹ năng này được arla6ka phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇