Λογότυπο Sodium

Sodium

Κοινότητα
arla6ka
sodium

Sodium design system rules for this project's UI. Use when building or changing any screen, component, form or style, when porting an existing screen onto Sodium, or when checking UI against Sodium.

Add to TypingMind

Επισκόπηση

Εκδότηςarla6ka
Αποθετήριοdesign.how
Όνομα δεξιότηταςsodium
Αστέρια
200
Διακλαδώσεις
15
Συνοδευτικά αρχεία
82
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 82

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό arla6ka. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Sodium στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/arla6ka/design.how/tree/main/systems/sodium
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή 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/sodium .claude/skills/sodium
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Sodium σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Sodium μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Sodium δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Sodium

Sodium is compact and ruled, for infrastructure and data tools: white and warm near-black grounds, 1px rules for structure, mono capitals for every interface word, Inter Display for headlines and prose, zero radius, and one sodium yellow for the thing to act on. Build with its recipes and components before writing markup.

Setup

Once, in the root layout: put the "sodium" class on <body> or the root element of the UI, with SodiumPortalProvider inside it. Sodium's styles and tokens apply only inside that class. Menus, dialogs, popovers and toasts render at the end of the body; SodiumPortalProvider keeps them inside the scope, and without it they lose every token. import {SodiumPortalProvider} from '@/lib/sodium/portal' <body className="sodium"><SodiumPortalProvider>{children}</SodiumPortalProvider></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 "sodium" class. Import each from the path in the index; support pieces are under Imports. Dark mode: put data-theme="dark" on the sodium 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 token or component is missing, stop and say so. Do not invent one.
  5. Ask the person only when the screen needs a fact you were not given, such as a region or a limit; 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/sodium/lint.json, then run npx eslint -c sodium.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 behaviour
  2. Tokens by role, never raw values
  3. Existing components and recipes, never rebuilt
  4. The signatures: mono capitals through the label roles, rules as structure, the one yellow action, square corners
  5. Compact spacing and type

Global rules

  1. sodium-components-first MUST Use a Sodium component or recipe before writing markup; fetch its page before you build. Because each one already carries the focus ring, the states and the yellow rules a hand-built copy forgets.
    • Correct: import {Button} from '@/components/sodium/ui/button'
  2. sodium-scope MUST Wrap Sodium UI in className="sodium" with SodiumPortalProvider 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 colour.
    • Correct: <div className="sodium"><SodiumPortalProvider>{children}</SodiumPortalProvider></div>
  3. sodium-tokens-only MUST Use only the roles Sodium defines, such as text-text-2, bg-panel and border-line; never a hex, an arbitrary px or a dark: variant. Because the dark theme swaps the roles, and a raw value stays behind.
    • Correct: <p className="text-text-2">
    • Wrong: <p className="text-[#55524a]">
  4. sodium-one-primary MUST Lead a frame, footer, dialog or any group of actions with at most one primary Button (the yellow slab, or the destructive); every other action beside it is variant="secondary" or "ghost". Because the slab is how a person finds the next action, and two of them side by side split the eye.
    • Correct: <Button variant="secondary">Keep</Button><Button>Run</Button>
    • Wrong: <Button>Keep</Button><Button>Run</Button>
  5. sodium-yellow-on-light NEVER Set text, an icon or a lone line in solid yellow; yellow-family text is text-accent-text. Because sodium yellow on white is 1.4:1, and light is the default theme.
    • Correct: <span className="text-accent-text">Running</span>
    • Wrong: <span className="text-accent-fill">Running</span>
  6. sodium-caps-through-roles MUST Set every interface word (button, tab, tag, table head, axis) in a label role, and every sentence in the sans. Because the role carries the mono face, the capitals and the tracking together, and a sentence in capitals reads slowly.
    • Correct: <span className="type-label-sm">Queued</span>
    • Wrong: <span className="uppercase">Queued</span>
  7. sodium-rules-not-boxes MUST Box a region once with frame and divide its parts with rules; never a box in a box and never a grid behind the page. Because rules carry Sodium's layout, and extra edges or a background grid bury them.
    • Correct: <main><div className="frame"><div className="rule-row">
    • Wrong: <main className="dots"><div className="frame"><div className="frame">
  8. sodium-square NEVER Round a corner anywhere. Because square corners meet the 1px rules cleanly, and one rounded part reads as another system.
    • Correct: <div className="frame">
    • Wrong: <div className="frame rounded-lg">
  9. sodium-focus-ring MUST Keep the 2px focus ring on every control and never outline: none; a field shows focus on its own edge. Because keyboard users lose their place without it.
  10. sodium-sentence-case MUST Write sentence case in the source and a verb with its object on actions; the label roles set the capitals. No emoji, no em dash. Because the source then reads as plain words to a screen reader, and every screen sounds like one person.
  • Correct: <Button>Run pipeline</Button>
  • Wrong: <Button>OK</Button>

Page shell

Every screen sits in this frame.

  • Root: <div className="sodium min-h-dvh bg-page text-text-1"> with SodiumPortalProvider inside it
  • A region: <section className="frame"> with a panel-head row and parts divided by rule-row or rule-col
  • Several numbers: a status strip: one ruled row of cells, a type-micro label over a type-code value
  • Page title: <h1 className="type-title">, one per page
  • A run's steps: ToolCallStack beside or under the frame, never inside it
  • A phone moment: a component at w-full max-w-sm, sized to its content, with no device frame; its one slab sits in a row of Buttons

Anti-slop

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

  • anti-slop-no-cell-grid NEVER Draw a cell grid or a dot field behind the page or behind content. Because the owner ruled it out: a grid behind every word fights the rules that carry the layout, and it is the first thing a generated "technical" screen reaches for.
    • Wrong: <main className="dots min-h-dvh">
  • anti-slop-no-terminal-costume NEVER Dress a screen as a terminal: green or amber on black, scanlines, a > prompt before a headline, ASCII boxes. Because Sodium takes the discipline of a terminal, not its look, and a costume makes a real tool read as a toy.
    • Wrong: <h1 className="text-ok-text">&gt; pipelines_</h1>
  • anti-slop-no-decoration NEVER Add a gradient, a blob, a glow or a backdrop blur; the one gradient is the light from below that the slab and edged recipes draw on a button. Because Sodium is flat fills and 1px rules, and decoration competes with the one yellow action.
    • Wrong: <div className="bg-linear-to-br from-page to-well backdrop-blur">
  • anti-slop-no-rounding NEVER Round a corner to soften a region, a control or an avatar. Because every corner is square, and one round corner is the part everyone sees.
    • Wrong: <div className="frame rounded-xl">
  • anti-slop-no-yellow-everywhere NEVER Spread yellow past the one primary, the selection and a chart series: no yellow headers, header squares, borders, icons or badges. Because yellow marks the thing to act on, and yellow everywhere marks nothing.
    • Wrong: <header className="bg-accent-fill">
  • anti-slop-no-stat-cards NEVER Lay out a row of equal cards each holding one number. Because equal boxes make every number equally loud; a status strip puts them on one ruled row where they can be compared.
    • Wrong: <div className="grid grid-cols-4 gap-4"><div className="frame">…</div>…</div>
  • anti-slop-no-box-in-box NEVER Box a part inside a frame; divide it with a rule. Because two edges a few px apart read as a double line.
    • Wrong: <div className="frame"><div className="frame">
  • anti-slop-no-side-rail NEVER Mark a row with a coloured bar on one edge. Because the bar reads as a status nobody defined; a chosen row takes the selection wash, and a row draws nothing at its start.
    • Wrong: <div className="border-s-4 border-accent-edge">
  • anti-slop-no-status-dots NEVER Mark a status with a round dot; a status is a square mark and a word. Because a round dot is the one curve on a square screen, and its meaning rides on hue alone.
    • Wrong: <span className="size-2 rounded-full bg-ok"/> Passed
  • anti-slop-no-label-above-title NEVER Put a small label, a category or a number above a headline. Because the headline already names the section; a name belongs in a panel header row, never stacked over a title.
    • Wrong: <p className="type-label">Overview</p><h2 className="type-heading">Runs</h2>
  • anti-slop-no-caps-sentences NEVER Set a sentence, a description or a headline in mono capitals. Because mono capitals are for words a person scans, and a sentence in them reads slowly and shouts.
    • Wrong: <p className="type-label">The backfill wrote 1,204 partitions.</p>
  • anti-slop-no-emoji NEVER Use emoji in copy, titles or buttons, or as icons. Because emoji render differently on every device and turn a tool into a chat thread.
    • Wrong: <Button>Deploy 🚀</Button>
  • anti-slop-no-hype NEVER Write seamless, effortless, supercharge, unleash or blazing; say what happens. Because people trust a tool that states the fact.
    • Wrong: Blazing-fast pipelines.
  • anti-slop-no-brackets-everywhere SHOULD Keep brackets for a machine action, a tool call or a step an agent took; never around a person's button. Because the bracket says a machine did this, and on a person's action it blurs who acted.
  • anti-slop-no-fake-data SHOULD Fill examples with believable data; never Lorem ipsum, John Doe or 1,234. Because placeholder data hides the truncation and alignment problems real data shows.
  • anti-slop-no-blinking-caret NEVER Leave a caret blinking at rest, or type text a person is waiting to read. Because the caret belongs to typing; at rest it reads as a field waiting for input, and slow typing hides an answer behind an effect.
    • Wrong: <span className="caret animate-[blink_1s_steps(1)_infinite]"/>
  • anti-slop-no-scroll-reveal NEVER Fade or slide content in as it scrolls into view. Because content that hides until scrolled is missed.
    • Wrong: <motion.section whileInView={{opacity: 1}}>
  • anti-slop-dialog-controlled MUST Open a Dialog with open and onOpenChange; never mount it only while open. Because a dialog that unmounts skips its exit and loses the trigger it returns focus to.

Reject list

  • No rounded corners, no shadow, no gradient, no blur, no grid behind the page.
  • No yellow text or icons on light, no yellow warning, no second slab.
  • No bold, no capitals outside the label roles, no sentence in capitals.

Imports

  • import {useOverlayOpen, overlayModel, overlayOpenChanged, overlayMayClose, overlayRunStarted, overlayRunSettled, isThenable, closesAfter, useDefaultAction, useScrollBody, overlaySurface, overlayModal, overlayMotion, overlayHeaderClass, overlayTitleClass, overlayHeadMetaClass, overlayBodyClass, overlayDescriptionClass, overlayFooterClass, overlayMetaClass, overlayErrorClass, scrimClass, menuPopupClass, menuVarsClass, menuItemClass, menuCheckItemClass, menuLabelClass, menuSeparatorClass, menuShortcutClass, optionItemClass, optionCheckClass} from '@/lib/sodium/overlay': What every overlay shares: the edged panel surface, the way it arrives, and the list rows of selects, comboboxes and menus.
  • import {useScrollTabStop, findAll} from '@/lib/sodium/scroll': Support file: the tab stop a scrolling data region takes while it overflows, and the case-free search matcher.
  • import {motionDefaults, parseDuration, easeOut, useMotionToken, useTimeline} from '@/hooks/sodium/use-timeline': The frame clock under Sodium's typing, scrambles and connectors: deterministic given a clock, final at once under reduced motion.
  • import {typedAt, firstChars, useTyping} from '@/hooks/sodium/use-typing': Types text in at about 55 characters a second behind a caret shown only while typing.
  • import {scrambleGlyphs, scrambleTick, hash, scrambleAt, useScramble} from '@/hooks/sodium/use-scramble': Resolves a mono label through glyphs in about 0.4 seconds.
  • import {drawAt, useDraw} from '@/hooks/sodium/use-draw': Draws connectors out one hop at a time, about 0.3 seconds a hop.
  • import {controlHeight, reducedMotion, cn, mergeClass, mergeRefs} from '@/lib/sodium/utils': cn, which merges class names and resolves conflicts between Sodium's type roles and button surfaces; mergeClass, which keeps Sodium's classes when a caller passes a className function; mergeRefs; and controlHeight, the one height formula for one-line controls.
  • import {Icon} from '@/components/sodium/icon': The one import point for icons: Lucide, squared off with square ends, mitred joins and a 1.25px line.
  • import {SodiumPortalProvider, useSodiumPortal, useSodiumModal, cycleTab, coarsePointer} from '@/lib/sodium/portal': Puts overlays inside the .sodium scope so they keep its tokens, and makes the page inert behind a modal.
  • import {SodiumDirection, useDomDirection} from '@/lib/sodium/direction': Hands the reading direction to Base UI and to popups opened from a right-to-left subtree.

Icons

Import a glyph beside Icon from the path under Imports and pass it in: <Icon icon={Activity} size={16}/>. These are all the names; another needs adding to that file first. Activity, Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, Branch, Calendar, Checkmark, ChevronDown, ChevronLeft, ChevronRight, ChevronSort, ChevronUp, Chip, Close, Code, Copy, Cube, DataBase, DataTable, Document, Download, Edit, ErrorOutline, Filter, Flow, Folder, Information, Launch, Lightning, Locked, Meter, Moon, OverflowMenuHorizontal, Pause, Play, Renew, Search, ServerDns, Settings, StopOutline, Subtract, Sun, Terminal, Time, TrashCan, Undo, Upload, View, ViewOff, WarningAlt, ArrowsHorizontal, CollapseAll, ExpandAll, Misuse, TextWrap

Tokens

The closed list. Use a token through its class, never a raw value: colors are utilities named after the role (bg-code-surface, text-text-1, border-line-faint); sizes read the scale (type-body, rounded-4xl, h-(--control-lg), duration-(--dur-press)). 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), --panel (bg-panel), --well (bg-well), --code-surface (bg-code-surface), --hover (bg-hover), --pressed (bg-pressed), --selected (bg-selected), --selected-strong (bg-selected-strong), --scrim (bg-scrim)
  • Text: --text-1 (text-text-1), --text-2 (text-text-2), --text-3 (text-text-3), --text-disabled (text-text-disabled), --text-inverse (text-text-inverse)
  • Lines: --line-faint (border-line-faint), --line (border-line), --line-control (border-line-control), --mark (border-mark), --dot, --line-width, --focus-width (focus-ring), --focus-offset, --dot-pitch, --rail-pitch, --rail-dot, --pending-cell
  • Accent: --accent (bg-/text-/border-accent-fill), --accent-text (bg-/text-/border-accent-text), --accent-edge (bg-/text-/border-accent-edge)
  • Primary: --primary-bg (bg-/text-/border-primary), --primary-text (bg-/text-/border-primary-foreground), --primary-edge, --primary-hover, --primary-edge-hover, --primary-pressed, --primary-light, --primary-light-hover, --primary-ring
  • Secondary: --secondary-bg (bg-/text-/border-secondary-bg), --secondary-hover, --secondary-pressed, --secondary-edge, --secondary-edge-hover, --secondary-light, --secondary-light-hover, --secondary-ring
  • Checked: --check-bg, --check-edge, --check-mark, --check-off (bg-/text-/border-check-off), --check-off-hover (bg-/text-/border-check-off-hover), --check-range (bg-/text-/border-check-range)
  • Field: --field-bg, --field-hover, --field-edge, --field-edge-hover, --field-ring-hover, --field-focus-bg, --field-focus-edge, --field-ring-focus, --field-ring-fail, --field-inset-sm, --field-inset, --field-inset-lg, --row-highlight, --row-highlight-edge
  • Status: --ok (bg-/text-/border-ok), --ok-text (bg-/text-/border-ok-text), --ok-tint (bg-/text-/border-ok-tint), --warn (bg-/text-/border-warn), --warn-text (bg-/text-/border-warn-text), --warn-tint (bg-/text-/border-warn-tint), --fail (bg-/text-/border-fail), --fail-text (bg-/text-/border-fail-text), --fail-tint (bg-/text-/border-fail-tint)
  • Data: --data-1 (bg-/text-/border-data-1), --data-2 (bg-/text-/border-data-2), --data-3 (bg-/text-/border-data-3), --data-4 (bg-/text-/border-data-4), --data-5 (bg-/text-/border-data-5), --data-6 (bg-/text-/border-data-6)
  • Focus: --focus (bg-/text-/border-focus), --caret
  • Elevation: --shadow-none
  • Type: --font-sans (font-sans), --font-mono (font-mono), --mono-scale, --weight-normal (font-normal), --type-display (type-display), --type-title (type-title), --type-heading (type-heading), --type-heading-sm (type-heading-sm), --type-figure (type-figure), --type-body (type-body), --type-body-sm (type-body-sm), --type-caption (type-caption), --type-label-lg (type-label-lg), --type-label (type-label), --type-label-sm (type-label-sm), --type-micro (type-micro), --type-code (type-code), --type-code-sm (type-code-sm), --tracking-display (tracking-display), --tracking-title (tracking-title), --tracking-heading (tracking-heading), --tracking-body (tracking-body), --tracking-label, --tracking-label-lg, --tracking-label-sm
  • Space: --space-0-5, --space-1, --space-1-5, --space-2, --space-3, --space-4, --space-5, --space-6, --space-8, --space-10, --inset
  • Size: --control-sm, --control, --control-lg, --row, --row-sm, --head, --icon, --icon-sm, --marker, --cap, --rail
  • Radius: --radius
  • Motion: --dur-press, --dur-state, --dur-overlay, --dur-wipe, --dur-draw, --dur-type, --dur-scramble, --dur-pending, --overlay-shift, --dur-light, --dur-glow, --ease-out (ease-out), --ease-soft (ease-soft), --ease-in (ease-in), --ease-linear (ease-linear)
  • Layers: --z-raised, --z-overlay
  • Layout: --overlay-sm (max-w-overlay-sm), --overlay (max-w-overlay), --overlay-lg (max-w-overlay-lg), --popover (max-w-popover), --toast, --menu-min, --popup-max, --tooltip-max, --label-col, --meter, --measure (max-w-measure), --measure-hint (max-w-measure-hint)
  • Scrollbar: --scrollbar-thumb, --scrollbar-size, --scrollbar-gap

Components

Actions

  • Button: Starts an action. import {Button, buttonVariants} from '@/components/sodium/ui/button'
  • Button group: Joins related buttons into one control. import {ButtonGroup, ButtonGroupMenu, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants} from '@/components/sodium/ui/button-group'
  • Copy button: Copies a value. import {CopyButton} from '@/components/sodium/ui/copy-button'

Inputs

  • Field: Gives an input its label and error. import {Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormActions, FormStatus, Label, LabelHint, labelClasses, useFieldDisabled} from '@/components/sodium/ui/field'
  • Input: Takes one line of text. import {Input, InputAction, InputControl, InputLeading, InputPending, InputRoot, InputTrailing} from '@/components/sodium/ui/input'
  • Textarea: Takes several lines of text. import {Textarea} from '@/components/sodium/ui/textarea'
  • Select: Picks one option from a list. import {Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, NativeSelect, fieldTriggerClass, fieldTriggerSize} from '@/components/sodium/ui/select'
  • Combobox: Finds one or more values by typing. import {Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxCreate, ComboboxEmpty, ComboboxField, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, normalizeEmail, splitEmails, validateEmail, useComboboxAnchor} from '@/components/sodium/ui/combobox'

Selection

  • Checkbox: Turns one option on or off. import {Checkbox, CheckboxGroup} from '@/components/sodium/ui/checkbox'
  • Radio group: Picks one of a few choices. import {RadioGroup, RadioGroupItem, RadioGroupOption} from '@/components/sodium/ui/radio-group'
  • Switch: Turns a setting on or off at once. import {Switch} from '@/components/sodium/ui/switch'
  • Slider: Picks a number or a range. import {Slider} from '@/components/sodium/ui/slider'
  • Segmented control: Switches between a few views of one thing. import {SegmentedControl, SegmentedControlItem, segmentedVariants} from '@/components/sodium/ui/segmented-control'

Display

  • Tag: Labels what something is or how it stands. import {Tag, tagVariants} from '@/components/sodium/ui/tag'
  • Status strip: Shows the few numbers to check first, in one ruled row. import {StatusStrip, StatusStripCell, StatusStripLabel, StatusStripValue, StatusStripUnit, stripVariants} from '@/components/sodium/ui/status-strip'
  • Avatar: Shows who or what acted. import {Avatar, AvatarImage, AvatarFallback, AvatarGroup, avatarVariants, initialsOf} from '@/components/sodium/ui/avatar'
  • Kbd: Shows a key or a shortcut. import {Kbd, KbdGroup, shortcut} from '@/components/sodium/ui/kbd'
  • Item: Shows one thing as a row in a list. import {Item, ItemGroup, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemMeta, ItemLink, ItemActions, itemVariants, itemGroupVariants} from '@/components/sodium/ui/item'
  • Data list: Lists label and value pairs about one thing. import {DataList, DataListItem, DataListLabel, DataListValue, DataListEmpty, dataListVariants} from '@/components/sodium/ui/data-list'

Feedback

  • Status: Says where a job or a run stands. import {Status, StatusMark, statusVariants, statuses, statusLabels, statusRank} from '@/components/sodium/ui/status' import {RunningMark} from '@/components/sodium/ui/running-mark'
  • Meter: Shows how full something is. import {Meter, MeterLabel, MeterValue, MeterStack, meterStatus} from '@/components/sodium/ui/meter'
  • Progress: Shows how far a task got. import {Progress, ProgressLabel, ProgressValue} from '@/components/sodium/ui/progress'
  • Alert: Reports a problem or a change in the current view. import {Alert, AlertTitle, AlertDescription, AlertAction, AlertClose, alertVariants} from '@/components/sodium/ui/alert'
  • Toast: Reports something that happened out of view. import {Toaster, toast, toastManager, readingTimeout} from '@/components/sodium/ui/toast'
  • Empty state: Explains why a region is empty. import {Empty, EmptyIcon, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyCode, EmptyRetry, emptyVariants} from '@/components/sodium/ui/empty-state'
  • Skeleton: Holds the shape of content while it loads. import {Skeleton, SkeletonText, SkeletonRows, SkeletonSwap} from '@/components/sodium/ui/skeleton'

Overlays

  • Dialog: Asks for a decision on top of the page. import {Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogAction, DialogConfirmField, dialogVariants, useDialog} from '@/components/sodium/ui/dialog'
  • Sheet: Opens the details of one thing at the side. import {Sheet, SheetTrigger, SheetClose, SheetPortal, SheetOverlay, SheetContent, SheetHeader, SheetBody, SheetFooter, SheetTitle, SheetDescription, SheetAction, SheetSection, SheetField, useSheet} from '@/components/sodium/ui/sheet'
  • Popover: Shows a few lines next to a control. import {Popover, PopoverTrigger, PopoverClose, PopoverContent, PopoverHeader, PopoverTitle, PopoverDescription, PopoverInfo} from '@/components/sodium/ui/popover'
  • Tooltip: Names a control on hover or focus. import {Tooltip, TooltipTrigger, TooltipContent, TooltipChip, TooltipProvider, TooltipShortcut, tooltipPopupClass, tooltipMotionClass} from '@/components/sodium/ui/tooltip'
  • Dropdown menu: Lists the actions on one thing. import {DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuLinkItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent} from '@/components/sodium/ui/dropdown-menu'
  • Command: Finds and runs a command by typing. import {Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandLoading, CommandGroup, CommandItem, CommandLabel, CommandShortcut, CommandSeparator, CommandFooter, CommandHint, useCommand} from '@/components/sodium/ui/command'

Navigation

  • Tabs: Switches between panels of one view. import {Tabs, TabsList, TabsTrigger, TabsContent, TabsCount, tabsListVariants, tabBase, useActiveInView} from '@/components/sodium/ui/tabs'
  • Numbered tabs: Steps through the few numbered sections of one page. import {NumberedTabs, NumberedTabsList, NumberedTabsTrigger, NumberedTabsContent, NumberedTabsPanels} from '@/components/sodium/ui/numbered-tabs'
  • Breadcrumb: Shows where the page sits, as a path. import {Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, BreadcrumbValue, BreadcrumbTrail} from '@/components/sodium/ui/breadcrumb'
  • Pagination: Moves through pages of results. import {Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, PaginationInfo, PaginationNav, paginationRange} from '@/components/sodium/ui/pagination'

Layout

  • Collapsible: Shows and hides a region. import {Collapsible, CollapsibleGroup, CollapsibleTrigger, CollapsibleCaret, CollapsibleContent} from '@/components/sodium/ui/collapsible'
  • Frame: Boxes a region once and divides it by rules. import {Frame, FrameHeader, FrameTitle, FrameStatus, FrameValue, FrameActions, FrameBody, FrameDescription, FrameFooter, FrameMeta, frameVariants} from '@/components/sodium/ui/frame'

Data

  • Table: Lists records that share the same fields. import {Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, TableEmpty, TableLoading, TableTitle, TableToolbar, TableSortButton, TableRowActions, TableRowAction, tableClassName, bodyClassName, rowClassName, headClassName, cellClassName} from '@/components/sodium/ui/table'
  • Filter bar: Narrows a table, a log or a list in one row. import {FilterBar, FilterBarSearch, FilterToggle, FilterBarSelect, FilterBarClear, FilterBarCount, useFilteredRows} from '@/components/sodium/ui/filter-bar'

Code

  • Code block: Shows code or commands to copy. import {CodeBlock, TokenLine, WrapToggle, tokenize, parseLines, commandLines, maskSecret, gutterStyle, maxLinesStyle, matchClass, currentMatchClass, languageLabels} from '@/components/sodium/ui/code-block'
  • Code window: Shows a file as a numbered window, with the line that failed. import {CodeWindow} from '@/components/sodium/ui/code-window'
  • JSON view: Shows structured data as a foldable tree. import {JsonView, pathOf} from '@/components/sodium/ui/json-view'
  • Log viewer: Shows a job's output lines as they stream. import {LogViewer} from '@/components/sodium/ui/log-viewer'

Charts

  • Chart: Shows numbers over time as a line or an area. import {Chart, ChartFrame, ChartPlot, LineChart, ChartContainer, WithChart, useChart, useOptionalChart, useElementWidth, useElementDirection, useRovingPoints, useDrawn, seriesTone, ChartSwatch, ChartTooltip, ChartTooltipContent, ChartTooltipRow, ChartDataTable, ChartLegend, niceScale, tickCount, formatCompact, formatExact, unitFormat, numberAt, linearPath, stepPath, wipeStyle, drawStyle} from '@/components/sodium/ui/chart' import {toneClass, toneFill, toneArea} from '@/components/sodium/ui/chart-parts' import {EMPTY_VALUE, CHART_EMPTY} from '@/components/sodium/ui/chart-scale'
  • Stem chart: Prints one value per period on a square-headed stem. import {StemChart} from '@/components/sodium/ui/stem-chart'
  • Swimlanes: Shows the steps of a flow across the systems they run in. import {Swimlanes, stepVariants} from '@/components/sodium/ui/swimlanes'
  • Bar blocks: Splits one total into its parts as blocks as wide as their share. import {BarBlocks, blockVariants} from '@/components/sodium/ui/bar-blocks'

Runs and agents

  • Tool-call row: Draws a run's steps as ruled boxes, joined by connectors. import {ToolCallStack, ToolCallRow, formatElapsed, stepWords} from '@/components/sodium/ai/tool-call-row'
  • Tool call: Shows one tool an agent called in a run. import {ToolCall, ToolCallList, toolCallsReducer, useToolCalls, registerTool, resolveTool, isTerminal, cleanOutput} from '@/components/sodium/ai/tool-call'
  • Activity: Says what a run is doing now. import {Activity, pastTense} from '@/components/sodium/ai/activity'
  • Prompt input: Takes the next instruction for an agent. import {PromptInput} from '@/components/sodium/ai/prompt-input'
  • Message: Shows one turn of a run's thread. import {Message, MessageGroup, MessageDivider} from '@/components/sodium/ai/message'
  • Response: Renders an agent's answer as it streams. import {Response, usePacedText, splitChunks, parseMarkdown, closeDangling, nextCut, paceStep, safeHref} from '@/components/sodium/ai/response'

Blocks

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

  • Job runs: Every pipeline's runs as one table: a Status word per row, IDs and numbers in mono and Run now. npx shadcn@latest add https://design.how/r/sodium/job-runs.json import {JobRuns} from '@/components/sodium/blocks/job-runs'
  • Failed load: A load that failed: the alert with Retry load, the model with its failing line banded, and the step's log. npx shadcn@latest add https://design.how/r/sodium/failed-load.json import {FailedLoad} from '@/components/sodium/blocks/failed-load'
  • On call: A failed job at phone width: its header, the failure in a sentence, its facts in a 2x2 grid, Acknowledge and Retry step. npx shadcn@latest add https://design.how/r/sodium/on-call.json import {OnCall} from '@/components/sodium/blocks/on-call'
  • Run progress: A backfill followed at phone width: the live step, partitions done, the run's numbers as a strip and its steps. npx shadcn@latest add https://design.how/r/sodium/run-progress.json import {RunProgress} from '@/components/sodium/blocks/run-progress'
  • Warehouse capacity: How full a warehouse is: credits, storage and concurrency as meters, storage by schema, queries by hour and Resize warehouse. npx shadcn@latest add https://design.how/r/sodium/warehouse-capacity.json import {WarehouseCapacity} from '@/components/sodium/blocks/warehouse-capacity'
  • Sync flow: A nightly sync across the systems it touches as swimlanes, the rows it loaded by source, and Run sync. npx shadcn@latest add https://design.how/r/sodium/sync-flow.json import {SyncFlow} from '@/components/sodium/blocks/sync-flow'
  • Pipeline history: A pipeline's page under its path: runs per day, its latest partitions and its schedule as numbered tabs. npx shadcn@latest add https://design.how/r/sodium/pipeline-history.json import {PipelineHistory} from '@/components/sodium/blocks/pipeline-history'

Foundations

  • Color: White and warm near-black, rules for structure, and one sodium yellow that changes how it shows by theme.
  • Typography: Mono capitals for the interface, Inter Display for headlines and prose, one weight.
  • Space: A 4px grid, 32px controls and 40px rows.
  • Radius: Zero, everywhere.
  • Borders and lines: Rules divide content; a frame is a region's one outer edge.
  • Elevation: No shadows: an overlay is the panel with a rule edge, set apart by its fill and, for a dialog, the scrim.
  • Motion: Typing, scrambles, wipes and connectors that draw; ease-out, no springs.
  • Iconography: Lucide at 16px, squared off to match square corners.
  • 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/sodium/<name>.json, the name being the last part of its page link.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Επιπλέον αρχεία: 22.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Sodium;

Sodium design system rules for this project's UI. Use when building or changing any screen, component, form or style, when porting an existing screen onto Sodium, or when checking UI against Sodium.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Sodium στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Sodium είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Sodium στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/arla6ka/design.how/tree/main/systems/sodium. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Sodium;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Sodium;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Sodium με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Sodium;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό arla6ka με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο garrytan

Land And Deploy

garrytan
ΚοινότηταΔημοφιλής

Ροή εργασίας ενσωμάτωσης και ανάπτυξης. (gstack)

19.9K
133.5K
Αρχεία: 8
Προβολή
Λογότυπο openclaw

Clawsweeper

openclaw
ΟργανισμόςΔημοφιλής

Χρησιμοποιήστε το για όλες τις εργασίες ClawSweeper: αναφορές ελέγχου issue/PR του OpenClaw, εργασίες επιδιόρθωσης, PR διορθώσεων στο cloud, εντολές αναφοράς συντηρητών με @clawsweeper, αξιόπιστες αυτόματες διορθώσεις/συγχωνεύσεις που έχουν ελεγχθεί από το ClawSweeper, παρακολούθηση του GitHub Actions…

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Openclaw Ci Limits

openclaw
ΟργανισμόςΔημοφιλής

Διαχειριστείτε τις GitHub Actions του OpenClaw και τη χωρητικότητα CI του Blacksmith, τους προϋπολογισμούς εγγραφής runner, τα όρια fanout, την εκτέλεση μίας εργασίας κάθε φορά για push στο main, το μέγεθος των shards, την ανάθεση εργασιών σε hosted runners, την κατάσταση της ουράς και ασφαλείς…

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Openclaw Testing

openclaw
ΟργανισμόςΔημοφιλής

Επιλέξτε αναλογικές δοκιμές και ελέγχους για το OpenClaw, διαγνώστε αποτυχίες και αναθέστε στον αρμόδιο τις εργασίες που εξαρτώνται από το περιβάλλον ή απαιτούν αποδεικτικά στοιχεία για την έκδοση.

82.2K
391K
Αρχεία: 2
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇