Skip to content

v0.105.0

Choose a tag to compare

@github-actions github-actions released this 27 Jan 13:54
· 86 commits to main since this release
7cbade9

Minor Changes

  • #977 18cb18bd Thanks @tenphi! - Add support for dual-color fill style. When two color tokens are provided (e.g., fill="#primary #secondary"), the first color is applied as background-color and the second as a background-image gradient layer via a registered CSS custom property (--tasty-second-fill-color), enabling smooth CSS transitions. Explicit backgroundImage or background properties override the second color.

  • #975 38152302 Thanks @tenphi! - Replaced the toast system with a new implementation:

    • New API: useToast() hook with toast(), toast.success(), toast.danger(), toast.warning(), and toast.note() methods
    • Progress toasts: useProgressToast() hook for loading states that persist while isLoading is true
    • Declarative usage: <Toast> and <Toast.Progress> components for declarative toast rendering
    • Default icons: Each theme now has a predefined icon (can be overridden)
    • Collapse on hover: Toasts collapse when hovering the toast area to reveal content behind
    • Deduplication: Toasts with the same content are deduplicated automatically

    Breaking changes:

    • Removed useToastsApi hook - migrate to useToast
    • Removed attention theme - use warning instead
    • Renamed header prop to title
  • #974 402d5618 Thanks @tenphi! - Add support for OKHSL color functions in style parsing and fix CSSWriter.add() method.