Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

style(web): lighten input placeholder text

muterCaaec2645b05d
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index e54836fe..ebcfcd19 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -113,6 +113,9 @@ build:assets` to check the initial JS budget.
`--color-app-*` roles such as `text-app-ink`) instead of hex arbitrary values;
when no token fits, add one to `src/app/visual-theme.css` and the
`@theme inline` block in `src/app/globals.css`.
+- Input hints use `--app-placeholder` / `text-app-placeholder` across native
+ fields, chat composers, select prompts, and editable empty states. Keep
+ entered text and adjacent labels on their own text tokens.
- Compose conditional class names with `cn` from `src/lib/cn.ts`.
- Do not add CSS Modules or feature-level `.css` files, and do not add new hex
colors in TSX. Use inline `style` only for runtime-computed values.
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 4da575e4..f31f3d84 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -10,6 +10,7 @@
--color-app-ink: var(--app-ink);
--color-app-body: var(--app-body);
--color-app-muted: var(--app-muted);
+ --color-app-placeholder: var(--app-placeholder);
--color-app-subtle: var(--app-subtle);
--color-app-border: var(--app-border);
--color-app-border-strong: var(--app-border-strong);
@@ -294,6 +295,12 @@ body {
font: inherit;
}
+ input::placeholder,
+ textarea::placeholder {
+ color: var(--app-placeholder);
+ opacity: 1;
+ }
+
:focus-visible {
outline: 2px solid var(--app-ring);
outline-offset: 1px;
@@ -376,6 +383,13 @@ a[href][aria-disabled="true"],
position: relative;
}
+.bn-container :is(input, textarea)::placeholder,
+.bn-container
+ .bn-block-content:has(.ProseMirror-trailingBreak:only-child)::after {
+ color: var(--app-placeholder);
+ opacity: 1;
+}
+
@layer components {
.ui-field-control {
min-height: 2.25rem;
@@ -2735,8 +2749,8 @@ a[href][aria-disabled="true"],
}
.message-composer-input::placeholder {
- color: var(--app-muted);
- -webkit-text-fill-color: var(--app-muted);
+ color: var(--app-placeholder);
+ -webkit-text-fill-color: var(--app-placeholder);
}
.message-composer-input::selection {
diff --git a/apps/web/src/app/visual-theme.css b/apps/web/src/app/visual-theme.css
index 0f3afc95..1a850436 100644
--- a/apps/web/src/app/visual-theme.css
+++ b/apps/web/src/app/visual-theme.css
@@ -53,6 +53,7 @@
--app-ink: hsl(var(--town-foreground));
--app-body: hsl(var(--town-foreground));
--app-muted: hsl(var(--town-muted-foreground));
+ --app-placeholder: hsl(var(--town-foreground) / 0.4);
--app-subtle: hsl(var(--town-muted-foreground));
--app-border: hsl(var(--town-border));
--app-border-strong: hsl(var(--town-border-hover));
diff --git a/apps/web/src/components/ui/field.tsx b/apps/web/src/components/ui/field.tsx
index 513b42e0..0b9e0bfa 100644
--- a/apps/web/src/components/ui/field.tsx
+++ b/apps/web/src/components/ui/field.tsx
@@ -2,7 +2,7 @@ import type { InputHTMLAttributes, ReactNode } from "react";
import { useId } from "react";
export const fieldControlClassName =
- "ui-field-control w-full text-sm text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed";
+ "ui-field-control w-full text-sm text-foreground placeholder:text-app-placeholder disabled:cursor-not-allowed";
export function Field({
className = "",
diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
index d85aa17d..4acd42b7 100644
--- a/apps/web/src/components/ui/select.tsx
+++ b/apps/web/src/components/ui/select.tsx
@@ -99,7 +99,7 @@ export function Select({
value={value}
>
<span
- className={`min-w-0 flex-1 truncate ${selectedIndex >= 0 ? "" : "text-muted-foreground"}`}
+ className={`min-w-0 flex-1 truncate ${selectedIndex >= 0 ? "" : "text-app-placeholder"}`}
>
{options[selectedIndex]?.children ?? placeholder}
</span>
diff --git a/apps/web/src/features/library/move-folder-picker-dialog.tsx b/apps/web/src/features/library/move-folder-picker-dialog.tsx
index 8a52f1e0..32df7882 100644
--- a/apps/web/src/features/library/move-folder-picker-dialog.tsx
+++ b/apps/web/src/features/library/move-folder-picker-dialog.tsx
@@ -110,7 +110,7 @@ export function MoveFolderPickerDialog({
/>
<input
aria-label="Search folders"
- className="h-10 w-full rounded-lg border border-border bg-card pl-10 pr-9 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring"
+ className="h-10 w-full rounded-lg border border-border bg-card pl-10 pr-9 text-sm text-foreground outline-none transition-colors placeholder:text-app-placeholder hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring"
onChange={(event) => setQuery(event.target.value)}
placeholder="Search folders…"
role="searchbox"
diff --git a/apps/web/src/features/memory/meetings-panel.tsx b/apps/web/src/features/memory/meetings-panel.tsx
index ef54d581..1ad5b586 100644
--- a/apps/web/src/features/memory/meetings-panel.tsx
+++ b/apps/web/src/features/memory/meetings-panel.tsx
@@ -330,7 +330,7 @@ export function MeetingsPanel({ tenantId }: { tenantId: string }) {
<Icon icon={Search01Icon} size={16} />
<input
aria-label="Search meetings"
- className="min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"
+ className="min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-app-placeholder"
onChange={(event) => setQuery(event.target.value)}
placeholder="Search by date or time"
type="search"
diff --git a/apps/web/src/features/rooms/cards/approval-card-parts.tsx b/apps/web/src/features/rooms/cards/approval-card-parts.tsx
index 16aae302..e617f018 100644
--- a/apps/web/src/features/rooms/cards/approval-card-parts.tsx
+++ b/apps/web/src/features/rooms/cards/approval-card-parts.tsx
@@ -250,7 +250,7 @@ export function DecisionActions({
>
<input
aria-label="Reason for denying"
- className="h-full w-0 min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"
+ className="h-full w-0 min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-app-placeholder"
disabled={disabled}
onChange={(event) => setDraft(event.target.value)}
onKeyDown={onReasonKeyDown}
diff --git a/apps/web/src/features/rooms/cards/decision-profile-setup-view.tsx b/apps/web/src/features/rooms/cards/decision-profile-setup-view.tsx
index 78eda6a9..dffd0cbd 100644
--- a/apps/web/src/features/rooms/cards/decision-profile-setup-view.tsx
+++ b/apps/web/src/features/rooms/cards/decision-profile-setup-view.tsx
@@ -527,7 +527,7 @@ function ProfileSetupSources(props: Props) {
<div className={rowClassName}>
<input
aria-label="Paste a link"
- className="h-8 min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"
+ className="h-8 min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-app-placeholder"
onChange={(event) => {
setDraft(event.target.value);
setInputError(null);
diff --git a/apps/web/src/features/rooms/cards/decision-question-view.tsx b/apps/web/src/features/rooms/cards/decision-question-view.tsx
index 8919ac6b..e7a2d468 100644
--- a/apps/web/src/features/rooms/cards/decision-question-view.tsx
+++ b/apps/web/src/features/rooms/cards/decision-question-view.tsx
@@ -262,7 +262,7 @@ function OtherRow({
<label className="question-choice question-choice-writing">
<input
aria-label={`Your own answer to ${question.prompt}`}
- className="min-w-0 flex-1 bg-transparent text-sm text-app-ink outline-none placeholder:text-app-muted"
+ className="min-w-0 flex-1 bg-transparent text-sm text-app-ink outline-none placeholder:text-app-placeholder"
disabled={disabled}
maxLength={question.input === "checkbox" ? 200 : 10000}
onChange={(event) => onWrite(event.target.value)}
diff --git a/apps/web/src/features/rooms/chat/message-reactions/message-reaction-picker.tsx b/apps/web/src/features/rooms/chat/message-reactions/message-reaction-picker.tsx
index b232b7ee..39ff9acc 100644
--- a/apps/web/src/features/rooms/chat/message-reactions/message-reaction-picker.tsx
+++ b/apps/web/src/features/rooms/chat/message-reactions/message-reaction-picker.tsx
@@ -392,7 +392,7 @@ export function MessageReactionPicker({
aria-controls={listId}
aria-expanded="true"
aria-label="Search emoji"
- className="h-8 w-full rounded-md border border-input bg-card px-2 text-sm text-foreground outline-none placeholder:text-muted-foreground hover:border-border-hover focus-visible:border-foreground/40"
+ className="h-8 w-full rounded-md border border-input bg-card px-2 text-sm text-foreground outline-none placeholder:text-app-placeholder hover:border-border-hover focus-visible:border-foreground/40"
onChange={(event) => {
setQuery(event.target.value);
setActiveIndex(0);
diff --git a/apps/web/src/features/rooms/documents/canvas/canvas-header.tsx b/apps/web/src/features/rooms/documents/canvas/canvas-header.tsx
index 17d34ebc..e8ebacfb 100644
--- a/apps/web/src/features/rooms/documents/canvas/canvas-header.tsx
+++ b/apps/web/src/features/rooms/documents/canvas/canvas-header.tsx
@@ -236,7 +236,7 @@ function CanvasField({
return (
<input
className={cn(
- "h-11 w-full border-0 bg-transparent text-app-ink outline-none shadow-none focus:outline-none focus:ring-0 placeholder:text-app-muted",
+ "h-11 w-full border-0 bg-transparent text-app-ink outline-none shadow-none focus:outline-none focus:ring-0 placeholder:text-app-placeholder",
className,
)}
id={id}
diff --git a/apps/web/src/features/rooms/documents/document-comments-panel.tsx b/apps/web/src/features/rooms/documents/document-comments-panel.tsx
index 444891ea..236a808e 100644
--- a/apps/web/src/features/rooms/documents/document-comments-panel.tsx
+++ b/apps/web/src/features/rooms/documents/document-comments-panel.tsx
@@ -262,7 +262,7 @@ function DocumentCommentComposer({
<div className="flex min-w-0 items-center gap-1 overflow-hidden rounded-full bg-app-canvas p-1">
<textarea
aria-label={ariaLabel}
- className="document-comment-input workspace-scrollbar block min-h-8 min-w-0 max-h-20 flex-1 resize-none border-0 bg-transparent px-2 text-sm text-app-ink outline-none placeholder:text-app-muted"
+ className="document-comment-input workspace-scrollbar block min-h-8 min-w-0 max-h-20 flex-1 resize-none border-0 bg-transparent px-2 text-sm text-app-ink outline-none placeholder:text-app-placeholder"
disabled={pending}
id={inputId}
onChange={(event) => setBody(event.target.value)}
diff --git a/apps/web/src/features/rooms/documents/document-share-dialog.tsx b/apps/web/src/features/rooms/documents/document-share-dialog.tsx
index 3ad0128b..0f5867e8 100644
--- a/apps/web/src/features/rooms/documents/document-share-dialog.tsx
+++ b/apps/web/src/features/rooms/documents/document-share-dialog.tsx
@@ -726,7 +726,7 @@ function InviteCollaboratorsField({
<div className="flex items-center rounded-lg border border-input bg-card pr-1 transition-colors hover:border-border-hover focus-within:border-foreground focus-within:ring-2 focus-within:ring-ring">
<input
aria-label="Search collaborators"
- className="h-9 min-w-0 flex-1 bg-transparent px-3 text-sm text-app-ink outline-none placeholder:text-muted-foreground"
+ className="h-9 min-w-0 flex-1 bg-transparent px-3 text-sm text-app-ink outline-none placeholder:text-app-placeholder"
onChange={(event) => setQuery(event.target.value)}
onFocus={() => setOpen(true)}
placeholder="Search Agents"
diff --git a/apps/web/src/features/rooms/members/agent-skill-upload-panel.tsx b/apps/web/src/features/rooms/members/agent-skill-upload-panel.tsx
index 7fbfb5a0..39978d54 100644
--- a/apps/web/src/features/rooms/members/agent-skill-upload-panel.tsx
+++ b/apps/web/src/features/rooms/members/agent-skill-upload-panel.tsx
@@ -355,7 +355,7 @@ function SkillLibraryDialog({
<div className="border-b border-app-border px-4 py-3">
<input
aria-label="Search Skills"
- className="h-9 w-full rounded-lg border border-border bg-card px-3 text-sm outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-muted-foreground hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring"
+ className="h-9 w-full rounded-lg border border-border bg-card px-3 text-sm outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-app-placeholder hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring"
onChange={(event) => setQuery(event.target.value)}
placeholder="Search"
value={query}
diff --git a/apps/web/src/features/rooms/members/edit-agent-instructions-dialog.tsx b/apps/web/src/features/rooms/members/edit-agent-instructions-dialog.tsx
index 321b0550..fdfb6fb9 100644
--- a/apps/web/src/features/rooms/members/edit-agent-instructions-dialog.tsx
+++ b/apps/web/src/features/rooms/members/edit-agent-instructions-dialog.tsx
@@ -63,7 +63,7 @@ export function EditAgentInstructionsDialog({
<form className="px-5 py-4" id={formId} onSubmit={submit}>
<textarea
aria-label="Agent instructions"
- className="min-h-64 w-full resize-y rounded-md border border-border bg-card px-3 py-2.5 text-sm leading-6 text-foreground outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-muted-foreground hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring disabled:opacity-60"
+ className="min-h-64 w-full resize-y rounded-md border border-border bg-card px-3 py-2.5 text-sm leading-6 text-foreground outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-app-placeholder hover:border-border-hover focus:border-foreground focus:ring-2 focus:ring-ring disabled:opacity-60"
disabled={disabled}
maxLength={50000}
onChange={(event) => setDraft(event.target.value)}
diff --git a/apps/web/src/features/rooms/members/edit-agent-profile-dialog.tsx b/apps/web/src/features/rooms/members/edit-agent-profile-dialog.tsx
index 92fbb54c..6cfb42da 100644
--- a/apps/web/src/features/rooms/members/edit-agent-profile-dialog.tsx
+++ b/apps/web/src/features/rooms/members/edit-agent-profile-dialog.tsx
@@ -149,7 +149,7 @@ export function EditAgentProfileDialog({
<div className="mt-5 flex h-8 max-w-full items-center justify-center gap-0.5 rounded-md border border-transparent px-0.5 transition-[background-color,border-color,box-shadow] duration-150 hover:bg-muted/70 focus-within:border-foreground focus-within:bg-card focus-within:ring-2 focus-within:ring-ring">
<input
aria-label="Agent name"
- className="agent-profile-name-control h-7 w-auto max-w-[280px] shrink-0 border-0 bg-transparent px-1 text-center outline-none placeholder:text-muted-foreground focus-visible:ring-0"
+ className="agent-profile-name-control h-7 w-auto max-w-[280px] shrink-0 border-0 bg-transparent px-1 text-center outline-none placeholder:text-app-placeholder focus-visible:ring-0"
disabled={disabled}
maxLength={120}
onChange={(event) => setName(event.target.value)}
diff --git a/apps/web/src/features/rooms/members/room-create-members.tsx b/apps/web/src/features/rooms/members/room-create-members.tsx
index 2d813cbf..5656764c 100644
--- a/apps/web/src/features/rooms/members/room-create-members.tsx
+++ b/apps/web/src/features/rooms/members/room-create-members.tsx
@@ -237,7 +237,7 @@ export function RoomCreateMembers({
>
<input
aria-label="Search members"
- className="min-h-9 w-full shrink-0 rounded-md bg-transparent px-2 text-sm outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring"
+ className="min-h-9 w-full shrink-0 rounded-md bg-transparent px-2 text-sm outline-none placeholder:text-app-placeholder focus-visible:ring-2 focus-visible:ring-ring"
onChange={(event) => setSearch(event.target.value)}
onKeyDown={(event) => {
if (event.key === "Enter") event.preventDefault();
diff --git a/apps/web/src/features/rooms/pocket-notes/pocket-note-editor.tsx b/apps/web/src/features/rooms/pocket-notes/pocket-note-editor.tsx
index 5797283e..e5548877 100644
--- a/apps/web/src/features/rooms/pocket-notes/pocket-note-editor.tsx
+++ b/apps/web/src/features/rooms/pocket-notes/pocket-note-editor.tsx
@@ -151,7 +151,7 @@ export function PocketNoteEditor({
"min-h-full whitespace-pre-wrap [overflow-wrap:anywhere] outline-none [&>*]:m-0",
"[&>:is(h1,h2,h3,h4,h5,h6)]:font-[580] [&>:is(h1,h2,h3,h4,h5,h6)]:leading-[1.4]",
"[&>h1]:text-[24px] [&>h2]:text-[20px] [&>:is(h3,h4,h5,h6)]:text-[16px]",
- "before:pointer-events-none before:float-left before:h-0 before:text-app-muted [&:has(>p:only-child>br:only-child)]:before:content-[attr(data-placeholder)]",
+ "before:pointer-events-none before:float-left before:h-0 before:text-app-placeholder [&:has(>p:only-child>br:only-child)]:before:content-[attr(data-placeholder)]",
),
},
clipboardTextParser: (text) => new Slice(parseNote(text).content, 0, 0),
diff --git a/apps/web/src/features/rooms/task-sidebar/routine-dialog.tsx b/apps/web/src/features/rooms/task-sidebar/routine-dialog.tsx
index fca4844b..07551ff4 100644
--- a/apps/web/src/features/rooms/task-sidebar/routine-dialog.tsx
+++ b/apps/web/src/features/rooms/task-sidebar/routine-dialog.tsx
@@ -304,7 +304,7 @@ export function RoutineDialog({
}
const FIELD =
- "rounded-md border border-input bg-card px-3 text-sm font-normal text-foreground transition-colors duration-150 placeholder:text-muted-foreground hover:border-border-hover focus:border-foreground focus:outline-none focus:ring-2 focus:ring-ring";
+ "rounded-md border border-input bg-card px-3 text-sm font-normal text-foreground transition-colors duration-150 placeholder:text-app-placeholder hover:border-border-hover focus:border-foreground focus:outline-none focus:ring-2 focus:ring-ring";
function WhenEditor({
draft,
diff --git a/apps/web/src/features/rooms/voice-control/recording-questions.tsx b/apps/web/src/features/rooms/voice-control/recording-questions.tsx
index d580f5fd..e915c3ca 100644
--- a/apps/web/src/features/rooms/voice-control/recording-questions.tsx
+++ b/apps/web/src/features/rooms/voice-control/recording-questions.tsx
@@ -168,7 +168,7 @@ export function RecordingAskBox({
<div className="mx-4 mt-2 mb-4 flex shrink-0 items-end gap-2 rounded-2xl bg-app-surface py-1 pr-1 pl-3 shadow-(--composer-shadow) transition-shadow focus-within:shadow-(--composer-shadow-focus)">
<textarea
aria-label="Ask about this recording"
- className="max-h-24 min-h-7 flex-1 resize-none self-center bg-transparent py-1 text-sm leading-5 text-app-ink [field-sizing:content] placeholder:text-app-muted focus:outline-none"
+ className="max-h-24 min-h-7 flex-1 resize-none self-center bg-transparent py-1 text-sm leading-5 text-app-ink [field-sizing:content] placeholder:text-app-placeholder focus:outline-none"
onChange={(event) => setQuestion(event.target.value)}
onKeyDown={onKey}
placeholder="Ask something or ask to do something"
diff --git a/apps/web/src/features/search/global-search-sections.tsx b/apps/web/src/features/search/global-search-sections.tsx
index 6f356f65..c0a980ec 100644
--- a/apps/web/src/features/search/global-search-sections.tsx
+++ b/apps/web/src/features/search/global-search-sections.tsx
@@ -93,7 +93,7 @@ export function GlobalSearchField({
aria-controls="global-search-results"
aria-expanded={rowCount > 0}
aria-label="Search messages, docs, people, agents and rooms"
- className="ml-1 h-full min-w-0 flex-1 bg-transparent text-sm text-app-ink outline-none placeholder:text-muted-foreground"
+ className="ml-1 h-full min-w-0 flex-1 bg-transparent text-sm text-app-ink outline-none placeholder:text-app-placeholder"
onChange={(event) => onQueryChange(event.target.value)}
onKeyDown={onInputKeyDown}
placeholder={placeholder}
diff --git a/apps/web/src/features/wiki/wiki-collection-page.tsx b/apps/web/src/features/wiki/wiki-collection-page.tsx
index 56cfdba7..9d310143 100644
--- a/apps/web/src/features/wiki/wiki-collection-page.tsx
+++ b/apps/web/src/features/wiki/wiki-collection-page.tsx
@@ -101,7 +101,7 @@ function WikiCollectionContent({ collection }: { collection: WikiCollection }) {
/>
<input
aria-label={`Search ${label}`}
- className="h-9 w-full rounded-lg border border-border bg-card pr-3 pl-9 text-sm text-foreground transition-colors duration-150 placeholder:text-muted-foreground hover:border-border-hover focus-visible:border-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ className="h-9 w-full rounded-lg border border-border bg-card pr-3 pl-9 text-sm text-foreground transition-colors duration-150 placeholder:text-app-placeholder hover:border-border-hover focus-visible:border-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
onChange={(event) => setQuery(event.target.value)}
placeholder={`Search ${label.toLowerCase()}`}
type="search"