Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"typecheck": "bun run build:framework && bun run --filter '@bb-kit/*' --parallel typecheck && bun run --filter '@smsunarto/bb-plugin-*' --parallel typecheck",
"test": "bun test scripts/*.test.ts && bun run --filter '@bb-kit/*' --parallel test && bun run --filter '@smsunarto/bb-plugin-*' --parallel test",
"test": "bun run build:framework && bun test scripts/*.test.ts && bun run --filter '@bb-kit/*' --parallel test && bun run --filter '@smsunarto/bb-plugin-*' --parallel test",
"compatibility:inspect": "bun packages/bb-kit-cli/src/cli.ts compatibility inspect",
"compatibility:check": "bun packages/bb-kit-cli/src/cli.ts compatibility check",
"compatibility:upgrade": "bun packages/bb-kit-cli/src/cli.ts compatibility upgrade",
Expand Down
2 changes: 1 addition & 1 deletion plugins/agent-proxy/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/agentation/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/amp/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/dotfiles/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/gh-stack/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/gtd-sidebar/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/monokai/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/notify/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugins/pr-walkthrough/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions scripts/plugin-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const themeColors = {
light: "oklch(44% 0 0)",
dark: "oklch(78% 0 0)",
} as const;
// BB paints installed compact assets as currentColor masks, and bb 0.40 does
// the same for marketplace SVGs. BB 0.39 renders marketplace SVGs as images,
// so use a neutral fallback that stays visible on both light and dark cards.
const compactFallbackColor = "#767676";
// A filled brand mark needs flat hex, not the stroked glyphs' currentColor.
const brandColors = { light: "#666666", dark: "#B8B8B8" } as const;

Expand Down Expand Up @@ -202,14 +206,14 @@ async function expectedFiles(plugin: CustomPlugin): Promise<Map<string, string>>
if (entry.brand !== undefined) {
const { brand } = entry;
return new Map([
[join(directory, "icon.svg"), brandSvg(brand, "#000")],
[join(directory, "icon.svg"), brandSvg(brand, compactFallbackColor)],
[join(directory, "logo.svg"), brandSvg(brand, brandColors.light)],
[join(directory, "logo-dark.svg"), brandSvg(brand, brandColors.dark)],
]);
}
const nodes = entry.nodes as readonly IconNode[];
return new Map([
[join(directory, "icon.svg"), svg(nodes, "#000", false)],
[join(directory, "icon.svg"), svg(nodes, compactFallbackColor, false)],
[join(directory, "logo.svg"), svg(nodes, themeColors.light, true)],
[join(directory, "logo-dark.svg"), svg(nodes, themeColors.dark, true)],
]);
Expand Down
Loading