diff --git a/agents.md b/agents.md index 7f6c8b4..5fb03f4 100644 --- a/agents.md +++ b/agents.md @@ -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`. diff --git a/web/app/static/css/input.css b/web/app/static/css/input.css index 802db30..89867a5 100644 --- a/web/app/static/css/input.css +++ b/web/app/static/css/input.css @@ -1,200 +1,194 @@ @import "tailwindcss"; -/* - Design token usage guide - - Color roles and recommended HTML usage: - - background-base - - Use on , 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:
,
, and card containers. - - background-secondary - - Use for subtle accent surfaces like tags, inline code pills, badge backgrounds. - - Example: , 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:

,

,

+
+ {% block content %}{% endblock %} +
+ + diff --git a/web/app/templates/dashboard.html b/web/app/templates/dashboard.html index d93c465..b670ce1 100644 --- a/web/app/templates/dashboard.html +++ b/web/app/templates/dashboard.html @@ -1,80 +1,79 @@ {% extends "base.html" %} {% block title %}Dashboard — Myst{% endblock %} {% block content %} -
-
-
-

Dashboard

-

Welcome, {{ user.display_name or user.email }}.

-
- - Create share link - -
-
-
-

Active links

-

0

-

No repository snapshots published yet.

-
-
-

Default expiry

-

7 days

-

Applied to newly created links.

-
-
-

Audit events

-

0

-

Viewer activity will appear here.

-
-
-
-
-

Forgejo access token

-

- Register a read:repository-scoped PAT - to enable share link viewing. -

-
-
+
+
- - +

Dashboard

+

Welcome, {{ user.display_name or user.email }}.

- - -
-
-
-
-

Share links

-

Repository snapshots published from this account.

+ Create share link +
+
+
+

Active links

+

0

+

No repository snapshots published yet.

- Empty -
-
- - - - - - - - - - - - - - - -
RepositoryCommitStatusViewsExpires
You have not created any share links yet.
-
-
-
-{% endblock %} \ No newline at end of file +
+

Default expiry

+

7 days

+

Applied to newly created links.

+
+
+

Audit events

+

0

+

Viewer activity will appear here.

+
+ +
+
+

Forgejo access token

+

+ Register a read:repository-scoped PAT + to enable share link viewing. +

+
+
+
+ + +
+ +
+
+
+
+
+

Share links

+

Repository snapshots published from this account.

+
+ Empty +
+
+ + + + + + + + + + + + + + + +
RepositoryCommitStatusViewsExpires
You have not created any share links yet.
+
+
+ +{% endblock %} diff --git a/web/app/templates/index.html b/web/app/templates/index.html index 295ff7e..cb18a41 100644 --- a/web/app/templates/index.html +++ b/web/app/templates/index.html @@ -7,26 +7,25 @@

Myst

-

+

Share pinned Forgejo repository snapshots through read-only links with expiration, revocation, and audit visibility built in.

{% if user %} - Open dashboard + Open dashboard {% else %} - + Sign in with Forgejo {% endif %} - Time-limited. Read-only. Auditable. + Time-limited. Read-only. Auditable.
@@ -39,36 +38,37 @@ + viewBox="0 0 256 256" + class="text-muted-foreground" + fill="currentColor">
-
+

infra/deployment

-

Pinned commit 9f2a1c8 · expires in 7 days

+

Pinned commit 9f2a1c8 · expires in 7 days

Active
-
+

audit/policies

-

Pinned commit 31e0b77 · revoked yesterday

+

Pinned commit 31e0b77 · revoked yesterday

Revoked
-
+

platform/utils

-

Pinned commit a81dc40 · 14 views

+

Pinned commit a81dc40 · 14 views

Expired