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.

1.3 KB
Raw Blame
.LemonIcon {
    display: inline-block;
    width: 1em;
    vertical-align: -0.15em; // -0.15em ensures vertical centering in inline contexts
}

// Insight type icon palette (the IconInsight* glyphs in icons.tsx). Light mode uses the
// charts' real series hexes; dark mode brightens them, since the chart hexes are too dark
// to read at icon size on dark surfaces. The plain declarations double as the fallback for
// browsers without light-dark().
:root {
    --insight-icon-blue: #1d4aff; // --data-color-1
    --insight-icon-purple: #7f26d9; // --data-color-2 (dark variant, the more vivid purple)
    --insight-icon-green: #42827e; // --data-color-3
    --insight-icon-lifecycle-returning: #388600; // --color-lifecycle-returning
    --insight-icon-lifecycle-dormant: #db3707; // --color-lifecycle-dormant
    --insight-icon-lifecycle-resurrecting: #a56eff; // --color-lifecycle-resurrecting, bright enough for both modes
}

@supports (color: light-dark(#000, #fff)) {
    :root {
        --insight-icon-blue: light-dark(#1d4aff, #5c7aff);
        --insight-icon-purple: light-dark(#7f26d9, #a56eff);
        --insight-icon-green: light-dark(#42827e, #58b5ad);
        --insight-icon-lifecycle-returning: light-dark(#388600, #7bbc4e);
        --insight-icon-lifecycle-dormant: light-dark(#db3707, #f95e2f);
    }
}