Skip to main content
Current version: 0.0.4. Source: packages/anvil2-kotlin/CHANGELOG.md.

0.0.4

Patch Changes

  • #3290 14c9b27 Thanks @andrewking1235! - [Anvil2Icon, Anvil2Status] Replace the icon’s status parameter with color: Color?, and add ProvideAnvil2IconColor to set the color of every tintable Anvil2Icon in its content. A tintable glyph now draws in color, then ProvideAnvil2IconColor, then semantic.foreground.color.standard; it no longer reads Material 3 LocalContentColor. Remove Anvil2Status and ProvideAnvil2Status. To migrate, replace status = Anvil2Status.Danger with color = theme.semantic.foreground.color.critical.current() (or the color you need), replace ProvideAnvil2Status with ProvideAnvil2IconColor, and replace LocalContentColor used to tint icons with ProvideAnvil2IconColor
  • #3224 44d88f1 Thanks @AdamLantz! - [Anvil2TokensNext] Add the :tokens-next module (com.servicetitan:anvil2-android-tokens-next, package com.servicetitan.anvil2.tokensnext) as a preview: its token values are placeholders and may change in any release. It is generated from @servicetitan/anvil2-tokens, so apps can adopt the new tokens before :tokens switches to them in a later breaking release. It keeps Anvil2Theme, LocalAnvil2Theme and Anvil2Appearance, adds the Anvil2Theme.Classic, Anvil2Theme.Carto and Anvil2Theme.CartoMobile themes, and renames tokens (e.g. foreground.color.standard → foreground.color.base). Components still read :tokens
  • #3161 8cf10cc Thanks @jpex! - [Anvil2Icons] Update the Atlas logo icon to the new Atlas brand mark
  • #3287 5c81ed8 Thanks @AdamLantz! - [Anvil2TokensNext] Add border and inverse colors to every category hue
  • #3287 5c81ed8 Thanks @AdamLantz! - [Anvil2TokensNext] Fix Anvil2Theme.Carto and Anvil2Theme.CartoMobile dark colors that Carto gives no dark value of its own: they now match classic dark instead of Carto light
  • #3287 5c81ed8 Thanks @AdamLantz! - [Anvil2TokensNext] Add component tokens under Anvil2Theme.component
  • Updated dependencies [5c81ed8, 5c81ed8, 5c81ed8]:
    • @servicetitan/anvil2-tokens@0.1.1

0.0.3

Patch Changes

  • #3177 90a5582 Thanks @andrewking1235! - [Anvil2Icon] Add Anvil2Icon, a composable that draws an Anvil2IconAsset (or a caller-supplied Painter) at Anvil2IconSize.Small/Medium/Large (16/24/32 dp). Tintable glyphs take Material 3 LocalContentColor unless a status is set. Adds Anvil2Status (Info/Success/Warning/Danger), shared by status-aware components: pass status, or provide it to a subtree with ProvideAnvil2Status. contentDescription is required (null for decorative), and ProvideAnvil2IconStyle(size) sets a default size for a subtree. anvil2-android-components now depends on Compose Material 3 (androidx.compose.material3:material3, version from the Compose BOM) as an implementation dependency
  • #3178 b57b018 Thanks @andrewking1235! - [Anvil2IconAsset] Rename the Anvil2Icon enum to Anvil2IconAsset. Replace Anvil2Icon with Anvil2IconAsset at each use site (e.g. Anvil2Icon.ArrowLeft.drawableRes → Anvil2IconAsset.ArrowLeft.drawableRes); entries are unchanged
  • #3150 70ad407 Thanks @tounsoo! - [Anvil2Illustration] Restore the missing leaf in the EmptyStateCommercialPropertyCareUserCleared drawable
  • #3170 38263d0 Thanks @ericag1985! - [Anvil2Theme] Add motion.duration.cycle as a 1000ms repeating-motion duration
  • #3189 0f9b0bf Thanks @andrewking1235! - [Anvil2Button] Add Anvil2Button, a composable pill button in six appearances (Anvil2ButtonAppearance.Primary/Secondary/Ghost/Danger/DangerSecondary/DangerGhost) at Anvil2ButtonSize.Medium/Large (48/64 dp minimum height, growing with the font scale). It takes an optional icon placed by Anvil2ButtonIconPlacement.Leading/Trailing, enabled, and loading, which keeps the button’s width, shows a spinner in place of the content, ignores clicks and adds indeterminate progress semantics. The iconOnly overload draws a circular icon-only button whose contentDescription is required. ProvideAnvil2ButtonStyle(appearance, size) sets a default appearance and size for a subtree; Modifier.fillMaxWidth() fills the width
  • #3187 a734331 Thanks @andrewking1235! - [Anvil2Spinner] Add Anvil2Spinner, a composable that shows an indeterminate loading arc at Anvil2SpinnerSize.Small/Medium/Large (16/40/80 dp). The arc is semantic.border.color.accent by default; Anvil2SpinnerTint.Inherited takes Material 3 LocalContentColor instead, for a spinner on a filled background. contentDescription is required (null for decorative; a label adds progress semantics), and ProvideAnvil2SpinnerStyle(size, tint) sets a default size and tint for a subtree. With the system “Remove animations” setting on, the arc stops at rest
  • #3196 e073fb0 Thanks @andrewking1235! - [Anvil2Checkbox] Add Anvil2Checkbox, a composable checkbox whose whole row (box, label and optional description) is one control and one semantics node with Role.Checkbox. The two-state overloads take checked and onCheckedChange; the mixable overloads take an Anvil2CheckboxMixableState (Unchecked/Checked/Indeterminate) and call onClick, leaving the next state to the caller. A null callback makes it read-only. isError colors the box critical, and enabled = false disables it. The contentDescription overloads draw a box with no visible label whose contentDescription is required
  • Updated dependencies [38263d0]:
    • @servicetitan/carto-tokens@0.4.8

0.0.2

Patch Changes

  • #3074 9ea5560 Thanks @andrewking1235! - [Anvil2Icon, Anvil2Illustration] Add the anvil2-android-icons and anvil2-android-illustrations artifacts, generated from @servicetitan/anvil2-icons and @servicetitan/anvil2-illustrations
    • Anvil2Icon has one entry per web Icon* export, with a drawableRes and isTintable; tint tintable icons and draw multicolour ones untinted
    • Anvil2Illustration has one entry per illustration; each drawableRes resolves to its light or dark variant through the night resource qualifier
    • anvil2-android-components exposes both through api

0.0.1

Patch Changes

  • #3011 1b48f54 Thanks @andrewking1235! - [Anvil2Theme] Add initial prerelease of the injectable native theme, replacing the static Anvil2Tokens namespace
    • Components read tokens from LocalAnvil2Theme.current; the default is Anvil2Theme.Carto
    • LocalAnvil2Dark overrides the system appearance
    • A theme built from a modified lower tier re-derives every tier above it
    • Font-family and breakpoint tokens are no longer emitted
  • #3064 3e36538 Thanks @rollsroyc3! - [Tokens] Add text.highlight.backgroundFallback, a solid stand-in for text.highlight.background (web’s gradient) on React Native, Swift, and Kotlin, which cannot render it. [Text] Consume backgroundFallback for the highlighted prop’s background instead of a hardcoded rgba(188, 226, 234, 0.4) literal.
  • Updated dependencies [3e36538]:
    • @servicetitan/carto-tokens@0.4.7
Last modified on November 6, 2026