diff --git a/.changeset/eslint-plugin-deprecated-bui-tokens-rule.md b/.changeset/eslint-plugin-deprecated-bui-tokens-rule.md new file mode 100644 index 0000000000..a49e90b2ec --- /dev/null +++ b/.changeset/eslint-plugin-deprecated-bui-tokens-rule.md @@ -0,0 +1,5 @@ +--- +'@backstage/eslint-plugin': patch +--- + +Adds a new `@backstage/no-deprecated-bui-tokens` lint rule that warns when a deprecated `@backstage/ui` CSS token is referenced in a JavaScript or TypeScript file. The rule is included in the `recommended` config, so plugin authors using `plugin:@backstage/recommended` will receive warnings automatically when using tokens that have been superseded by the new semantic color families. diff --git a/.changeset/ui-semantic-color-tokens.md b/.changeset/ui-semantic-color-tokens.md new file mode 100644 index 0000000000..65ad89e6e8 --- /dev/null +++ b/.changeset/ui-semantic-color-tokens.md @@ -0,0 +1,7 @@ +--- +'@backstage/ui': patch +--- + +Introduces a new set of semantic color token families — Accent, Announcement, Warning, Negative, and Positive — each providing a consistent set of background, foreground, and border tokens for both light and dark themes. A gray scale (`--bui-gray-1` through `--bui-gray-11`) and updated foreground tokens are also included. + +The previous tokens (`--bui-bg-solid-*`, `--bui-bg-neutral-*`, `--bui-bg-danger/warning/success/info`, `--bui-fg-solid`, `--bui-fg-danger/success/info`, `--bui-border-*`, and `--bui-shadow`) remain in place for backward compatibility but are now deprecated and will be removed in a future release. diff --git a/packages/ui/src/css/colors.stories.tsx b/packages/ui/src/css/colors.stories.tsx index e7d86cf6c3..83425cc85a 100644 --- a/packages/ui/src/css/colors.stories.tsx +++ b/packages/ui/src/css/colors.stories.tsx @@ -98,212 +98,205 @@ export const All = meta.story({ render: () => (
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
), });