Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

6.4 KB
Raw Blame
/* Bot creation and editing (kit Bots/). */

/* A rounded input box (`fieldBox`). */
.field-box {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: var(--background);
  border-radius: var(--radius-m);
  color: var(--text);
  user-select: text;
  cursor: text;
}
textarea.field-box {
  line-height: 1.3;
}
/* Like a macOS text field: a ring while it has focus. */
.field-box:focus {
  outline: 2px solid var(--secondary);
}
/* A custom agent's command. */
.bot-command {
  font-size: var(--text-callout);
  font-weight: 400;
  font-family: var(--mono);
}

.bot-form {
  height: 100%;
  overflow-y: auto;
  background: var(--background);
}
.bot-form-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 14px;
  font-size: var(--text-callout);
}
.bot-editor-body {
  flex: 1;
  min-height: 0;
}
.workspace-pill-label {
  max-width: 160px;
}
/* A plugin's switch beside its info button. */
.plugin-toggle {
  flex: 1;
  min-width: 0;
}

/* Fallbacks in the Agent card (Fallbacks.tsx). */
.fallback-switch-back {
  flex: none;
  white-space: nowrap;
}
/* The step the bot is on: the chosen-chip capsule. */
.fallback-chip {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--chip-on);
  box-shadow: var(--chip-shadow);
  white-space: nowrap;
}
.fallback-menu {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-s);
}

.avatar-button {
  padding: 12px;
  background: var(--bubble-agent);
  border-radius: var(--radius-xl);
  display: flex;
}
.avatar-button.small {
  padding: 5px;
  border-radius: var(--radius-s);
}
.avatar-picker-panel {
  padding: 14px;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* Five shapes and six colors to a row, like the new bot sheet. */
.avatar-picker {
  width: 272px;
}

/* A selectable avatar shape or color, ringed when chosen. */
.swatch {
  padding: 4px;
  border-radius: 50%;
  flex: none;
  display: flex;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow var(--hover);
}
.swatch.on {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.swatch-color {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* New bot and new group chat (NewBotView): the face, a centered name, the choices, then the buttons. */
.create-sheet {
  width: 400px;
}
.create-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 24px 20px;
}
.create-name.field-box {
  background: var(--field);
  text-align: center;
  font-size: var(--text-title3);
  padding: 10px 12px;
}
.create-members {
  width: 100%;
}
.create-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 68px;
  padding: 2px 0;
  transition: transform var(--press);
}
.create-member-name {
  max-width: 100%;
}
.create-footer {
  padding: 12px 20px 20px;
}
.import-sheet {
  width: 480px;
  min-height: 0;
}
.import-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px 8px;
}

/* Folder levels slide in from the side they were opened toward. */
.level-slide {
  animation: level-in var(--layout) both;
}
.level-slide.from-trailing {
  --from: 40px;
}
.level-slide.from-leading {
  --from: -40px;
}
@keyframes level-in {
  from {
    opacity: 0;
    transform: translateX(var(--from));
  }
}

/* Create template (BotTemplateView). */
.bot-template {
  width: 560px;
  max-height: 560px;
  background: var(--background);
}
.bot-template-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 20px 20px;
}
.bot-template-code {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-m);
}
.bot-template-code pre {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: var(--text-callout);
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}
.bot-template-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: calc(30px * var(--scale));
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: var(--text-body);
  font-weight: 600;
}

/* Group editor (Grok Bot's group details): identity on top, then a plain member list. */
.group-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.group-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 20px 24px;
}
.group-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.group-name,
.group-about {
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--text);
  resize: none;
}
.group-name {
  font-size: var(--text-title);
  font-weight: 600;
  margin-top: 6px;
}
.group-about {
  font-size: var(--text-body);
  color: var(--secondary);
  line-height: 1.35;
}
.group-name::placeholder,
.group-about::placeholder {
  color: var(--tertiary);
}
.group-search {
  margin: 6px 0;
  background: var(--surface);
}
.group-note {
  padding: 10px 0 0;
}
.group-delete {
  align-self: flex-start;
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--danger);
}
.group-section-title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--secondary);
  padding-bottom: 4px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% + 16px);
  min-height: 48px;
  margin: 0 -8px;
  padding: 4px 8px;
  border-radius: var(--radius-m);
  text-align: left;
  transition: background-color var(--hover), transform var(--press);
}
button.member-row:hover {
  background: var(--bubble-agent);
}
.member-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-add-icon {
  display: grid;
  place-items: center;
  width: 32px;
}

/* A member row that opens the bot's chat, with a remove button shown on hover. */
.member-row.removable:hover {
  background: var(--bubble-agent);
}
.member-open {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  text-align: left;
}
.member-row.removable > :last-child:not(.member-open) {
  opacity: 0;
  transition: opacity var(--hover);
}
.member-row.removable:hover > :last-child,
.member-row.removable:focus-within > :last-child {
  opacity: 1;
}
.workspace-pill {
  gap: 6px;
  color: var(--text);
}