The Open Standard for Generative UI
.chip {
display: inline-flex;
min-height: 0;
flex-shrink: 0;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem 0.5rem 0.5rem;
border: 1px solid var(--openui-border-default);
border-radius: var(--openui-radius-full);
background: var(--openui-foreground);
}
/* Denser chip for the embedded compatibility band (mobile). */
@media (max-width: 767px) {
.chipDense {
padding: 0.3125rem 0.625rem 0.3125rem 0.3125rem;
gap: 0.375rem;
}
.chipDense .badge {
width: 20px;
height: 20px;
}
.chipDense .chipLabel {
font-size: 0.8125rem;
line-height: 20px;
}
}
.chipBlurred {
opacity: 0.52;
filter: blur(2px);
pointer-events: none;
user-select: none;
-webkit-mask-image: linear-gradient(90deg, #000 45%, rgb(0 0 0 / 0.08) 100%);
mask-image: linear-gradient(90deg, #000 45%, rgb(0 0 0 / 0.08) 100%);
}
.badge {
display: flex;
height: 1.625rem;
width: 1.625rem;
flex-shrink: 0;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: var(--openui-radius-full);
}
.badgeOpenUi {
background: var(--openui-highlight-strong);
color: var(--openui-text-neutral-primary);
}
.badgeWhite {
background: var(--openui-text-white);
}
.badgeBlack {
background: var(--openui-text-black);
}
/* On a dark page a black badge is the same colour as the ground behind it, so
the circle disappears and the mark floats. The rim gives it its edge back.
Light pages need nothing: the black circle is its own edge there. */
[data-theme="dark"] .badgeBlack {
border: 1px solid rgb(255 255 255 / 0.22);
}
.badgeAnthropic {
background: #d4a574;
}
.badgeMistral {
background: #ff7000;
}
.badgeDeepSeek {
background: #4d6bfe;
}
.badgeLangChain {
background: #1c3144;
}
.badgeCrewAi {
background: #ff4b4b;
}
.badgeGoogle {
background: #4285f4;
}
.badgeMaterial {
background: #a485ff;
}
.badgeDaisyUi {
background: #1ad1a5;
}
.badgeConvex {
background: #ee342f;
}
.badgeCloudflare {
background: #f38020;
}
.badgeMui {
background: #007fff;
}
.badgeAntDesign {
background: #0170fe;
}
.badgeChakra {
background: #319795;
}
.badgeMantine {
background: #339af0;
}
.badgeNuxt {
background: #00dc82;
}
.badgeBaseUi {
background: var(--openui-highlight-strong);
}
.badgeMore {
background: var(--openui-highlight-subtle);
}
.badgeWithBorder {
border: 1px solid var(--openui-border-interactive);
}
.badgeImage,
.iconSvg {
display: block;
height: 1rem;
width: 1rem;
object-fit: contain;
}
/* The local DeepSeek mark carries no fill of its own, so it paints black.
Invert it to white, which is what reads on the blue badge. */
.badgeImage[src*="deepseek"] {
filter: invert(1);
}
/* The xAI mark is a small wordmark; shrink + invert it to read on the dark badge. */
.badgeImage[src*="xai"] {
width: 12px;
height: 12px;
filter: invert(1) brightness(2);
}
.mascotSvg {
display: block;
height: 1rem;
width: 1rem;
transform: rotate(-16.49deg);
}
.moreIcon {
font-family: "Inter", sans-serif;
font-size: 1rem;
font-weight: 600;
line-height: 1;
color: var(--openui-text-neutral-tertiary);
}
.badgeText {
font-family: "Inter", sans-serif;
font-size: 0.75rem;
font-weight: 700;
line-height: 1;
color: var(--openui-text-neutral-primary);
}
.chipLabel {
font-family: "Inter", sans-serif;
font-size: 0.95rem;
font-weight: 500;
line-height: 26px;
white-space: nowrap;
color: var(--openui-text-neutral-primary);
}
/* Logo-only variant for diagrams; regular chips keep their existing sizing.
Block-level, unlike the inline-flex chip: an inline box is aligned on the
line's baseline, and a badge holding text rather than an image gets a
different baseline, so it sat a couple of pixels lower than its neighbours. */
.chipIconOnly {
display: flex;
width: var(--stack-logo-size, 44px);
height: var(--stack-logo-size, 44px);
padding: 0;
border: 0;
background: transparent;
}
.chipIconOnly .badge {
width: var(--stack-logo-size, 44px);
height: var(--stack-logo-size, 44px);
}
/* The glyph tracks the badge so callers can resize the whole logo with one var. */
.chipIconOnly .badgeImage,
.chipIconOnly .iconSvg,
.chipIconOnly .mascotSvg {
width: var(--stack-logo-glyph, 24px);
height: var(--stack-logo-glyph, 24px);
}
/* Shiro is line art rather than a solid mark, so at the shared size it reads
smaller than the rest. Only the glyph grows; the badge is unchanged. */
.chipIconOnly .mascotSvg {
width: calc(var(--stack-logo-glyph, 24px) * 1.45);
height: calc(var(--stack-logo-glyph, 24px) * 1.45);
}
/* Same for the OpenAI rosette: fine, open line work that reads small next to
the solid marks around it. Scoped to the icon-only variant, so the regular
chips elsewhere keep their sizing. */
.chipIconOnly .badgeImage[src*="openai"] {
width: calc(var(--stack-logo-glyph, 24px) * 1.25);
height: calc(var(--stack-logo-glyph, 24px) * 1.25);
}
.chipIconOnly .badgeImage[src*="xai"] {
width: calc(var(--stack-logo-glyph, 24px) * 0.8);
height: calc(var(--stack-logo-glyph, 24px) * 0.8);
}
.chipIconOnly .badgeText,
.chipIconOnly .moreIcon {
font-size: calc(var(--stack-logo-glyph, 24px) * 0.82);
}
.chipIconOnly .badgeBlack .badgeText {
color: var(--openui-text-white);
}
.chipIconOnly .chipLabel {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}