Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(branding): ship RoundHog font from @posthog/brand package (#68120)

Thomas Obermüller37c23d096a12
diff --git a/frontend/public/RoundHog-Bold-Italic.woff2 b/frontend/public/RoundHog-Bold-Italic.woff2
deleted file mode 100644
index 2d77bcf77ec0..000000000000
Binary files a/frontend/public/RoundHog-Bold-Italic.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-Bold.woff2 b/frontend/public/RoundHog-Bold.woff2
deleted file mode 100644
index 13eb9b7ec609..000000000000
Binary files a/frontend/public/RoundHog-Bold.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-Italic.woff2 b/frontend/public/RoundHog-Italic.woff2
deleted file mode 100644
index c4e55c790532..000000000000
Binary files a/frontend/public/RoundHog-Italic.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-Medium-Italic.woff2 b/frontend/public/RoundHog-Medium-Italic.woff2
deleted file mode 100644
index 51b50230361f..000000000000
Binary files a/frontend/public/RoundHog-Medium-Italic.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-Medium.woff2 b/frontend/public/RoundHog-Medium.woff2
deleted file mode 100644
index d7be23f46341..000000000000
Binary files a/frontend/public/RoundHog-Medium.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-SemiBold-Italic.woff2 b/frontend/public/RoundHog-SemiBold-Italic.woff2
deleted file mode 100644
index 4f3d6eab0554..000000000000
Binary files a/frontend/public/RoundHog-SemiBold-Italic.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog-SemiBold.woff2 b/frontend/public/RoundHog-SemiBold.woff2
deleted file mode 100644
index 9d03af8667de..000000000000
Binary files a/frontend/public/RoundHog-SemiBold.woff2 and /dev/null differ
diff --git a/frontend/public/RoundHog.woff2 b/frontend/public/RoundHog.woff2
deleted file mode 100644
index 23872b7b50ed..000000000000
Binary files a/frontend/public/RoundHog.woff2 and /dev/null differ
diff --git a/frontend/src/styles/fonts.scss b/frontend/src/styles/fonts.scss
index 835928a9a227..48224ffa4f98 100644
--- a/frontend/src/styles/fonts.scss
+++ b/frontend/src/styles/fonts.scss
@@ -44,7 +44,7 @@
font-family: RoundHog;
font-style: normal;
font-weight: 800;
- src: url('../../public/RoundHog-Bold.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-Bold.woff2') format('woff2');
font-display: swap;
}
@@ -53,7 +53,7 @@
font-family: RoundHog;
font-style: normal;
font-weight: 700;
- src: url('../../public/RoundHog-SemiBold.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-SemiBold.woff2') format('woff2');
font-display: swap;
}
@@ -62,7 +62,7 @@
font-family: RoundHog;
font-style: normal;
font-weight: 500;
- src: url('../../public/RoundHog-Medium.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-Medium.woff2') format('woff2');
font-display: swap;
}
@@ -71,7 +71,7 @@
font-family: RoundHog;
font-style: normal;
font-weight: 400;
- src: url('../../public/RoundHog.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog.woff2') format('woff2');
font-display: swap;
}
@@ -80,7 +80,7 @@
font-family: RoundHog;
font-style: italic;
font-weight: 400;
- src: url('../../public/RoundHog-Italic.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-Italic.woff2') format('woff2');
font-display: swap;
}
@@ -89,7 +89,7 @@
font-family: RoundHog;
font-style: italic;
font-weight: 500;
- src: url('../../public/RoundHog-Medium-Italic.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-Medium-Italic.woff2') format('woff2');
font-display: swap;
}
@@ -98,7 +98,7 @@
font-family: RoundHog;
font-style: italic;
font-weight: 700;
- src: url('../../public/RoundHog-SemiBold-Italic.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-SemiBold-Italic.woff2') format('woff2');
font-display: swap;
}
@@ -107,6 +107,6 @@
font-family: RoundHog;
font-style: italic;
font-weight: 800;
- src: url('../../public/RoundHog-Bold-Italic.woff2') format('woff2');
+ src: url('../../node_modules/@posthog/brand/dist/fonts/RoundHog-Bold-Italic.woff2') format('woff2');
font-display: swap;
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8cdda074729e..4099fc573caf 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -19,8 +19,8 @@ catalogs:
specifier: 1.60.0
version: 1.60.0
'@posthog/brand':
- specifier: 0.3.0
- version: 0.3.0
+ specifier: 0.5.0
+ version: 0.5.0
'@posthog/icons':
specifier: ^0.37.4
version: 0.37.4
@@ -554,7 +554,7 @@ importers:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/docs-onboarding':
specifier: workspace:*
version: link:../docs/onboarding
@@ -2546,7 +2546,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -2586,7 +2586,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -2875,7 +2875,7 @@ importers:
version: 3.2.1([email protected])
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -2926,7 +2926,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -3016,7 +3016,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -3520,7 +3520,7 @@ importers:
version: 3.2.1([email protected])
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -3640,7 +3640,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -3706,7 +3706,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -3951,7 +3951,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -4184,7 +4184,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -4227,7 +4227,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -4266,7 +4266,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -4350,7 +4350,7 @@ importers:
dependencies:
'@posthog/brand':
specifier: 'catalog:'
- version: 0.3.0([email protected])
+ version: 0.5.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -9760,8 +9760,8 @@ packages:
'@poppinss/[email protected]':
resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==}
- '@posthog/[email protected]':
- resolution: {integrity: sha512-OY7dLa0AEERWKnfDbuJPN5EH3OKSI7to2B9TASBubU8CswbxGXpEjtSTo6mrJu7zGcC6diGSk9BePe/OcNHgPg==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-EXA0jx6GE3A4mHihlqWc5vIxpjxeOIepYPiFAuE62/3sLiAkQqy4PZ5FK1lcdJG8LfRjgh0V2933p9nPGkwIEA==}
engines: {node: '>=22.18'}
peerDependencies:
react: 18.3.1
@@ -29569,7 +29569,7 @@ snapshots:
'@poppinss/[email protected]': {}
optionalDependencies:
react: 18.3.1
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index ffe9c8c087ef..a4fa66052c9d 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -44,7 +44,7 @@ catalog:
kea-window-values: ^3.0.1
# PostHog packages
'@posthog/icons': ^0.37.4
- '@posthog/brand': 0.3.0
+ '@posthog/brand': 0.5.0
'@posthog/react': ^1.9.0
posthog-js: ^1.398.0
# Build tools
diff --git a/posthog/email.py b/posthog/email.py
index 06cedc516ad7..25d8be205b59 100644
--- a/posthog/email.py
+++ b/posthog/email.py
@@ -40,8 +40,8 @@ def inline_css(value: str) -> str:
Forked from getsentry/sentry
`keep_at_rules=True` preserves at-rules that can't be inlined onto elements — chiefly the
- `@font-face` that loads our brand font, plus the `@media` responsive block. Without it,
- css_inline drops every `<style>` block after inlining and the font never loads.
+ `@media` responsive block. Without it, css_inline drops every `<style>` block after
+ inlining and media queries never apply.
"""
inlined = css_inline.inline(value, keep_at_rules=True)
tree = lxml_html.document_fromstring(inlined)
diff --git a/posthog/templates/email/styles.html b/posthog/templates/email/styles.html
index 86e5c30844d7..431440a66891 100644
--- a/posthog/templates/email/styles.html
+++ b/posthog/templates/email/styles.html
@@ -1,44 +1,9 @@
-{% load posthog_assets %}
<style type="text/css">
- /* Brand font. The @font-face survives CSS inlining via keep_at_rules=True (see posthog/email.py);
- mail clients that strip @font-face fall back to the stack declared on `body` below. */
- @font-face {
- font-family: 'RoundHog';
- font-style: normal;
- font-weight: 800;
- src: url("{% absolute_asset_url 'RoundHog-Bold.woff2' %}") format('woff2');
- font-display: swap;
- }
-
- @font-face {
- font-family: 'RoundHog';
- font-style: normal;
- font-weight: 700;
- src: url("{% absolute_asset_url 'RoundHog-SemiBold.woff2' %}") format('woff2');
- font-display: swap;
- }
-
- @font-face {
- font-family: 'RoundHog';
- font-style: normal;
- font-weight: 500;
- src: url("{% absolute_asset_url 'RoundHog-Medium.woff2' %}") format('woff2');
- font-display: swap;
- }
-
- @font-face {
- font-family: 'RoundHog';
- font-style: normal;
- font-weight: 400;
- src: url("{% absolute_asset_url 'RoundHog.woff2' %}") format('woff2');
- font-display: swap;
- }
-
/* Main containers */
body,
.main {
width: 100%;
- font-family: 'RoundHog', 'Helvetica Neue', helvetica, sans-serif;
+ font-family: 'Helvetica Neue', helvetica, sans-serif;
padding: 0;
margin: 0;
color: #2d2d2d;
diff --git a/posthog/templates/shared_resource_404.html b/posthog/templates/shared_resource_404.html
index 9e3aafc9b054..a96afd59effe 100644
--- a/posthog/templates/shared_resource_404.html
+++ b/posthog/templates/shared_resource_404.html
@@ -2,53 +2,9 @@
<html lang="en">
<head>
{% include "head.html" %}
- <link rel="preload" href="/static/RoundHog.woff2" as="font" type="font/woff2"
- crossorigin="anonymous">
- <link rel="preload" href="/static/RoundHog-SemiBold.woff2" as="font" type="font/woff2"
- crossorigin="anonymous">
<style>
- /* RoundHog; bold (800); latin */
- @font-face {
- font-family: RoundHog;
- font-style: normal;
- font-weight: 800;
-
- src: url('/static/RoundHog-Bold.woff2') format('woff2');
- font-display: swap;
- }
-
- /* RoundHog; semibold (700); latin */
- @font-face {
- font-family: RoundHog;
- font-style: normal;
- font-weight: 700;
-
- src: url('/static/RoundHog-SemiBold.woff2') format('woff2');
- font-display: swap;
- }
-
- /* RoundHog; medium (500); latin */
- @font-face {
- font-family: RoundHog;
- font-style: normal;
- font-weight: 500;
-
- src: url('/static/RoundHog-Medium.woff2') format('woff2');
- font-display: swap;
- }
-
- /* RoundHog; regular (400); latin */
- @font-face {
- font-family: RoundHog;
- font-style: normal;
- font-weight: 400;
-
- src: url('/static/RoundHog.woff2') format('woff2');
- font-display: swap;
- }
-
html, body, iframe {
- font-family: "RoundHog", -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica, sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica, sans-serif;
width: 100%;
height: 100%;
margin: 0;