Skip to content

The Open Standard for Generative UI

1.7 KB
Raw Blame
.clipboardCommandButton {
  font-family: var(--font-geist-mono);
}

.copyIcon {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

.copyIconFrame {
  position: relative;
  display: flex;
  height: 1rem;
  width: 1rem;
  align-items: center;
  justify-content: center;
}

.iconLayer {
  position: absolute;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.iconVisible {
  opacity: 1;
  transform: scale(1);
}

.iconHidden {
  opacity: 0;
  transform: scale(0.5);
}

/* ── PillLink variants ── */

.pillBase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding-inline: 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--openui-radius-full, 999px);
  font-family: "Inter Display", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pillPrimary {
  background: var(--openui-text-neutral-primary);
  color: var(--openui-foreground);
  box-shadow: var(--openui-shadow-l);
}

.pillPrimary:hover {
  box-shadow: none;
}

.pillSecondary {
  background: var(--openui-foreground);
  color: var(--openui-text-neutral-primary);
  border-color: var(--openui-border-default);
  box-shadow: var(--openui-shadow-l);
}

.pillSecondary:hover {
  box-shadow: none;
}

.pillGhost {
  background: transparent;
  color: var(--openui-text-neutral-primary);
  font-weight: 500;
  font-size: 1.125rem;
}

.pillGhost:hover {
  background: var(--openui-highlight);
}

.pillFullWidthMobile {
  width: 100%;
}

@media (min-width: 900px) {
  .pillFullWidthMobile {
    width: auto;
  }
}