Notami reference
This design history page records a proposed mapping between AFFiNE and Primer for the Notami fork. At the time of the study, Notami used AFFiNE’s theme. Compare current values with dist/themes.json.
Notami’s design gate is open. Its docs/NOTAMI-FOUNDATION.md (item 8) says Craft references have not been inspected and no colors, spacing, or fidelity claims are established. This mapping is structural. It does not claim Craft fidelity.
App facts were read from ../affine on October 28, 2026: a fork of AFFiNE 0.27.5 using Yarn 4.18.0. Check the files again before relying on them.
Where Notami’s theme lives
Section titled “Where Notami’s theme lives”| What | Where |
|---|---|
v1 --affine-* and v2 --affine-v2-* variables under :root, [data-theme=light], and [data-theme=dark] |
@toeverything/theme/style.css |
The import every app loads, as @affine/component/theme |
packages/frontend/component/src/theme/index.ts |
| How components read them | cssVar('textPrimaryColor') and cssVarV2(...) become var(--affine-…) |
| Inline overrides from the custom theme page | packages/frontend/core/src/desktop/pages/root/custom-theme/index.tsx |
The web, mobile, iOS, Android, and Electron entries all import @affine/component/theme. BlockSuite renders in shadow DOM, and custom properties inherit into it, so a document stylesheet reaches the editor. The custom theme page writes inline styles on <html>, which beat every stylesheet.
Variable map
Section titled “Variable map”| AFFiNE variables | Primer role |
|---|---|
--affine-background-primary-color, --affine-background-overlay-panel-color, --affine-v2-layer-background-primary, --affine-v2-input-background, --affine-v2-selfhost-layer-background-primary |
color.background.base |
--affine-background-secondary-color, --affine-v2-layer-background-secondary, --affine-v2-selfhost-layer-background-secondary |
color.background.subdued |
--affine-background-tertiary-color, --affine-v2-layer-background-tertiary, --affine-v2-button-secondary |
color.background.strong |
--affine-text-primary-color, --affine-v2-text-primary, --affine-v2-icon-primary |
color.text.base |
--affine-text-secondary-color, --affine-icon-color, --affine-v2-text-secondary, --affine-v2-icon-secondary |
color.text.subdued |
--affine-text-disable-color, --affine-placeholder-color, --affine-v2-text-tertiary, --affine-v2-text-placeholder, --affine-v2-text-disable, --affine-v2-icon-tertiary |
color.text.subtle |
--affine-text-emphasis-color, --affine-link-color, --affine-v2-text-emphasis, --affine-v2-text-link |
color.accent.base |
--affine-primary-color, --affine-v2-button-primary |
color.accent.fill |
--affine-border-color, --affine-divider-color |
color.border.subdued |
--affine-v2-input-border-default |
color.border.base |
--affine-v2-input-border-active |
color.focus |
--affine-error-color, --affine-v2-status-error, --affine-v2-input-border-error |
color.critical.base |
--affine-v2-button-error |
color.critical.fill |
--affine-warning-color |
color.warning.base |
--affine-success-color, --affine-v2-status-success |
color.success.base |
--affine-font-family |
font.body |
These stay AFFiNE’s: modal scrims (--affine-v2-layer-background-modal is translucent black), tooltips (black in both themes on purpose), translucent hover overlays such as --affine-v2-layer-background-hoverOverlay, and the edgeless, note, callout, highlight, and tag colors. Those are content colors or deliberate AFFiNE choices, not interface roles.
Current Primer target
Section titled “Current Primer target”The variable mapping above remains structural. Primer 0.4 now targets neutral paper layers, Geist and orange. Use current role values in dist/themes.json rather than the earlier sand/brown comparison snapshots. Keep AFFiNE-owned overlays, content colors, saved custom themes, editor behavior and existing design gate independent. See Fable-derived foundations for the new shared direction; it does not establish that Notami has adopted it.
Adoption, when requested
Section titled “Adoption, when requested”Nothing below has been done. It waits for the design gate and an explicit request. Map Notami-owned variables to Primer roles from dist/contract.json. Do not add a dependency on this checkout. Review the page and edgeless editors, the sidebar, settings, and mobile in both themes. Confirm a saved custom theme still wins.