refactor(ui): normalize Tailwind design tokens

This commit is contained in:
ZTatman 2026-05-26 22:04:45 -04:00
parent 1aad1fb7d6
commit 4d83050b05
5 changed files with 301 additions and 310 deletions

View file

@ -97,3 +97,9 @@ This file is the single source of truth for codebase obstacles, oddities, and th
**Obstacle:** Existing boilerplate used dark-mode pink tokens that conflicted with the attached "Mystique Minimalist Security" design system.
**Solution/Workaround:** Use light Geist/JetBrains Mono typography, glacier-blue primary actions, white/off-white tonal surfaces, hairline slate borders, compact labels, mono technical strings, and pill status badges.
**Preference:** Keep visual changes in Tailwind tokens and boilerplate templates; avoid backend route changes for design-only updates.
### Tailwind design tokens should use paired semantic roles
**Area:** web/app/static/css/input.css, web/app/templates/*.html
**Obstacle:** Early UI templates mixed old role names (`background-*`, `text-*`, `stroke`) and hardcoded `white` values inside component classes, which made dark mode and future theming brittle.
**Solution/Workaround:** Use Tailwind v4 `@theme` tokens with semantic pairs such as `background/foreground`, `card/card-foreground`, `primary/primary-foreground`, `secondary/secondary-foreground`, `border`, `input`, and `ring`. Keep shared component structure in base classes like `.btn`, with variant classes only setting semantic colors.
**Preference:** Prefer semantic token names over appearance-based names; add dark mode by overriding CSS variables under `.dark`.

View file

@ -1,200 +1,194 @@
@import "tailwindcss";
/*
Design token usage guide
Color roles and recommended HTML usage:
background-base
- Use on <body>, main page containers, and outer layout panels.
- Example: page canvas, app shell background.
background-bright
- Use on elevated surfaces such as headers, cards, modals, and top bars.
- Example: <header>, <section>, and card containers.
background-secondary
- Use for subtle accent surfaces like tags, inline code pills, badge backgrounds.
- Example: <code>, status pills, inline labels.
background-muted
- Use on grouping surfaces and lightly separated table or form sections.
- Example: table header rows, section footers, secondary panels.
background-hover
- Use for hover/focus backgrounds on secondary interactive elements.
- Example: nav links, secondary buttons, list item hover states.
primary
- Use for the strongest action and brand accent.
- Example: primary buttons, active links, important badges.
primary-hover
- Use for hover state on primary actions.
- Example: hover state for .btn-primary.
primary-muted
- Use for soft focus rings, overlays, and low-contrast primary accents.
- Example: focus outlines, active ring shadows.
foreground
- Use for main readable text.
- Example: <h1>, <p>, <button>, <label> primary copy.
text-secondary
- Use for supporting text and secondary copy.
- Example: help text, paragraph subtitles, nav links.
text-tertiary
- Use for labels, metadata, captions, and subtle UI hints.
- Example: timestamps, table captions, badge text.
stroke
- Use for standard borders and dividers.
- Example: card borders, section separators, input outlines.
stroke-subtle
- Use for very soft borders or low-priority dividers.
- Example: muted form separators, background grid lines.
outline
- Use for interactive emphasis around controls.
- Example: focus states, hover border highlights.
success / warning / danger
- Use only for semantic feedback states.
- Example: status badges, alerts, validation states.
Best practice:
Use these tokens by semantic purpose, not by appearance alone.
Don’t use primary for neutral surfaces; reserve it for actions,
links, and important accents. Keep foreground text for main content,
text-secondary for supporting copy, and text-tertiary for labels.
*/
@theme {
--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
--color-background: #f8f9ff;
--color-background-base: #f8f9ff;
--color-background-bright: #ffffff;
--color-background-secondary: #eff4ff;
--color-background-raised: #e5eeff;
--color-background-muted: #f8fafc;
--color-background-hover: #f1f5f9;
--color-primary: #006591;
--color-primary-hover: #004c6e;
--color-primary-container: #0ea5e9;
--color-primary-muted: rgba(0, 101, 145, 0.12);
--color-foreground: #0b1c30;
--color-text-secondary: #3e4850;
--color-text-tertiary: #57657a;
--color-stroke: #e2e8f0;
--color-stroke-subtle: #f1f5f9;
--color-outline: #6e7881;
--color-success: #15803d;
--color-surface-success: #dcfce7;
--color-warning: #b45309;
--color-surface-warning: #fef3c7;
--color-danger: #ba1a1a;
--color-surface-danger: #ffdad6;
--color-expired: #6e7881;
--color-surface-expired: #f1f5f9;
--color-background: oklch(98.6% 0.008 255);
--color-foreground: oklch(20.8% 0.04 255);
--radius-sm: 0.125rem;
--radius-md: 0.25rem;
--radius-lg: 0.375rem;
--radius-xl: 0.5rem;
--radius-2xl: 0.75rem;
--color-card: oklch(100% 0 0);
--color-card-foreground: oklch(20.8% 0.04 255);
--color-muted: oklch(96.9% 0.012 255);
--color-muted-foreground: oklch(48.5% 0.03 255);
--color-accent: oklch(94.8% 0.025 255);
--color-accent-foreground: oklch(25.4% 0.045 255);
--color-primary: oklch(45.2% 0.115 235);
--color-primary-foreground: oklch(100% 0 0);
--color-primary-hover: oklch(37.8% 0.098 235);
--color-primary-muted: oklch(45.2% 0.115 235 / 12%);
--color-secondary: oklch(94.8% 0.025 255);
--color-secondary-foreground: oklch(34.5% 0.04 255);
--color-border: oklch(91.9% 0.016 255);
--color-border-subtle: oklch(96.8% 0.01 255);
--color-input: oklch(100% 0 0);
--color-ring: oklch(45.2% 0.115 235);
--color-ring-muted: oklch(45.2% 0.115 235 / 12%);
--color-success: oklch(47.8% 0.13 150);
--color-success-foreground: oklch(47.8% 0.13 150);
--color-success-muted: oklch(94.8% 0.055 150);
--color-warning: oklch(54.7% 0.13 65);
--color-warning-foreground: oklch(54.7% 0.13 65);
--color-warning-muted: oklch(96.3% 0.052 85);
--color-danger: oklch(50.6% 0.18 27);
--color-danger-foreground: oklch(50.6% 0.18 27);
--color-danger-muted: oklch(93.6% 0.04 27);
--color-expired: oklch(55.8% 0.025 255);
--color-expired-foreground: oklch(55.8% 0.025 255);
--color-expired-muted: oklch(96.8% 0.01 255);
--radius-sm: 0.125rem;
--radius-md: 0.25rem;
--radius-lg: 0.375rem;
--radius-xl: 0.5rem;
--radius-2xl: 0.75rem;
}
@custom-variant dark (&:where(.dark, .dark *));
.dark {
--color-background: oklch(18.4% 0.035 255);
--color-foreground: oklch(96.5% 0.012 255);
--color-card: oklch(22.8% 0.035 255);
--color-card-foreground: oklch(96.5% 0.012 255);
--color-muted: oklch(27% 0.032 255);
--color-muted-foreground: oklch(72% 0.025 255);
--color-accent: oklch(30.8% 0.04 255);
--color-accent-foreground: oklch(96.5% 0.012 255);
--color-primary: oklch(72% 0.125 235);
--color-primary-foreground: oklch(16% 0.03 255);
--color-primary-hover: oklch(78% 0.115 235);
--color-primary-muted: oklch(72% 0.125 235 / 18%);
--color-secondary: oklch(30.8% 0.04 255);
--color-secondary-foreground: oklch(90% 0.018 255);
--color-border: oklch(34% 0.035 255);
--color-border-subtle: oklch(29% 0.03 255);
--color-input: oklch(22.8% 0.035 255);
--color-ring: oklch(72% 0.125 235);
--color-ring-muted: oklch(72% 0.125 235 / 20%);
--color-success: oklch(75% 0.12 150);
--color-success-foreground: oklch(82% 0.12 150);
--color-success-muted: oklch(32% 0.07 150);
--color-warning: oklch(82% 0.13 75);
--color-warning-foreground: oklch(86% 0.13 75);
--color-warning-muted: oklch(35% 0.075 75);
--color-danger: oklch(76% 0.15 27);
--color-danger-foreground: oklch(82% 0.13 27);
--color-danger-muted: oklch(34% 0.08 27);
--color-expired: oklch(74% 0.025 255);
--color-expired-foreground: oklch(78% 0.025 255);
--color-expired-muted: oklch(30% 0.03 255);
}
@layer base {
html {
background: #f8f9ff;
color: #0b1c30;
font-family: var(--font-sans);
}
* {
@apply border-border;
}
body {
letter-spacing: 0;
}
html {
@apply bg-background text-foreground;
font-family: var(--font-sans);
}
a,
button,
input {
outline-color: var(--color-primary);
}
body {
@apply bg-background text-foreground antialiased;
letter-spacing: 0;
}
code {
font-family: var(--font-mono);
}
code {
font-family: var(--font-mono);
}
}
@layer components {
/* Section labels */
.section-header-primary {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-primary;
}
.btn {
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
.section-header-subtle {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-text-tertiary;
}
.btn-sm {
@apply px-3 py-2;
}
/* Buttons */
.btn-primary {
@apply rounded-md bg-primary px-4 py-2.5 text-sm font-medium text-white transition hover:bg-primary-hover focus:ring-2 focus:ring-primary-muted;
}
.btn-primary {
@apply bg-primary text-primary-foreground hover:bg-primary-hover;
}
.btn-secondary {
@apply px-3 py-2 text-sm font-medium transition bg-white border rounded-md border-stroke text-text-secondary hover:border-outline hover:text-foreground;
}
.btn-secondary {
@apply border border-border bg-card text-secondary-foreground hover:border-ring hover:bg-accent hover:text-accent-foreground;
}
.btn-nav {
@apply px-3 py-2 text-sm font-medium transition rounded-md text-text-secondary hover:bg-background-hover hover:text-foreground;
}
.btn-nav {
@apply text-muted-foreground hover:bg-accent hover:text-accent-foreground;
}
/* Status badges */
.badge-success {
@apply rounded-full px-2.5 py-1 text-xs font-medium bg-surface-success text-success;
}
.section-header-primary {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-primary;
}
.badge-warning {
@apply rounded-full px-2.5 py-1 text-xs font-medium bg-surface-warning text-warning;
}
.section-header-subtle {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.badge-danger {
@apply rounded-full px-2.5 py-1 text-xs font-medium bg-surface-danger text-danger;
}
.badge {
@apply rounded-full px-2.5 py-1 text-xs font-medium;
}
.badge-expired {
@apply rounded-full px-2.5 py-1 text-xs font-medium bg-surface-expired text-expired;
}
.badge-success {
@apply rounded-full bg-success-muted px-2.5 py-1 text-xs font-medium text-success-foreground;
}
/* Cards */
.card {
@apply bg-white border rounded-lg border-stroke;
}
.badge-warning {
@apply rounded-full bg-warning-muted px-2.5 py-1 text-xs font-medium text-warning-foreground;
}
.card-header {
@apply px-4 py-3 border-b border-stroke;
}
.badge-danger {
@apply rounded-full bg-danger-muted px-2.5 py-1 text-xs font-medium text-danger-foreground;
}
.card-header-label {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-text-tertiary;
}
.badge-expired {
@apply rounded-full bg-expired-muted px-2.5 py-1 text-xs font-medium text-expired-foreground;
}
.card-header-title {
@apply mt-1 text-base font-semibold text-foreground;
}
.card {
@apply rounded-lg border border-border bg-card text-card-foreground;
}
.card-body {
@apply px-4 py-4;
}
.card-header {
@apply border-b border-border px-4 py-3;
}
/* Form inputs */
.input-mono {
@apply px-3 py-2 text-sm transition bg-white border rounded-md border-stroke placeholder:text-text-tertiary focus:border-primary focus:ring-2 focus:ring-primary-muted font-mono text-[13px] leading-5;
}
.card-header-label {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.card-header-title {
@apply mt-1 text-base font-semibold text-card-foreground;
}
.card-body {
@apply px-4 py-4;
}
.input-mono {
@apply rounded-md border border-border bg-input px-3 py-2 font-mono text-[13px] leading-5 text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
}
}

View file

@ -1,54 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
{% block title %}Myst{% endblock %}
</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="/static/css/output.css" />
<script src="https://unpkg.com/htmx.org@2"></script>
</head>
<body class="min-h-screen text-sm antialiased bg-background-base text-foreground">
<header class="border-b-2 border-stroke bg-background-bright">
<div class="flex items-center justify-between px-4 py-3 mx-auto max-w-7xl sm:px-8">
<a href="/"
class="flex items-center gap-2 text-base font-semibold tracking-normal transition text-foreground hover:text-primary">
<span
class="grid text-xs font-semibold text-white border rounded-md size-7 place-items-center border-primary/20 bg-primary">M</span>
<span>Myst</span>
</a>
<nav class="flex items-center gap-2">
{% if user %}
<a href="/dashboard" class="btn-nav">Dashboard</a>
<a href="/auth/logout" class="btn-secondary">Logout</a>
{% else %}
<a href="/auth/login/forgejo" class="inline-flex items-center gap-2 btn-primary">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg" alt="" width="16"
height="16" class="size-4 shrink-0 brightness-0 invert" aria-hidden="true" />
<span>Sign in with Forgejo</span>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
{% block title %}Myst{% endblock %}
</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="/static/css/output.css" />
<script src="https://unpkg.com/htmx.org@2"></script>
</head>
<body class="min-h-screen bg-background text-sm text-foreground antialiased">
<header class="border-b-2 border-border bg-card">
<div class="flex items-center justify-between px-4 py-3 mx-auto max-w-7xl sm:px-8">
<a href="/"
class="flex items-center gap-2 text-base font-semibold tracking-normal transition text-foreground hover:text-primary">
<span class="grid text-xs font-semibold border rounded-md size-7 place-items-center border-primary/20 bg-primary text-primary-foreground">M</span>
<span>Myst</span>
</a>
{% endif %}
</nav>
</div>
</header>
<main class="px-4 py-8 mx-auto max-w-7xl sm:px-8">
{% block content %}{% endblock %}
</main>
<!-- <footer class="border-t-2 border-stroke bg-primary text-white">
<div class="flex flex-col items-center gap-4 px-4 py-6 mx-auto max-w-7xl sm:px-8">
<p class="text-xs text-text-secondary">
© 2026 Myst. All rights reserved.
</p>
</div>
</footer> -->
</body>
</html>
<nav class="flex items-center gap-2">
{% if user %}
<a href="/dashboard" class="btn btn-sm btn-nav">Dashboard</a>
<a href="/auth/logout" class="btn btn-sm btn-secondary">Logout</a>
{% else %}
<a href="/auth/login/forgejo" class="btn btn-sm btn-primary">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4 shrink-0 brightness-0 invert dark:invert-0"
aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}
</nav>
</div>
</header>
<main class="px-4 py-8 mx-auto max-w-7xl sm:px-8">
{% block content %}{% endblock %}
</main>
</body>
</html>

View file

@ -1,80 +1,79 @@
{% extends "base.html" %}
{% block title %}Dashboard — Myst{% endblock %}
{% block content %}
<div class="flex flex-col gap-6">
<section class="flex flex-col justify-between gap-4 pb-6 border-b border-stroke sm:flex-row sm:items-end">
<div>
<h1 class="mt-2 text-3xl font-semibold leading-10 tracking-normal text-foreground">Dashboard</h1>
<p class="mt-1 text-sm text-text-secondary">Welcome, {{ user.display_name or user.email }}.</p>
</div>
<a href="/links/create" class="w-fit btn-primary">
Create share link
</a>
</section>
<section class="grid gap-4 md:grid-cols-3">
<div class="p-4 card">
<p class="section-header-subtle">Active links</p>
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
<p class="mt-2 text-xs text-text-tertiary">No repository snapshots published yet.</p>
</div>
<div class="p-4 card">
<p class="section-header-subtle">Default expiry</p>
<p class="mt-3 text-2xl font-semibold text-foreground">7 days</p>
<p class="mt-2 text-xs text-text-tertiary">Applied to newly created links.</p>
</div>
<div class="p-4 card">
<p class="section-header-subtle">Audit events</p>
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
<p class="mt-2 text-xs text-text-tertiary">Viewer activity will appear here.</p>
</div>
</section>
<section class="card">
<div class="card-header">
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
<p class="mt-2 text-sm text-text-secondary">
Register a <code
class="rounded-sm bg-background-secondary px-1.5 py-0.5 text-primary">read:repository</code>-scoped PAT
to enable share link viewing.
</p>
</div>
<form method="post" class="grid gap-4 px-4 py-4 sm:grid-cols-[1fr_auto] sm:items-end">
<div class="flex flex-col gap-6">
<section class="flex flex-col justify-between gap-4 pb-6 border-b border-border sm:flex-row sm:items-end">
<div>
<label for="pat" class="section-header-subtle">
Forgejo access token
</label>
<input type="text" id="pat" name="pat" class="block w-full mt-2 input-mono" placeholder="ad8j3..." required />
<h1 class="mt-2 text-3xl font-semibold leading-10 tracking-normal text-foreground">Dashboard</h1>
<p class="mt-1 text-sm text-muted-foreground">Welcome, {{ user.display_name or user.email }}.</p>
</div>
<button type="submit" class="px-4 py-2 btn-primary">
Register
</button>
</form>
</section>
<section class="card">
<div class="flex items-center justify-between card-header">
<div>
<h2 class="text-base font-semibold text-foreground">Share links</h2>
<p class="mt-1 text-sm text-text-secondary">Repository snapshots published from this account.</p>
<a href="/links/create" class="btn btn-primary w-fit">Create share link</a>
</section>
<section class="grid gap-4 md:grid-cols-3">
<div class="p-4 card">
<p class="section-header-subtle">Active links</p>
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
<p class="mt-2 text-xs text-muted-foreground">No repository snapshots published yet.</p>
</div>
<span class="rounded-full bg-background-secondary px-2.5 py-1 text-xs font-medium text-text-tertiary">Empty</span>
</div>
<div class="overflow-x-auto">
<table class="w-full min-w-[720px] text-left text-sm">
<thead class="bg-background-muted text-xs font-semibold uppercase tracking-[0.05em] text-text-tertiary">
<tr>
<th class="px-4 py-3">Repository</th>
<th class="px-4 py-3">Commit</th>
<th class="px-4 py-3">Status</th>
<th class="px-4 py-3">Views</th>
<th class="px-4 py-3">Expires</th>
</tr>
</thead>
<tbody class="divide-y divide-border-light">
<tr class="text-text-secondary">
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
{% endblock %}
<div class="p-4 card">
<p class="section-header-subtle">Default expiry</p>
<p class="mt-3 text-2xl font-semibold text-foreground">7 days</p>
<p class="mt-2 text-xs text-muted-foreground">Applied to newly created links.</p>
</div>
<div class="p-4 card">
<p class="section-header-subtle">Audit events</p>
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
<p class="mt-2 text-xs text-muted-foreground">Viewer activity will appear here.</p>
</div>
</section>
<section class="card">
<div class="card-header">
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
<p class="mt-2 text-sm text-muted-foreground">
Register a <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-primary">read:repository</code>-scoped PAT
to enable share link viewing.
</p>
</div>
<form method="post"
class="grid gap-4 px-4 py-4 sm:grid-cols-[1fr_auto] sm:items-end">
<div>
<label for="pat" class="section-header-subtle">Forgejo access token</label>
<input type="text"
id="pat"
name="pat"
class="block w-full mt-2 input-mono"
placeholder="ad8j3..."
required />
</div>
<button type="submit" class="btn btn-primary">Register</button>
</form>
</section>
<section class="card">
<div class="flex items-center justify-between card-header">
<div>
<h2 class="text-base font-semibold text-foreground">Share links</h2>
<p class="mt-1 text-sm text-muted-foreground">Repository snapshots published from this account.</p>
</div>
<span class="rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-muted-foreground">Empty</span>
</div>
<div class="overflow-x-auto">
<table class="w-full min-w-[720px] text-left text-sm">
<thead class="bg-muted text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground">
<tr>
<th class="px-4 py-3">Repository</th>
<th class="px-4 py-3">Commit</th>
<th class="px-4 py-3">Status</th>
<th class="px-4 py-3">Views</th>
<th class="px-4 py-3">Expires</th>
</tr>
</thead>
<tbody class="divide-y divide-border-subtle">
<tr class="text-muted-foreground">
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
{% endblock %}

View file

@ -7,26 +7,25 @@
<h1 class="mt-4 text-4xl font-semibold leading-tight tracking-normal text-foreground sm:text-[3.25rem] sm:leading-[1.05]">
Myst
</h1>
<p class="max-w-xl mt-4 text-base leading-7 text-text-secondary">
<p class="max-w-xl mt-4 text-base leading-7 text-muted-foreground">
Share pinned Forgejo repository snapshots through read-only links with expiration,
revocation, and audit visibility built in.
</p>
<div class="flex flex-wrap items-center gap-3 mt-8">
{% if user %}
<a href="/dashboard" class="btn-primary">Open dashboard</a>
<a href="/dashboard" class="btn btn-primary">Open dashboard</a>
{% else %}
<a href="/auth/login/forgejo"
class="inline-flex items-center gap-2 btn-primary">
<a href="/auth/login/forgejo" class="btn btn-primary">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4 shrink-0 brightness-0 invert"
class="size-4 shrink-0 brightness-0 invert dark:invert-0"
aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}
<span class="text-sm text-text-tertiary">Time-limited. Read-only. Auditable.</span>
<span class="text-sm text-muted-foreground">Time-limited. Read-only. Auditable.</span>
</div>
</div>
<div class="card rounded-xl">
@ -39,36 +38,37 @@
<svg xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fill="#000000"
viewBox="0 0 256 256">
viewBox="0 0 256 256"
class="text-muted-foreground"
fill="currentColor">
<path d="M200,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,136Zm32-56H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16Zm-80,96H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z">
</path>
</svg>
</span>
</div>
<div>
<div class="flex justify-between items-center px-4 py-3 border-b border-stroke">
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">infra/deployment</p>
<p class="mt-1 text-xs text-text-tertiary">Pinned commit 9f2a1c8 · expires in 7 days</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit 9f2a1c8 · expires in 7 days</p>
</div>
<div class="place-content-center">
<span class="self-start badge-success">Active</span>
</div>
</div>
<div class="flex justify-between items-center px-4 py-3 border-b border-stroke">
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">audit/policies</p>
<p class="mt-1 text-xs text-text-tertiary">Pinned commit 31e0b77 · revoked yesterday</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit 31e0b77 · revoked yesterday</p>
</div>
<div class="place-content-center">
<span class="self-start badge-danger">Revoked</span>
</div>
</div>
<div class="flex justify-between items-center px-4 py-3 border-b border-stroke">
<div class="flex justify-between items-center px-4 py-3 border-b border-border-subtle">
<div>
<p class="font-mono text-[13px] leading-5 text-foreground">platform/utils</p>
<p class="mt-1 text-xs text-text-tertiary">Pinned commit a81dc40 · 14 views</p>
<p class="mt-1 text-xs text-muted-foreground">Pinned commit a81dc40 · 14 views</p>
</div>
<div class="place-content-center">
<span class="self-start badge-expired">Expired</span>