Index of every page on this site: llms.txt
All skills
haythamasalama avatar

/apple-macos-27-design

@54e769e
Run it yourself

Use when designing, building, restyling or reviewing a Mac app or Mac-style UI so it matches Apple's own components, or when you need an exact macOS value. Holds the values from Apple's macOS 27 UI Kit (Apple Design Resources, Sketch v27.0.3, October 2026) — every component's sizes, corner radii, insets, colours for each state in light and dark, text styles, materials and Liquid Glass — for buttons, toolbars and titlebars, sidebars, windows, menus, pop-up buttons, segmented controls, toggles, sliders, fields, popovers and alerts. Also for drawing Mac UI in images for a website or App Store page. Triggers include "macOS 27 kit", "Apple's style", "match Apple's sidebar", "exact macOS colour", "Liquid Glass values", «ستايل آبل», «مقاسات الماك», «ألوان آبل», «مكونات الماك».

Use this Skill: https://skilld.dev/gh/haythamasalama/skills/apple-macos-27-design

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈213 tokens for metadata: the name and description. ≈1.6k when used: this file. ≈111k more on demand in 39 files.

Description uses 10.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈804 characters, or 10.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

macOS 27 design kit

Read when: you build, restyle, review or draw Mac UI and need the exact number Apple's kit uses. Owns: the macOS 27 kit's measured values — colours, text styles, materials, control styles and every component page.

The values come from Apple's macOS 27 UI Kit (developer.apple.com/design/resources, Sketch v27.0.3, 28 October 2026), read by script. Apple's licence for the Apple Design Resources applies to the kits themselves; this skill holds only measured values and written descriptions, not Apple's files or artwork.

TL;DR

  • Take values only from these files. If a value is not here, say "not in the kit". Why: a guess from memory, the HIG or a framework default looks right and is off by a point or a shade, which is the error this skill exists to stop.
  • Every colour has a light and a dark value. Vibrant colours (… Vibrant (use plus darker) / (use plus lighter)) only look right drawn with that blend mode.
  • Content Area and Over-glass are two contexts. The kit draws a control one way on window content and another way on glass bars (toolbars, sidebars). Pick the one where the control sits.
  • The system control comes first. Use these specs to check a custom part against Apple's, to restyle a custom component so it matches, or to draw Mac UI in images (website art, App Store pages).
  • Start with the component's reference. Go to the raw page dump only for a value no reference lists, and name the component line it came from.

Where each topic lives

Need File
A colour (system colours, labels, fills, grays, separators, window backgrounds) references/colors.md
A text style (Large Title … Caption 2, emphasized, loose and tight leading) references/text-styles.md
Liquid Glass and materials references/materials.md
Window, panel, sidebar backgrounds and global helpers (focus ring, glyph styles) references/surface-styles.md
The fill a control uses per state (Idle, Hover, Clicked, Disabled) on window content references/control-styles-content-area.md
The same on glass bars references/control-styles-over-glass.md
The kit's setup notes and licence, in summary references/getting-started.md
One component references/<component>.md, listed below

Components

Windows and bars: windows, titlebars-and-toolbars (values in titlebars-and-toolbars-values), sidebars, menu-bar-and-dock, popovers, alerts, dialogs, notifications, tooltips

Buttons and menus: buttons (colours in buttons-colours), pop-up-and-pull-down-buttons, segmented-controls, menus, disclosure-controls

Toggles: checkboxes, radio-buttons, switches

Fields and forms: text-fields, search-fields, combo-boxes, forms, steppers, color-wells, image-wells

Values and progress: sliders, progress-indicators, scrollbars, group-boxes

Other: pointers, product-bezels

Each component file lists what the kit leaves out and where the kit contradicts itself, so you can name the source instead of guessing.

The raw page dump (specs/, built locally)

Component references cite specs/<page>.txt. That folder is not shipped: it is a full dump of Apple's kit file, so you build it on your own machine from your own download of the kit (steps 1–3 under "Updating to a newer kit", then pass the dump folder to gen_tokens.py). Keep it out of anything you publish.

Each line is one layer; indentation shows nesting.

Token Meaning
COMPONENT "A/B/C" W×H A kit component. The name path holds its variant axes: appearance, context, size (Mn, Sm, Rg, Lg, XL) and state
BOARD A documentation artboard
@x,y Position inside the parent, in points
use "…" → Path [overrides] An instance of another component, with its overrides
text "layer" "content" Font size lhN kernN colour align Font is a PostScript name, lh is line height, kern is tracking
fill … Stacked fills, bottom first
border W inside Border width and position
shadow / inner-shadow x, y, blur, spread, colour
blur background / blur glass Background blur or Sketch's glass effect, with radius and the other values
corners R smoothingS styleN Corner radius (max = capsule or circle) and smoothing
radius R Corner radius set per point
stack h|v gapN padT,R,B,L Auto layout
#RRGGBB@NN% Colour with alpha
{Name} The kit swatch the colour is bound to
style="…" A shared layer style
blend plus-darker / blend plus-lighter Blend mode

Hidden layers are left out. specs/change-log.txt lists Apple's changes per kit version.

Updating to a newer kit

Run from this skill's folder. Python 3.10 or newer.

  1. Download the macOS Sketch kit from Apple Design Resources (its link is a sketch.com share with a Download button). Accept Apple's licence there yourself.
  2. Unzip its JSON into a work folder outside this skill: unzip "Apple macOS 27 UI Kit.sketch" 'document.json' 'meta.json' 'pages/*' -d <work>/kit.
  3. Dump the pages: python3 scripts/extract.py <work>/kit <work>/dump.
  4. Rebuild the token pages: python3 scripts/gen_tokens.py <work>/kit . <work>/dump. This rewrites colors.md, text-styles.md, materials.md, surface-styles.md and both control-style pages, and copies the dump to specs/.
  5. Rewrite the component references whose pages changed; specs/change-log.txt lists what Apple changed.
  6. Check the new pages stay under 400 lines; split a long one into <name>.md and <name>-values.md.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d3 checks · Risk SAFE
  • Gen Agent Trust Hub20d

    The skill is a comprehensive reference for Apple's macOS 27 design system, providing exact UI values, colors, and layouts. It includes maintenance scripts for processing Sketch kit data into Markdown documentation. Analysis confirms the skill is safe, contains no malicious code, and performs no dangerous operations.

  • Socket20d

    No alerts

  • Snyk20d

    Risk: LOW · No issues

Signed by skilld at 54e769e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
Other metadata
metadata
{
  "summary": "Exact macOS 27 sizes, colours, type and Liquid Glass values from Apple's UI Kit.",
  "tags": "macos, apple, design, liquid-glass, ui-kit"
}

README badge

README badge for haythamasalama/skills/apple-macos-27-design