Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

1.5 KB
Raw Blame
// Paths tagged with this class keep their original dark fill in light mode
// and flip to the theme foreground in dark mode. Older Safari versions can be
// finicky about SVG presentation-attribute inheritance, so we also give the
// class itself an explicit base fill and a prefers-color-scheme fallback.
.themedDark {
  fill: #000000;
}

// Companion class for the rare case where a dark-themed path sits *behind*
// a light-colored element that needs to invert alongside it (e.g. Uber's
// white wordmark that sits on top of a black rounded rectangle).
.themedLight {
  fill: #ffffff;
}

:global(.dark) .themedDark,
:global(html.dark) .themedDark {
  fill: var(--color-fd-foreground);
}

:global(.dark) .themedLight,
:global(html.dark) .themedLight {
  fill: var(--color-fd-background);
}

@media (prefers-color-scheme: dark) {
  :global(html:not(.light)) .themedDark {
    fill: var(--color-fd-foreground);
  }

  :global(html:not(.light)) .themedLight {
    fill: var(--color-fd-background);
  }
}

// Mercedes-Benz is too gradient-heavy (~305k chars of mesh stops) to inline
// by hand. We read the raw SVG at server-render time and swap its inline
// `fill:#131822` wordmark declaration to a CSS variable so it can flip with
// the theme without touching the silver medallion gradient stack.
.benzRoot {
  --benz-wordmark: #131822;
}

:global(.dark) .benzRoot,
:global(html.dark) .benzRoot {
  --benz-wordmark: var(--color-fd-foreground);
}

@media (prefers-color-scheme: dark) {
  :global(html:not(.light)) .benzRoot {
    --benz-wordmark: var(--color-fd-foreground);
  }
}