Files
bip-kit/package.json
T
CatoandClaude 8052af0697 ## What (#63)
The share row's primary action ("Post on OrangeCat") rendered as a blank dark slab on Solon: its ink was `var(--bp-bg)`, and Solon sets `--bp-bg: transparent` so its own page shows through. Measured: text `rgba(0,0,0,0)` on `rgb(26,26,26)`.

- New `--bp-on-fg` (ink on a `--bp-fg` fill), set in the light defaults, the dark media query and `[data-theme="dark"]`. Hosts can override it.
- `.bp-share-primary` uses it.
- A style test fails if any `--bp-fg` fill takes its ink from `--bp-bg`, and checks `--bp-on-fg` is set in all three theme blocks.
- Version 0.8.1.

## Checks

- `pnpm run verify`: 229 tests pass. `docs-truth-audit`: clean.
- Built Solon with this stylesheet: the button reads `rgb(253,253,252)` on `rgb(26,26,26)`; checked at 390px in light and dark.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_019MDtmvPuHDQeZwXtasWfSx
B
gh api repos/bitbaum/bip-kit/pulls -f head=fix/share-primary-ink -f base=main -f title="fix(share): primary action ink no longer comes from a transparent --bp-bg (0.8.1)" -F body=@/tmp/claude-0/b3.md --jq .html_url
fix(share): primary action ink no longer comes from a transparent --bp-bg (0.8.1)

Solon sets --bp-bg: transparent, so the "Post on OrangeCat" button's text
vanished into its fill. A dedicated --bp-on-fg carries the ink, with light
and dark defaults; a style test keeps --bp-fg fills off --bp-bg ink.

Claude-Session: https://claude.ai/code/session_019MDtmvPuHDQeZwXtasWfSx

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 12:07:04 +01:00

103 lines
2.5 KiB
JSON

{
"name": "@bitbaum/bip-kit",
"version": "0.8.1",
"description": "Building in Public, as a content contract: parse markdown into typed blocks and render them with a reference React renderer (@bitbaum/bip-kit/react) \u2014 blog, roadmap, changelog on your product site, bring your own design tokens.",
"license": "MIT",
"author": "Mao Nakamoto",
"homepage": "https://github.com/bitbaum/bip-kit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bitbaum/bip-kit.git"
},
"bugs": {
"url": "https://github.com/bitbaum/bip-kit/issues"
},
"keywords": [
"build-in-public",
"blog",
"roadmap",
"changelog",
"markdown",
"headless",
"content",
"nextjs",
"react",
"rsc",
"renderer"
],
"type": "module",
"sideEffects": false,
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [
"dist",
"styles.css"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./node": {
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
},
"./react/mermaid": {
"types": "./dist/react/mermaid.d.ts",
"default": "./dist/react/mermaid.js"
},
"./styles.css": "./styles.css"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node --test test/*.test.js",
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm test",
"prepare": "pnpm run build",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^26.4.0",
"@types/react": "^19.2.18",
"eslint": "^10.9.1",
"globals": "^17.11.0",
"katex": "^0.18.5",
"prettier": "^3.9.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"shiki": "^4.4.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.68.0"
},
"peerDependencies": {
"react": ">=18",
"shiki": ">=1",
"mermaid": ">=10",
"katex": ">=0.16"
},
"peerDependenciesMeta": {
"shiki": {
"optional": true
},
"mermaid": {
"optional": true
},
"katex": {
"optional": true
}
}
}