From 7898df0aa08d81a8e40616efbef45bae4bea7848 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Sat, 7 Feb 2026 08:30:44 +0000 Subject: [PATCH] Add changeset Signed-off-by: Charles de Dreuille --- .changeset/clean-bags-occur.md | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .changeset/clean-bags-occur.md diff --git a/.changeset/clean-bags-occur.md b/.changeset/clean-bags-occur.md new file mode 100644 index 0000000000..bf376e2300 --- /dev/null +++ b/.changeset/clean-bags-occur.md @@ -0,0 +1,69 @@ +--- +'@backstage/ui': minor +--- + +**BREAKING**: Replaced `Surface` / `onSurface` system with new `Bg` background system + +The old `Surface` type (`'0'`–`'3'`, `'auto'`) and its associated props (`surface`, `onSurface`) have been replaced by a new `Bg` type with semantic neutral levels (`'neutral-1'` through `'neutral-4'`) and intents (`'danger'`, `'warning'`, `'success'`). Leaf components like Button no longer need an explicit prop — backgrounds auto-increment from parent context. + +New `useBg` hook and `BgProvider` replace the deleted `useSurface` hook and `SurfaceProvider`. + +**Migration:** + +Rename the `surface` prop to `bg` on container components and update values: + +```diff +- ++ + +- ++ + +- ++ + +- ++ +``` + +Remove `onSurface` from leaf components — it is now fully automatic: + +```diff +-