: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
// highlight.js token styles — light theme (VS Code light palette)
.hljs-comment,
.hljs-quote {
color: rgb(0 128 0);
}
.hljs-keyword,
.hljs-selector-tag {
color: rgb(0 0 255);
}
.hljs-built_in {
color: rgb(0 112 193);
}
.hljs-tag {
color: rgb(128 0 0);
}
.hljs-attr,
.hljs-attribute {
color: rgb(255 0 0);
}
.hljs-number {
color: rgb(9 134 88);
}
.hljs-literal,
.hljs-variable.constant_ {
color: rgb(129 31 63);
}
.hljs-title,
.hljs-title.function_ {
color: rgb(0 0 255);
}
.hljs-title.class_,
.hljs-class .hljs-title {
color: rgb(38 127 153);
}
.hljs-string,
.hljs-deletion {
color: rgb(163 21 21);
}
.hljs-variable,
.hljs-template-variable,
.hljs-addition {
color: rgb(9 134 88);
}
.hljs-operator,
.hljs-punctuation {
color: rgb(0 0 0);
}
.hljs-strong {
font-weight: bold;
}
.hljs-emphasis {
font-style: italic;
}
// Dark theme overrides
.hljs-dark,
[theme='dark'] .hljs {
color: rgb(212 212 212);
.hljs-comment,
.hljs-quote {
color: rgb(124 166 104);
}
.hljs-keyword,
.hljs-built_in {
color: rgb(86 156 214);
}
.hljs-tag,
.hljs-type {
color: rgb(78 201 176);
}
.hljs-title.class_,
.hljs-class .hljs-title {
color: rgb(78 201 176);
}
.hljs-literal,
.hljs-variable.constant_ {
color: rgb(197 134 192);
}
.hljs-number,
.hljs-addition {
color: rgb(181 206 168);
}
.hljs-selector-tag,
.hljs-selector-class {
color: rgb(215 186 125);
}
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-variable,
.hljs-template-variable {
color: rgb(156 220 254);
}
.hljs-string,
.hljs-deletion {
color: rgb(206 145 120);
}
.hljs-title,
.hljs-title.function_ {
color: rgb(220 220 170);
}
.hljs-operator,
.hljs-punctuation {
color: rgb(212 212 212);
}
.hljs-strong {
font-weight: bold;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-meta {
color: rgb(156 220 254);
}
}
.CodeSnippet {
position: relative;
font-size: 0.875rem;
&.CodeSnippet--compact {
font-size: 0.8125rem;
.CodeSnippet__actions {
top: 0.375rem;
right: 0.375rem;
}
pre {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}
}
.CodeSnippet__actions {
position: absolute;
top: 0.75rem;
right: 0.5rem;
display: flex;
gap: 0.5rem;
background: var(--color-bg-surface-primary) !important; // so that you can see button when over unwrapped text
}
pre {
padding: 0.75rem 1rem;
background: var(--color-bg-surface-primary) !important;
border: solid 1px var(--color-border-primary) !important;
border-radius: var(--radius) !important;
}
}