# Changelog

Track notable changes to Astro Components.

import { Badge } from '@prosefly/astro-components';

This changelog covers user-facing changes to `@prosefly/astro-components`,
including components, markdown transforms, integration behavior, styling tokens,
and documentation.

## Unreleased

- Moved component state styling hooks from modifier classes to `data-*`
  attributes while keeping BEM classes for structure.
- Moved the docs site Lotus configuration from `src/theme.config.ts` to
  `theme.config.json` and removed docs sidebar frontmatter.

## 0.4.1

<Badge color="accent" variant="subtle">Released July 20, 2026</Badge>

- Added `--pf-badge-radius` so `Badge` corner radius can be customized
  independently from the global pill radius.

## 0.4.0

<Badge color="accent" variant="subtle">Released July 20, 2026</Badge>

- Renamed the component CSS, data attribute, and custom property namespace from
  `pl` to `pf`.
- Added default light/dark token fallbacks for standalone component styles.

## 0.3.0

<Badge color="accent" variant="subtle">Released July 19, 2026</Badge>

- Added `remarkCalloutDirectives` for writing callouts, also known as
  admonitions, with Markdown directive syntax.
- Changed `Card` titles to render as non-heading text so cards do not affect
  page heading hierarchy.
- Exposed callouts as `role="note"` instead of complementary landmarks.
- Added unit tests for the markdown transforms.
- Updated markdown setup examples to use Astro's `unified()` processor API.

## 0.2.1

<Badge color="accent" variant="subtle">Released July 18, 2026</Badge>

- Fixed the `@prosefly/astro-components/icon` ESM entry by moving the FileTree
  icon helper into the icon module and using explicit `.js` imports.

## 0.2.0

<Badge color="accent" variant="subtle">Released July 18, 2026</Badge>

- `FileTree` now supports `iconSet="vscode-icons"` for richer file-type icons.
- Semantic badge colors for `info`, `success`, `warning`, and `danger`.
- Shared semantic CSS tokens for status-oriented components.
- Callout colors now use the shared semantic token palette, with type-specific
  callout override tokens still available.

## 0.1.0

<Badge color="accent" variant="subtle">Released July 17, 2026</Badge>

- MDX components for callouts, cards, tabs, accordions, file trees, steps,
  badges, and icons.
- Iconify preload integration for projects that need icons without the full
  [Lotus](https://astro-theme-lotus.prosefly.dev/) theme.
- Markdown transforms for package-manager tabs and image galleries.
- CSS custom properties for shared typography, color, radius, and component
  styling.
