v0.105.0
Minor Changes
-
#977
18cb18bdThanks @tenphi! - Add support for dual-colorfillstyle. When two color tokens are provided (e.g.,fill="#primary #secondary"), the first color is applied asbackground-colorand the second as abackground-imagegradient layer via a registered CSS custom property (--tasty-second-fill-color), enabling smooth CSS transitions. ExplicitbackgroundImageorbackgroundproperties override the second color. -
#975
38152302Thanks @tenphi! - Replaced the toast system with a new implementation:- New API:
useToast()hook withtoast(),toast.success(),toast.danger(),toast.warning(), andtoast.note()methods - Progress toasts:
useProgressToast()hook for loading states that persist whileisLoadingis 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
useToastsApihook - migrate touseToast - Removed
attentiontheme - usewarninginstead - Renamed
headerprop totitle
- New API:
-
#974
402d5618Thanks @tenphi! - Add support for OKHSL color functions in style parsing and fix CSSWriter.add() method.