# @svelte-lean/styles

## 0.18.0

### Minor Changes

- c082bbc: Scroll edge fades: `data-slean-fade` (or `data-slean-fade="inline"`) on a scroll area, or on any
  element that scrolls, fades the content out at the edges it can still scroll towards. Nothing
  fades at the start until the content has moved, at the end once it is reached, or at all when
  nothing scrolls. The content itself is masked, so the fade shows over any background, a selected
  row's included, where the inset shadows are covered. It is driven by the element's own scroll
  timeline, with no script and no listener, and its depth is the new `--slean-fade-size` token.
  Chromium 115 and Safari 26; elsewhere nothing fades. On a scroll area the fades replace the
  shadows.

## 0.17.7

### Patch Changes

- c9f25df: A popup wider than what opens it stays on screen at the viewport's edges and keeps an edge of its invoker. A select's popup takes its options' width (`inline-size: max-content`, at most the screen's), so by the right edge it overflows its position area and the inline flip puts it at the field's end edge instead of cutting the options at the screen's edge. The anchor fallback (WebKit, engines without `position-area`) takes the invoker's other edge when the aligned one runs off the screen, before it pushes the popup back in.

## 0.17.6

No changes in this release.

## 0.17.5

No changes in this release.

## 0.17.4

### Patch Changes

- b7313ae: Anchored popups keep their intrinsic content height in Safari instead of stretching to the
  available position area. The shared CSS and JavaScript fallback cover popovers, menus, hover
  cards, selects, autocompletes and date pickers while preserving viewport caps and scrolling.
  
  In the JavaScript fallback (Safari and every iOS browser) a closing popup keeps its placement
  until its closing transition ends, so the fading surface no longer flashes in its old position
  area; a popup reopened meanwhile keeps its new placement. The positioner's size budget rises to
  1800 B.

## 0.17.3

No changes in this release.

## 0.17.2

No changes in this release.

## 0.17.1

No changes in this release.

## 0.17.0

No changes in this release.

## 0.16.5

No changes in this release.

## 0.16.4

No changes in this release.

## 0.16.3

No changes in this release.

## 0.16.2

No changes in this release.

## 0.16.1

### Patch Changes

- 3cc2efc: Anchored popups no longer open in the middle of the screen where CSS anchor positioning is missing (Safari before 26). The menu, menubar, hover card, select, autocomplete and date picker behaviors now place the open popup next to its invoker (or field) with inline fixed coordinates: the same side and alignment as `data-slean-side` / `data-slean-align`, a flip to the opposite side when there is no room, a clamp into the viewport, the height capped to the available room and, for select and autocomplete, at least the field's width. The placement follows scrolling and resizing while the popup is open and is removed when it closes. The positioner is loaded with `import()` only in such an engine; where anchor positioning is supported the behaviors make one cached `CSS.supports()` call and nothing else runs.
  
  A plain Tier 0 popover stays runtime-free; to place it in such engines, import the new opt-in compatibility module `@svelte-lean/primitives/popover/anchor/register`. The stylesheets' centered fallback remains only for pages without script.
  
  Size budgets (brotli, eager code): menu 2400 → 2800 B, select 4800 → 5300 B, date-picker 9100 → 10200 B, hover-card 1700 → 2000 B, menubar 1700 → 2000 B; the lazy positioner chunk (about 1.4 kB) is recorded separately with its own budget.

## 0.16.0

### Minor Changes

- 8a774c6: The file drop covers what an upload field needs before the transport, on the native file input:
  
  - **File list.** A `<ul data-slean-part="list">` in the root gets one item per file: a thumbnail
    (`data-slean-preview`, an object URL released as soon as the image is decoded) or a type mark,
    the name, the size in the page's language, and a remove button named by `data-slean-remove`
    (`Remove {label}`). With a list, a new choice, drop or paste is added to the files already
    listed. A remove button rewrites `input.files` (`DataTransfer`) and dispatches `input` and
    `change`, so `bind:files`, `FormData` and a submit see the same files; focus moves to the next
    remove button, else the input. A form reset clears the list.
  - **Checks.** Every file the user brings is checked against `accept` (drops and pastes included,
    which the picker's filter does not cover), `data-slean-maxsize` (bytes) and
    `data-slean-maxcount`. A refused file leaves the input before `change` listeners read it, is
    listed and announced with a message (`data-slean-typeerror`, `-sizeerror`, `-counterror`;
    English defaults) and reported with the cancelable `slean:reject` event
    (`{ behavior, rejected: { file, reason: 'type' | 'size' | 'count' }[] }`). States
    `data-slean-rejected` and `data-slean-full`.
  - **Area part.** `data-slean-part="area"` around the input is the drop area when the root holds
    more than the area; without it the root is the area, as before. An empty `icon` part in it draws
    the upload icon.
  - **Paste.** An image pasted while the input has focus is added like a dropped file (Chromium and
    Firefox dispatch `paste` there). `@svelte-lean/core` routes `paste` as a shared event type.
  - **Helpers.** `setFileDropFiles(root, files)`, `fileDropItem(root, file)` (the item to mark
    `aria-busy` and give a `<progress>` during an upload), `fileSize(bytes, lang)`.
  - **Styles.** `file-drop.css` draws the rows, refused rows in the error color, and the
    `data-variant="picture-card"` and `"picture-circle"` tiles (Ant Design's list types), the area
    being the last tile, hidden at the file limit. New tokens `--slean-file-drop-tile-size`,
    `--slean-icon-file`, `--slean-icon-upload`.
  
  The file-drop register module grows from 1326 B to 2983 B brotli (budget 3300 B). A Content
  Security Policy needs `img-src blob:` for the thumbnails.
- 2e47a4c: `nav.css` draws the nav: rows for links, group summaries and rail buttons at the medium control
  height, the current link in the soft tint of the current color, the group holding it marked
  through `:has()` (filled while closed), a chevron turning with the group, nested lists under a
  guide line with the height animated where `::details-content` exists, a badge at the row's end
  and the `actions` part over it. `data-slean-orientation="horizontal"` draws line tabs over a
  baseline that scroll sideways; `data-slean-collapsed` is the icon rail (square rows that clip
  their labels, badges in the corner, section labels as rules); `data-slean-scrollspy` styles the
  `:target-current` link as current. It is in `index.css`.
  
  `radio-group.css` adds `data-variant="swatch"`: a wrapping grid of color squares from the new
  `--slean-swatch` token (written inline on each label, `transparent` by default), the check icon in
  `contrast-color()` of the swatch or on a surface disc where that is missing, a ring on the checked
  square, three sizes, and the swatch colors kept under forced colors.
- 12ca0ce: `sortable.css` (also in `index.css`): the sortable list's items as bordered rows (a row with
  `data-slean-orientation="horizontal"`), the grip handle and the previous and next buttons as icon
  buttons drawn from `--slean-icon-grip` and the chevron tokens, the items sliding during a drag and
  the lifted item raised with `--slean-elevation-3` and the current color's border.

## 0.15.5

No changes in this release.

## 0.15.4

### Patch Changes

- 18942fd: Every rule is filed by Chromium under an element, class or attribute of its own, never in its
  universal rule bucket, where a rule is tried against every element of the page at each style
  recalculation. A `:where()` holds one selector (`:where(a), :where(b)` instead of `:where(a, b)`),
  and a key compound names an element, class or attribute (`… > input ~ [data-slean-part]` instead of
  `… ~ *`, the disabled shell's cursor on the field and its parts instead of `*`). The selectors match
  the same elements with the same zero specificity; tokens.css declares each theme scope in its own
  `:where()`. `scripts/check.mjs` now checks every file for it (`checkSelectorBuckets`).
  A 1000-row table page with every stylesheet restyles at 7.1 ms per 1000 elements at 4x CPU, against
  14.2 ms with 0.15.3's (`apps/playground/tests/bench/workload.bench.spec.ts`).

## 0.15.3

No changes in this release.

## 0.15.2

No changes in this release.

## 0.15.1

### Patch Changes

- Dialog, drawer, popover, menu, hover card and the select, autocomplete and date-picker popups: an open overlay is no longer the containing block of its `position: fixed` descendants. Their open state rested at `scale: 1` (a drawer at `translate: 0 0`, a field popup at `translate: 0 0`), and any value of `scale`, `translate` or `transform` other than `none` makes an element the containing block of fixed descendants. A layer placed inside with viewport coordinates landed offset by the overlay's own position: svelte-dnd-action appends its drag preview to the open `<dialog>` or `[popover]` and places it with `getBoundingClientRect()`, so a row grabbed in a list inside a dialog jumped away from the pointer by the dialog's offset and was clipped by it. The rest values are now `none`; the entrances still animate from 0.96 or from the edge (`none` interpolates as the identity). The hint rests at `translate: none` as well. Tested in `apps/playground/tests/primitives/overlay-containing-block.spec.ts` (a fixed element at 100, 120 inside each open shape is at 100, 120; it failed for all six shapes before).

## 0.15.0

### Minor Changes

- 9fec6c4: Date picker: month names, the preset in force, presets beside the calendar and one label for an empty field.
  
  - Month names in the display format: `MMM` and `MMMM` write the month's short and long name as the
    locale writes it in a date (`Intl.DateTimeFormat`, Gregorian calendar; `5 Eki 2026`,
    `Oct 5, 2026`). `dateFormat(locale, { month: 'short' | 'long' })` gives the locale's date with
    the month by name (`D MMM YYYY` for `tr` and `en-GB`, `MMM D, YYYY` for `en-US`,
    `D. MMM YYYY` for `de`), with `time` as well (`MMM D, YYYY, hh:mm A`).
    `formatDisplay(value, format, locale?)` and `parseDisplay(text, format, locale?)` take the
    locale (English by default); the behavior uses the nearest `lang`. Typing reads a month named in any case, with or
    without accents, short, long or begun (`5 ekim 2026`, `5 EKİ 2026`, `oct 5 2026`,
    `Sept 5, 2026`), and digits and ISO dates as before; text naming two months does not parse.
  - The preset in force: while the popup is open the behavior writes `aria-pressed="true"` on the
    `preset` whose `data-slean-value` is the value (a date preset matches the date of a
    `datetime-local` value; `/` matches the empty field) and `"false"` on the others, on open and on
    every change. `syncPresets(root)` is exported with the other helpers.
  - A `presets` part: in an authored popup, a column of presets at the inline start, beside the
    calendar (the footer stays under it). `date-picker.css` draws it as rows, the pressed preset in
    the soft tint, and the pressed footer preset filled.
  - `data-slean-empty="All time"` on the root: while every text input shows its placeholder and
    focus is outside the field, `date-picker.css` draws the option's text on the root's `::before`
    in place of the placeholders and the separator; focus brings them back for typing. No default
    text; the behavior writes nothing for it.
  - The date picker module measures 9092 B brotli (8667 before), within its 9100 B budget.

### Patch Changes

- 7fe4302: Card: a large table in a card costs what it costs in a plain container. The rules that lifted the other controls of a linked card above its stretched link were `card:has(… link) button` (and `input`, `a[href]`, `[tabindex]` …): a `:has()` on an ancestor of the controls. Chromium then restyles every control of the card each time an element is inserted anywhere in it, whether the card has a link or not, so a table mounted in slices (`progressive`, rows arriving page after page) restyled all its earlier rows at every slice.
  
  The stretched link now works without it. A linked card (`:has()` on the card itself) takes no pointer events and is its own stacking context (`isolation: isolate`); its content inherits `pointer-events: none`, the link's `::after` lies under the content (`z-index: -1`) and takes the pointer, and the card's links, buttons, inputs, selects, text areas, summaries, elements with `tabindex`, popovers and dialogs take it back (`pointer-events: auto`, in the sublayer `slean.components.card`, so a component or application rule that sets `pointer-events` on a control wins). What a click reaches is unchanged: a control and what it holds is its own target, any other text, image, label or padding opens the link. Behavior changes: the controls of a linked card are no longer given `position: relative; z-index: 1`; an element positioned with a `z-index` inside a linked card no longer rises above the card's later siblings (use a popover); without `:has()` the link's area is its own text (the other controls stay clickable; before, the link covered them). The styles check rejects a `:has()` outside the key compound in `card.css` and `alert.css`.
  
  Measured with `apps/playground/tests/bench/card-table.bench.spec.ts` (a progressive 1000-row `DataTable` with clickable rows, a selection checkbox, a link and two buttons per row, mounted in a card, a linked card and a plain container with the same look; the three interleaved in one page, 7 repetitions after 2 warm-up rounds, median; two rounds before and after; Chrome for Testing 153 headless, AMD EPYC 9555P, 16 threads, load average 1.3 to 5.4 from other jobs). Rows arriving in a mounted table, CPU slowed 4x: before, the card took 1.18 and 1.33 times the plain container (2738 and 2733 ms against 2317 and 2057 ms) and its style recalculation 2.5 and 2.6 times (880 and 875 ms against 356 and 338 ms); after, 0.98 and 1.01 times (2101 and 2120 ms against 2151 and 2105 ms), style recalculation 344 and 342 ms against 344 and 342 ms. A linked card: 1.03 and 1.19 times before, 1.01 and 1.01 after. Without throttling: the card's style recalculation 101 and 102 ms against 73 ms before, 73 ms against 73 and 74 ms after. The selector-cost spec counts the restyled elements of 200 rows inserted in ten slices: 6 415 in a card against 2 803 outside it before, 2 815 against 2 803 after.

## 0.14.1

### Patch Changes

- 8cf2b7a: Alert: the `close` part (ADR 0011 §1.12). `<button type="button" data-slean-part="close" aria-label="Dismiss">` sits at the end of the first line in a column of its own (the text never runs under it, a one-line alert stays one line high), draws `--slean-icon-close` when empty, takes the variant's text color with a tint on hover and press, and keeps a visible focus ring on a filled alert. The alert stays Tier 0: the application removes it on click. The alert's part rules are now children of the root (`[data-slean='alert'] > [data-slean-part='…']`), so a large page pays nothing for them; a part nested inside another element of the alert is no longer styled as the alert's.
  
  Toast: the close button's hover and press are a tint of its own color, so they read on the filled and outlined variants too (the hover was the neutral muted surface), and its focus ring takes the contrast text on a filled toast.
- a5fc678: Card: fewer selector attempts around a large subtree. Its part rules were selector lists inside `:where()`, with `:is()` in the key, an ancestor-walking `:not()` and a descendant `:has()`; Chromium puts such rules in its universal bucket and tries every element of the page against each of them. Measured with Chromium's selector statistics on 200 table rows outside any card: 30 000 card selector attempts before, about a third of that after, with no selector tried on more than a quarter of the elements. The rules are now keyed on attributes and element names and follow the card's structure with child combinators; the `:has()` that lifts controls above a stretched link is a fixed-depth child chain. A card holding a large table was not measured: that `:has()` sits on an ancestor of the controls, and a table mounted progressively inside a card still restyled every control before each new slice of rows, whether the card had a link or not. The look is unchanged. Parts are matched where the card's structure puts them: `media`, `header`, `body`, `footer` as children of the card; `title` and `description` as children of the card, of its header or of a plain wrapper inside the header; `link` as a child of the title. A part nested deeper (inside another element of the body, an image inside a link inside `media`) is no longer styled as the card's.
- f2af4f0: Date picker and calendar: month and year quick navigation, and a date and a time.
  
  - `calendarHTML({ selects: true })` writes the month and year selects into the header (the year
    buttons give way to them unless `years: true`); `yearRange` sets the years the year select lists
    (default: `min`'s year, else 1900, to `max`'s year, else 2099). `calendarLabels()` adds `month`
    and `year`, the locale's words from `Intl.DisplayNames`.
  - The date picker's generated calendar now has the month and year selects (MUI's and Ant's quick
    navigation) in place of the previous-year and next-year buttons; the year select lists the years
    of the native input's `min` and `max` (1900 to 2099 without them).
  - A date and a time: a date picker over `<input type="datetime-local">` (`datePickerParts(id, {
  time: true })`) adds a native `<input type="time" data-slean-part="time">` per native input to
    the popup's footer (named "Time" or `data-slean-time`, with the native `step`; in a range,
    after each text input's name). A chosen day keeps the time and the popup stays open; a day at
    the edge of `min` or `max` at a time outside them takes the limit. Editing the time writes the
    native input at once when it is within `min` and `max` (a time typed outside them is clamped
    when the popup closes, so an hour can be typed digit by digit); the end of a range keeps its
    time until its day is chosen. Enter in the time closes. A format without time tokens over
    `datetime-local` keeps the time. The text shows the time: `dateFormat(locale,
  { time: true })` gives the locale's pattern (`DD.MM.YYYY HH:mm`, `MM/DD/YYYY, hh:mm A`), and
    `formatDisplay()` / `parseDisplay()` read and write `HH`, `hh`, `H`, `h`, `mm`, `ss`, `A` and
    bracketed literals.
  - The calendar writes the date of a named `datetime-local` input and keeps its time, and does not
    close its popover after a choice there.
  - `date-picker.css` styles the footer's time input. The date picker module's budget rises from
    7700 to 9100 B brotli (measured 7140 → 8499 B).
- 4b6b9f6: Dialog: `--slean-dialog-padding` (default `var(--slean-space-6)`) is the content inset, and the sticky header and footer, their bleed margins and sticky offsets, the drawers' padding and the close button all follow it, so a denser theme changes one token. `--slean-dialog-gap` (default `0px`) spaces the dialog's children; the close button, which takes no room, cancels it, so neither the button nor the header moves with the gap. The close button sits `--slean-space-4` from the corner, or at the padding when that is smaller.
- 8fcaf3e: Fields: `--slean-control-border-hover` softens the border of an outlined field under the pointer. Unset by default, so the hover border stays the field's current color (`data-color`, primary by default); a theme that finds that too strong sets it, for example to `var(--slean-fg-muted)`, and the focus border and halo keep the current color. It applies to every outlined field shell (input, textarea, native and owned select, autocomplete, combobox, date picker) and to the calendar's month and year selects and the date picker's time input.
- 025a6b1: Neutral is MUI's "inherit" for outlined and text variants: a `data-color="neutral"` outlined or text button takes the text color (`--slean-fg`) instead of the muted grey, and an outlined one (and an outlined neutral badge) a hairline from `--slean-border`; a pressed outlined toggle keeps its line in a tint of the main tone, so its state never rests on the fill alone; contained neutral stays a neutral fill. Two current-color tokens carry it: `--slean-color-text` (the ink of outlined and text variants) and `--slean-color-border` (the line of outlined ones). Every `[data-color]` element derives them from its own main tone, so a color of the application's (`[data-color='brand']` setting the six tones) keeps working unchanged (a main tone set without `data-color`, by a class or an inline style, no longer recolors the ink of outlined and text variants: put `data-color` on the element); the neutral scopes set them to the text color and the border. The contrast test checks the ink of every color.
- bad8858: Typography survives a `--slean-font-sans` that follows the page's font. Every `--slean-typography-*` token was a `font` shorthand ending in `var(--slean-font-sans)`; a theme that set the family token to `initial` (or `inherit` on `:root`) to keep the page's font made it invalid, and with it every shorthand, so every rule that applied one (dialog and popover titles, `data-typography`, hover cards, the button font): their size and weight fell back to the parent's. Each step now has longhand tokens, `--slean-typography-<step>-weight`, `-size` and `-line-height`, which the package reads, with the family from `font-family: var(--slean-font-sans)`, which falls back to the inherited family when the token is invalid; `--slean-typography-<step>` stays, as a shorthand of the longhands and the family for application rules. `--slean-button-font`'s family is a placeholder (the button takes the page's family), so it no longer depends on `--slean-font-sans`. A subtree that sets `--slean-font-sans` (a family list, or `initial` for its parent's font) now changes the family of the package's text in it; the `--slean-typography-<step>` shorthands are computed on `:root` and do not follow it. The README documents theming fonts.

## 0.14.0

### Minor Changes

- b4d7daf: ADR 0011 (display and feedback family): merged stylesheets, removed outright.
  
  - **`disclosure.css` removed**; `accordion.css` styles `<details data-slean="accordion">` items: adjacent items join into one bordered list (one shared border, outer corners rounded once), `data-variant="ghost"` is the bare look of the former disclosure, the item pads its content (text may follow the summary directly) and the block-end padding moves with the height on `::details-content`. The `div[data-slean='accordion']` wrapper is no longer styled.
  - **`tag.css` removed**; `badge.css` draws the `remove` part (masked cross, hover fill, a 24px hit area at every size, disabled and forced-colors states). The neutral-default token block no longer lists `tag`.
  - **`spinner.css` removed**; `progress.css` draws `data-variant="circular"`: a conic gradient on the element masked to a ring (thickness a fifth of the radius), `1rem` / `1.5rem` / `2.5rem` for small / medium / large, a quarter arc turned by `--slean-duration-indicator` while indeterminate (slowed, not stopped, under reduced motion), the determinate value from the new root input token `--slean-value` (an inline style, percent without the unit), forced-colors `Highlight` on `GrayText`.
  - **tabs**: `data-size="small|large"` (trigger height and text), and the selected trigger's label takes the current color like its indicator (MUI, Ant Design).
  - **data-color everywhere in the family**: steps, tree, calendar, splitter, file drop, carousel and pagination drew their accent from the primary palette; they now draw it from the current color, so `data-color` on the root or an ancestor recolors them (primary stays the default).
  - **Sizes**: pagination and rating take `data-size="small|large"`; pagination links are `border-box`, so a link is exactly the control height of its size (36px medium, was 38px).
  - **date-picker.css**: the calendar icon is the root's `::after` (ADR 0011 §2.1; the `icon` part is no longer styled here), hidden while the clear button shows; the popup is a column with the footer last, so an authored footer of presets may come before the generated calendar.
- 9870057: ADR 0011 input family (removed names go at once, no aliases).
  
  - **`input.css`** draws every input type of a bare `<input data-slean="input">` (text-like, number, the date and time types, color, file, a one-time code by `autocomplete="one-time-code"` with `data-slean-length`) and the field shell `<div data-slean="input">` with its `prefix`, `suffix`, `clear`, `reveal`, `decrement` and `increment` parts, in the outlined, filled and standard variants.
  - **Removed** (folded into `input.css`, no aliases): `number-field.css`, `otp-field.css`, `color-field.css`, `file-field.css`, `date-field.css`. `field.css` keeps a compact control (a number, date, time or color input, a one-time code, a number shell) at its own width.
  - **`checkbox.css` absorbs `switch.css`** (removed, no alias): `input[type=checkbox][role=switch][data-slean=checkbox]` is drawn as the track and thumb; checkbox and switch gain `data-size="small|large"`. New `checkbox-group.css` (the fieldset layout, members indented under the select-all box, `data-slean-orientation="horizontal"`).
  - **`slider.css` absorbs `range-slider.css`** (removed, no alias): `div[data-slean="slider"]` is the track of one or two stacked range inputs, its rail and filled segment painted from `--slean-range-start` and `--slean-range-end`.
  - **`radio-group.css` absorbs `segmented.css`** (removed, no alias): `data-variant="segmented"` draws the radios as one bar (the checked segment raised, its text in the current color); radios and segments gain `data-size="small|large"`, a segmented bar `data-full-width`.
  - **`field.css`**: the description and the error share one helper-text look (MUI's `FormHelperText`), a little closer to the control; an empty error takes no space; the label takes the error color while the control is invalid; a disabled control (also inside an input shell) mutes the label and the description.
- 6da070a: ADR 0011 as amended by the maintainer: MUI / Ant Design-grade looks and a real theme layer, without JavaScript. Removed names go at once.
  
  - **Variants are never colors.** `data-variant` is shape or fill only: button, button group, toggle, toggle group `contained` (default) | `outlined` | `text`; field shells (input, textarea, native and owned select, autocomplete, combobox, date picker, date/number/one-time-code/color/file fields) `outlined` (default) | `filled` | `standard`; alert, badge, tag, toast `standard` (default) | `filled` | `outlined`; card `elevation` (default) | `outlined`; descriptions, empty, scroll area `outline` → `outlined`; avatar `circular` | `rounded` | `square` (the old `square` is now `rounded`; the group is a wrapper avatar root containing avatars, `data-variant="group"` is removed); skeleton `text` | `rectangular` | `rounded` | `circular` (`circle` → `circular`, `block` → `rounded`, which keeps the old block's medium radius; `rectangular` has square corners). Removed button variants: `secondary`, `outline`, `soft`, `ghost`, `danger`, `danger-soft`, `link`; removed badge variants: `accent`, `info`, `success`, `warning`, `danger`, `solid`, `outline`.
  - **`data-color`** (`primary` | `secondary` | `error` | `warning` | `info` | `success` | `neutral`) on any element selects the current color its subtree's variants are drawn from; badge, tag, alert, toast items and timeline items default to neutral. It replaces the tones in `data-variant` (`danger` → `error`).
  - **`data-size`** is `small` | `medium` | `large` everywhere (`xs`, `sm` → `small`; `lg` → `large`). New modifiers `data-full-width` (button, field shells, tabs) and `data-density="compact|comfortable"` (any element, inherited). `data-status="error"` is removed: an error is `aria-invalid="true"` or `:user-invalid`.
  - **Theme tokens.** Palette per color: `--slean-<color>-main|light|dark|contrast-text|soft|soft-text`, light and dark; the current color `--slean-color-*`; elevation `--slean-elevation-0..5`; spacing unit `--slean-spacing`; `--slean-radius`; typography scale `--slean-typography-h1..h6|subtitle1|subtitle2|body1|body2|caption|overline|button` with `data-typography="…"` in base.css; easings `--slean-ease-in-out|out|in|sharp`; `--slean-z-*`; `--slean-breakpoint-*`; component defaults (`--slean-button-radius`, `--slean-button-font`, `--slean-button-transform`, `--slean-field-radius`, `--slean-card-radius`, `--slean-card-elevation`, `--slean-dialog-radius`, `--slean-dialog-elevation`, `--slean-chip-radius`). Renamed tokens: `--slean-accent` → `--slean-primary-main`, `-accent-fg` → `-primary-contrast-text`, `-accent-hover`/`-accent-active` → `-primary-dark`, `-accent-soft` → `-primary-soft`, `-accent-soft-fg` → `-primary-soft-text`; `--slean-danger*` → `--slean-error-*`; `--slean-success`/`-warning`/`-info` → `-main`, `-fg` → `-contrast-text`, `-soft-fg` → `-soft-text`; `--slean-shadow-sm|md|lg` → `--slean-elevation-1|3|4`; `--slean-control-ring-danger` → `--slean-control-ring-error`. Removed: `--slean-control-border-hover`, `--slean-control-border-focus`, `--slean-control-ring` (fields draw focus from the current color, so `data-color` recolors them).
  - **Parts and rules**: accordion and disclosure `content` → `panel`; listbox and menu `label` → `group-label`; toast `action` → `actions`, `data-slean-position` → `data-slean-side` + `data-slean-align`; the card matches its media, header, title, description and footer by element (ADR 0011 §2.4).
  - Size budget of the resolved index.css raised to 27800 B gzip (reason in `scripts/size.mjs`).
- a75dc53: ADR 0011, overlays (removed names go at once, no aliases):
  
  - `drawer.css` and `alert-dialog.css` are removed; `dialog.css` draws the three shapes of one dialog: centered, a drawer at an edge (`data-slean-side`, sizes for side panels), an alert dialog (`[role='alertdialog']`). Header, title, description and footer are matched by element (also inside a child `<form method="dialog">`); the dialog scrolls with a sticky header and footer, and `data-slean-part="close"` stays in the top end corner. The title uses `--slean-typography-h6`, the description `--slean-typography-body2`.
  - `popover.css` matches a popover's `> header` (heading as title, `<p>` as description) and `> footer` (actions), and now also draws the hover card's surface and placement.
  - `menu.css` matches rows by element (the menu's buttons and links, also inside a `role="group"`) as well as by role, draws a `<kbd>` as the shortcut and colors any `data-color` row from the current color; the `shortcut`, `item` and `submenu-trigger` part rules are removed.
  - `menubar.css` draws the item whose menu is open with the current color's soft tint (`data-color` on the bar or the item).
  - `context-menu.css` and `tooltip.css` are removed (the context menu needs only `menu.css`; the tooltip is `hint.css`).
  - `hover-card.css` builds on `popover.css` (it imports it): the card is the `data-slean="hover-card"` popover itself, aligned with its trigger's start unless `data-slean-align` is set.
- 6fda1b7: ADR 0011 select family: `combobox.css` (and the `./combobox.css` export) is removed; `autocomplete.css` now styles both the bare `input[data-slean='autocomplete']` and the owned `<div data-slean="autocomplete">` (it imports `control.css`). The control shell draws the select and autocomplete chevron as the root's `::after` (the `toggle` part is gone), styles `prefix` and `suffix` adornments, mutes a select trigger that shows its hidden placeholder option, shows the clear button while the native select holds a value, draws the create row (`data-slean-new`) and lets the tags and the search input of a multiple select share lines; a disabled native element (or `<fieldset>`) disables the shell. `listbox.css` draws its selected fill and check mark from `data-color`.
- 6e9ed18: - New icon tokens `--slean-icon-eye` and `--slean-icon-eye-off`; an empty `reveal` button of the input shell draws them (crossed out while the password shows). An authored icon or text still replaces the drawing.
  - `select.css`: without customizable select, the author's `<button><selectedcontent>` inside a native select is `display: none` (it is not drawn there, and an empty, unnamed button no longer reaches the accessibility tree); a multiple owned select starts the empty `slean-select-tags` animation on its value part, the signal the behavior writes the tags on.
  - `control.css`: the date picker's old `icon` part rules are removed (the calendar icon is the root's `::after`).
  - The default palette meets WCAG AA for every variant (checked by `tests/contrast.test.ts` from the tokens, both themes): in light the mains of every color are dark enough for white text and for text on the surface and on their hover tint (warning becomes a deep orange with white text; info, success and primary are darker); in dark the mains are light with dark contrast text, as in MUI's dark palette. The soft tints and every tone are inside the sRGB gamut, so no engine gamut-maps them differently. Themes that override the palette are unaffected.

### Patch Changes

- 3d1a4f5: `range-slider.css`: a disabled range slider no longer dims the whole root. The track (the rail, the fill and both thumbs) is dimmed to 0.5 opacity, as a disabled slider is, and the text inside the root (the label, the outputs) takes `--slean-fg-muted`, as a disabled field's label does, so it keeps WCAG AA contrast. The thumbs of a disabled input show the `not-allowed` cursor. In forced colors the text is `GrayText` and the track is not dimmed.
  
  `field.css`: in a field, a compact control (`number-field`, `date-field`, `otp-field`, `color-field`, `calendar`, `toggle-group`) that is a direct child keeps its own width, as a fieldset already did, instead of stretching to the field. Full-width controls (input, textarea, select, combobox, date picker) still stretch.

## 0.13.4

No changes in this release.

## 0.13.3

No changes in this release.

## 0.13.2

### Patch Changes

- 1f36e76: dialog, drawer, alert-dialog: the column layout holds while they animate closed. `display` stays `flex` through the exit transition (`allow-discrete`), but `flex-direction: column` was set only on `[open]`, so for the length of the exit the header, body and footer stood side by side. It is set on the element now, open or closing.

## 0.13.1

### Patch Changes

- e9192d6: findable: a value wider than the box that clips it (a narrow popover, a small screen) is wrapped to that box instead of running past its edge or making it scroll sideways; a press on the page outside the open value folds it (reason `press`); the open value is drawn as the page's own surface, so the browser's highlight is the only "found" mark and nothing looks found once the find text no longer matches.

## 0.13.0

### Minor Changes

- cc23cc5: `DataTable` reorders rows live. With `onRowMove` the table has a leading grip column (`slean-table-mover`, before the selection and expand columns, sticky at the start edge, `--slean-table-move-width`, 36px). Dragging a grip lifts its row after 3px: the row (with its open details row) follows the pointer, the rows it passes slide out of its way so the drop position shows before release, and the scrolling container scrolls while the row is held near its top or bottom edge. Release calls `onRowMove(source, target)` and the row glides into the place the application gave it; Escape, a cancelled pointer or a move the application does not make slides every row back. On a focused grip, ArrowUp and ArrowDown move the row one place and Home and End to the first or last place on the page, and focus stays on the grip. The grips are hidden while the rows are sorted, filtered or searched (the column stays); a tree or a custom row model has no grip column. Pointer moves write transforms on the row elements only; the listeners of a drag exist only while it lasts, and a press reaches one delegated listener for the whole table.
  
  The Move up and Move down buttons in the first cell and native HTML drag and drop on the rows (`draggable`, `dragstart`/`dragover`/`drop`) are removed, with their `.slean-table-row-move` class. New: the `moveRow` message (`'Drag to reorder'`, tr `'Sürükleyerek sırala'`) names the grips and the grip column; `moveUp` and `moveDown` stay in `TableMessages` but are deprecated and unused. New tokens: `--slean-table-row-lifted-shadow` and `--slean-table-row-lifted` (the dragged row's shadow and background); the root carries `data-row-dragging` during a drag and the dragged rows `data-lifted`. `@svelte-lean/styles` adds the `--slean-icon-grip` token, which the grip reads when present.
  
  Size budgets raised for this feature: the renderer from 22000 B to 22700 B gzip (22614 B measured, was 20710 B), the table stylesheet from 7300 B to 7700 B gzip (7613 B measured, was 7021 B).

## 0.12.1

No changes in this release.

## 0.12.0

No changes in this release.

## 0.11.0

### Minor Changes

- faa2ba0: Toasts are drawn on the overlay surface (`--slean-surface`) in the page's text colour, with the description in `--slean-fg-muted`; a toned toast (`success`, `warning`, `danger`) shows its icon in the tone's colour before the title instead of a tinted fill. The close button stays on the first line and no longer makes it taller: a toast that is only a title is one line high (it used to span three rows and add two gaps below the title).

## 0.10.0

### Minor Changes

- 6bf959c: Steps show a problem: a step containing the `error` part (visually hidden text such as "Has
  errors") draws its marker as a warning in the danger tone, over the complete and current looks.

## 0.9.1

### Patch Changes

- c983e8f: A dialog, drawer, card, hover card, empty state or alert no longer styles the same-named parts
  (`header`, `title`, `description`, `body`, `footer`, `close`, …) of another primitive nested inside
  it: a calendar in a dialog keeps its header row.

## 0.9.0

### Minor Changes

- beabc0b: The calendar jumps to any month with two optional native selects in its header:
  `data-slean-part="month"` (twelve options valued 1 to 12) and `data-slean-part="year"` (options
  valued by year). A change shows that month in the same 42 cells, clamped to `data-slean-min` and
  `-max`, and dispatches `slean:navigate`; every other way the month changes writes both selects
  back, and the months of the shown year outside the bounds are disabled. The new pure helpers
  `calendarMonthNames(locale, format?)` and `calendarYears(first, last)` render their options. The
  calendar now routes `change`, validates the selects in development, and the date picker lets a
  press on a select through so its picker opens inside the popup. `calendar.css` draws the selects
  compactly in the header and hides the first title visually while they are present (it stays the
  grid's accessible name).

## 0.8.0

No changes in this release.

## 0.7.1

No changes in this release.

## 0.7.0

### Minor Changes

- 3bb9f7d: `findable.css` draws the short form of a `data-slean-findable` element from its attribute, keeps
  the whole value out of the flow and, once find opened it, draws it over the short form in the
  warning colors (Mark and MarkText under forced colors). It is in `index.css`.

## 0.6.0

### Minor Changes

- dda6d05: `hint.css` draws the hint bubble from the inverted tokens (sides, monospace, rich content, forced
  colors) and `copy.css` adds the pointer, the disabled cursor and the copied check mark on an
  `icon` part. Both are in `index.css`. The styles check lets an attribute primitive anchor its
  selectors on its attribute.

### Patch Changes

- dda6d05: `popover.css`: a popover never grows past the viewport's free space; it scrolls inside
  (`max-block-size: 100%`, `overflow: auto`, `overscroll-behavior: contain`).

## 0.5.0

### Minor Changes

- Switch: a `data-size="sm"` track for dense rows. Badge: `info`, `solid` (the accent, filled) and `outline` tones.

## 0.4.0

### Minor Changes

- Button: a `data-size="xs"` size (a new `--slean-control-height-xs` token, 1.75rem; 2.25rem on coarse pointers) and a `data-variant="danger-soft"` variant, a tinted destructive action that does not shout. Tables: a header cell carries no whitespace text node between its label and its resize handle.

## 0.3.2

No changes in this release.

## 0.3.1

### Patch Changes

- c58cc2b: Option rows get their own tokens, so a theme can match a listbox that marks the chosen row with its check alone: `--slean-option-active-fg` (the hovered or keyboard row's text), `--slean-option-selected-weight`, `--slean-option-selected-ring` (the chosen and active row's inset line; `none` to drop it), `--slean-option-min-height`, `--slean-option-padding-block`, `--slean-option-padding-inline` and `--slean-option-check-size`. They apply to the owned select, the combobox and the native picker (`::picker(select)`); the native picker's chosen option now wears `--slean-option-selected` like the owned one. `--slean-icon-select` is the select's toggle and picker icon (the chevron by default; an up-and-down pair for a theme that wants one) and `--slean-icon-select-turn` how far it turns while open (`180deg` by default, `0deg` to keep it still). The themes page documents the root-level bridge for an application with its own design system, and why a palette changed only on a wrapper leaves the option aliases in the root's palette.

## 0.3.0

No changes in this release.

## 0.2.0

No changes in this release.

## 0.1.1

No changes in this release.

## 0.1.0

### Minor Changes

- eb039db: Initial release: design tokens, base styles and one stylesheet per primitive in cascade layers, with light and dark themes (`prefers-color-scheme`, `data-theme`, or the `.dark` / `.light` classes, on the root or any subtree) and granular entry points (`@svelte-lean/styles/<name>.css`) that import what they depend on. Works alongside Tailwind CSS v4 with one layer-order line. CSS only.
