Clone in a terminal:
styles.css
src/ - text file - View file history
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: #1f2937;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 30px;
}

.page-header {
  margin-bottom: 28px;
}

.page-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 8px 0 0;
  color: #64748b;
}

.eyebrow {
  margin: 0 0 6px !important;
  color: #2563eb !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-form,
.request-picker {
  display: grid;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px 25px 18px 26px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.request-list {
  display: grid;
  gap: 12px;
  padding-right: 15px;
}

.request-card {
  display: grid;
  justify-self: stretch;
  gap: 5px;
  width: 100%;
  padding: 16px;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.request-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.request-card-name {
  font-weight: 700;
}

.request-card-details {
  color: #64748b;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.request-card-details strong {
  color: #2563eb;
  margin-right: 6px;
}

.field {
  display: grid;
  gap: 7px;
}

#body-field[hidden] {
  display: none;
}

.field label,
.field-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.header-list {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

#header-list:empty,
#header-list[hidden] {
  display: none;
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.header-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.header-row > button {
  margin: 0 0 1px;
}

.header-enabled {
  appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0 0 11px;
  padding: 0;
  cursor: pointer;
  place-content: center;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 4px;
}

.header-enabled:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.header-enabled:checked::after {
  width: 4px;
  height: 8px;
  content: "";
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.header-enabled:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.header-row:has(.header-enabled:not(:checked)) .header-fields input {
  color: #64748b;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.header-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
}

.header-fields > div {
  display: grid;
  gap: 6px;
}

.field small {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

input,
select,
textarea,
button {
  box-sizing: border-box;
  border-radius: 7px;
  font: inherit;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  outline: none;
}

#method-input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

textarea {
  min-height: 160px;
  resize: vertical;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
  justify-self: start;
  cursor: pointer;
  padding: 10px 16px;
  color: #ffffff;
  background: #2563eb;
  border: 1px solid #2563eb;
  font-weight: 600;
}

button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.button-secondary {
  color: #1e3a8a;
  background: #ffffff;
  border-color: #93c5fd;
}

.button-secondary:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.button-danger {
  color: #b91c1c;
  background: #ffffff;
  border-color: #fecaca;
}

.button-danger:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.leave-dialog {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
}

.leave-dialog[hidden] {
  display: none;
}

.leave-dialog-panel {
  width: min(100%, 440px);
  padding: 28px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.leave-dialog-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.leave-dialog-panel > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.project-folder-field {
  margin-top: 20px;
}

.project-folder-input {
  display: flex;
  gap: 12px;
}

.project-folder-input input {
  min-width: 0;
}

.project-folder-input button {
  flex: 0 0 auto;
  white-space: nowrap;
}

#project-folder-error {
  margin: 16px 0 0;
  color: #ffffff;
}

#project-folder-error[hidden] {
  display: none;
}

.leave-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.request-status {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin: 16px 0 0;
  padding: 10px 14px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.request-status:empty {
  display: none;
}

.request-status-success {
  color: #ffffff;
  background: #16a34a;
  font-weight: 700;
  border-color: #16a34a;
}

.request-url {
  margin: 8px 0 0;
  color: #64748b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.request-url:empty {
  display: none;
}

.request-status-failed {
  color: #ffffff;
  background: #dc2626;
  font-weight: 700;
  border-color: #dc2626;
}

.request-response {
  margin-top: 12px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.request-response[hidden] {
  display: none;
}

.request-response-empty {
  visibility: hidden;
}

.response-headers-toggle {
  margin: 14px 14px 0;
}

.response-headers {
  margin: 12px 14px 0;
  padding: 12px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.response-headers[hidden] {
  display: none;
}

#request-result {
  box-sizing: border-box;
  margin: 0;
  padding: 14px;
  color: #334155;
  background: #eef2f7;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e2e8f0;
    background: #111827;
  }

  .page-header p,
  .field small,
  .request-card-details {
    color: #94a3b8;
  }

  .request-status {
    color: #94a3b8;
    background: #182233;
    border-color: #334155;
  }

  .request-status-success {
    color: #ffffff;
    background: #16a34a;
    border-color: #16a34a;
  }

  .request-url {
    color: #94a3b8;
  }

  .request-status-failed {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
  }

  .request-form,
  .request-picker {
    background: #1f2937;
    border-color: #334155;
    box-shadow: none;
  }

  .request-card,
  .header-list {
    background: #182233;
    border-color: #334155;
  }

  .request-card {
    color: #e2e8f0;
  }

  .request-card:hover,
  .button-secondary:hover {
    background: #1e3a5f;
  }

  input,
  select,
  textarea {
    color: inherit;
    background: #111827;
    border-color: #475569;
  }

  .header-row {
    border-color: #334155;
  }

  .header-enabled {
    background: #1f2937;
    border-color: #3b82f6;
  }

  .header-row:has(.header-enabled:not(:checked)) .header-fields input {
    color: #94a3b8;
    background: #263445;
    border-color: #475569;
  }

  .button-secondary {
    color: #bfdbfe;
    background: #1f2937;
    border-color: #3b82f6;
  }

  .leave-dialog-panel {
    color: #e2e8f0;
    background: #1f2937;
    border-color: #334155;
  }

  .leave-dialog-panel > p:not(.eyebrow) {
    color: #94a3b8;
  }

  .request-response,
  #request-result {
    color: #cbd5e1;
    background: #111827;
    border-color: #334155;
  }

  .response-headers {
    color: #cbd5e1;
    background: #1f2937;
    border-color: #334155;
  }

  button {
    background: #1d4ed8;
    border-color: #1d4ed8;
  }

  button:hover {
    background: #2563eb;
    border-color: #2563eb;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 32px 16px;
  }

  .page-header-split {
    display: grid;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .project-folder-input {
    align-items: stretch;
    flex-direction: column;
  }

  .project-folder-input button {
    width: 100%;
  }

  .request-form {
    padding: 0 20px;
  }

  .request-picker {
    padding-inline: 20px;
  }

  .header-fields {
    grid-template-columns: 1fr;
  }
}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112