defaults
БесплатноБез исполняемых скриптовНе проверенApplies house defaults for scroll edges, surfaces, theme, focus, names, page structure, links, mobile, type, tables, data, loading and sound.
от raphaelsalaja★ 74 звезды на GitHubОб этом скилле
Defaults
This skill holds the interface defaults that apply on every screen. It covers scroll, surfaces, theme, focus, names, page structure, links, mobile, type, tables, data, loading and sound.
Tokens first, then these values
Use the project's token wherever one exists for a value below. Where none exists, the values here are exact. A hard scroll cut or a clipped shadow is a finding in any style.
The house shapes are taste: the radius token over a pill, rings instead of borders, image outlines and no nested cards. They yield to a system the project has already established.
Fields belong to forms, and dialogs, menus, tooltips, sheets and toasts to overlays. Words belong to copy, and building with the project's primitive to reuse. Whether an animation should exist and how it moves belong to motion. Whether an unrequested sound or decorative effect is added belongs to restraint. Colour and contrast belong to color, radii and optical nudges to alignment and empty, failed and stale screens to states.
Scroll edges fade and shadows fit
A scroll container fades its ends with a mask-image gradient (defaults-fade-not-cut). See recipes.md. It is padded so its children's shadows fit inside the clip (defaults-no-clipped-shadow). See recipes.md.
Code blocks keep white-space: pre and scroll sideways, and a wide table scrolls in its own wrapper while its cells still wrap (defaults-scroll-not-wrap). See recipes.md. A keyboard way into a scroller belongs to keyboard.
A scroller that can grow, and the root of a site whose pages vary in length, set scrollbar-gutter: stable (defaults-scrollbar-gutter).
Scroll stays where it starts
Drawers, menus, side panels and chat logs set overscroll-behavior: contain (defaults-contain-overscroll). An app sets overscroll-behavior: none on html, body and never calls preventDefault() in a touchmove listener (defaults-no-page-overscroll).
Sticky chrome keeps its edge and clears focus
A sticky header or footer takes a 1px border against the content under it (defaults-sticky-border). scroll-padding-block-start and scroll-padding-block-end match the sticky bars, and no toast, chat widget or cookie banner covers focus (defaults-clear-sticky-chrome).
Surfaces stack, lift and edge the same way
Every z-index comes from a named scale of tokens: base, dropdown, sticky, overlay and toast (defaults-z-index-scale). The top layer needs none, as overlays-top-layer sets out.
A floating surface puts a translucent 1px ring first in its shadow stack, over a 1px solid transparent border that forced colours still draw (defaults-ring-not-border). Without an elevation token, layer three downward shadows, blur growing and opacity falling (defaults-layered-shadows). See recipes.md.
A lift on hover fades in a pseudo-element holding the raised shadow, never a box-shadow transition (defaults-fade-the-shadow). See recipes.md.
Photos and screenshots take a 1px outline inset by 1px, black at 10% in light mode and white at 10% in dark (defaults-image-outline). Logos and transparent artwork skip it. See recipes.md.
An image in a fixed box takes object-fit: cover (defaults-cover-any-ratio). Sizing media before it loads belongs to vitals.
A card never sits inside another card, so the heading goes outside (defaults-no-nested-cards). Buttons and chips take the radius token, never 9999px (defaults-rounded-not-pill).
Under prefers-reduced-transparency: reduce, translucent and blurred surfaces turn opaque (defaults-reduced-transparency). Surfaces under increased contrast belong to color.
The theme follows the system
A first visit follows prefers-color-scheme, and the switch offers System, Light and Dark with System as the default (defaults-theme-follows-system).
The root sets color-scheme: light dark and the head carries the matching meta tag, so first paint, scrollbars and native controls follow. A blocking script in the head applies a saved choice before first paint (defaults-color-scheme).
Set one theme-color tag per colour scheme, matching the top of the page. Safari 26 ignores the tag and tints its bars from a fixed or sticky header touching the edge, so that header is opaque.
Colour tokens use light-dark(). The switch sets data-theme on the root, which sets color-scheme, and System is the attribute's absence. A prefers-color-scheme: dark block that ignores a picked Light is defaults-theme-one-source.
The switch turns transitions off for one frame. A picked theme adds an unscoped theme-color tag ahead of the scoped ones, and System removes it (defaults-quiet-theme-switch). See recipes.md.
Focus shows for the keyboard and survives forced colours
Focus uses `:focus-
Установить defaults в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл defaults?
Applies house defaults for scroll edges, surfaces, theme, focus, names, page structure, links, mobile, type, tables, data, loading and sound.
Как установить скилл defaults?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл defaults запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic