An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.
TypeScript agentic-browseragentic-browsingagy-cliaiai-agentai-browser-extensionai-toolsbrave-extensionbrowser-agentbrowser-automationbrowser-extensionbrowser-usebrowserskillchrome-extensionclaude-codecodexfirefox-addonmcp-servernanobrowserweb-automation
style(ui): refresh primitives and global styles
Shahriar8aaf210b10ee
diff --git a/assets/globals.css b/assets/globals.cssindex eecca0d..f4be95c 100644--- a/assets/globals.css+++ b/assets/globals.css@@ -3,47 +3,52 @@@custom-variant dark (&:is(.dark *));+/*+ * Browsentic — the landing page’s palette, at panel scale.+ * Warm near-black ground, cyan brand, ember counter-accent, one committed+ * dark look. Semantic tokens feed the shadcn primitives; the named colours+ * below are the same ramp the website ships.+ */:root {- --radius: 0.625rem;- --background: oklch(1 0 0);- --foreground: oklch(0.141 0.005 285.823);- --card: oklch(1 0 0);- --card-foreground: oklch(0.141 0.005 285.823);- --popover: oklch(1 0 0);- --popover-foreground: oklch(0.141 0.005 285.823);- --primary: oklch(0.606 0.25 292.717);- --primary-foreground: oklch(0.969 0.016 293.756);- --secondary: oklch(0.967 0.001 286.375);- --secondary-foreground: oklch(0.21 0.006 285.885);- --muted: oklch(0.967 0.001 286.375);- --muted-foreground: oklch(0.552 0.016 285.938);- --accent: oklch(0.967 0.001 286.375);- --accent-foreground: oklch(0.21 0.006 285.885);- --destructive: oklch(0.577 0.245 27.325);- --border: oklch(0.92 0.004 286.32);- --input: oklch(0.92 0.004 286.32);- --ring: oklch(0.606 0.25 292.717);-}--.dark {- --background: oklch(0.141 0.005 285.823);- --foreground: oklch(0.985 0 0);- --card: oklch(0.21 0.006 285.885);- --card-foreground: oklch(0.985 0 0);- --popover: oklch(0.21 0.006 285.885);- --popover-foreground: oklch(0.985 0 0);- --primary: oklch(0.541 0.281 293.009);- --primary-foreground: oklch(0.969 0.016 293.756);- --secondary: oklch(0.274 0.006 286.033);- --secondary-foreground: oklch(0.985 0 0);- --muted: oklch(0.274 0.006 286.033);- --muted-foreground: oklch(0.705 0.015 286.067);- --accent: oklch(0.274 0.006 286.033);- --accent-foreground: oklch(0.985 0 0);- --destructive: oklch(0.704 0.191 22.216);- --border: oklch(1 0 0 / 10%);- --input: oklch(1 0 0 / 15%);- --ring: oklch(0.541 0.281 293.009);+ --radius: 0.75rem;++ --ground: oklch(0.152 0.016 52);+ --ground-2: oklch(0.183 0.018 50);+ --surface: oklch(0.213 0.019 48);+ --surface-2: oklch(0.253 0.021 46);++ --ink: oklch(0.958 0.012 70);+ --ink-dim: oklch(0.735 0.018 60);+ --ink-faint: oklch(0.575 0.02 55);++ --line: oklch(0.98 0.01 60 / 10%);+ --line-strong: oklch(0.98 0.01 60 / 18%);++ --brand: oklch(0.83 0.13 195);+ --brand-deep: oklch(0.62 0.12 200);+ --ember: oklch(0.735 0.168 42);+ --magenta: oklch(0.7 0.21 335);+ --lime: oklch(0.84 0.18 150);+ --amber: oklch(0.84 0.15 85);++ --background: var(--ground);+ --foreground: var(--ink);+ --card: var(--ground-2);+ --card-foreground: var(--ink);+ --popover: var(--surface);+ --popover-foreground: var(--ink);+ --primary: var(--brand);+ --primary-foreground: var(--ground);+ --secondary: var(--surface);+ --secondary-foreground: var(--ink);+ --muted: var(--ground-2);+ --muted-foreground: var(--ink-dim);+ --accent: var(--surface-2);+ --accent-foreground: var(--ink);+ --destructive: oklch(0.645 0.205 25);+ --border: var(--line);+ --input: var(--line-strong);+ --ring: var(--brand);}@theme inline {@@ -51,6 +56,7 @@--radius-md: calc(var(--radius) - 2px);--radius-lg: var(--radius);--radius-xl: calc(var(--radius) + 4px);+--color-background: var(--background);--color-foreground: var(--foreground);--color-card: var(--card);@@ -69,15 +75,155 @@--color-border: var(--border);--color-input: var(--input);--color-ring: var(--ring);++ --color-ground: var(--ground);+ --color-ground-2: var(--ground-2);+ --color-surface: var(--surface);+ --color-surface-2: var(--surface-2);+ --color-ink: var(--ink);+ --color-ink-dim: var(--ink-dim);+ --color-ink-faint: var(--ink-faint);+ --color-line: var(--line);+ --color-line-strong: var(--line-strong);+ --color-brand: var(--brand);+ --color-brand-deep: var(--brand-deep);+ --color-ember: var(--ember);+ --color-magenta: var(--magenta);+ --color-lime: var(--lime);+ --color-amber: var(--amber);+}++/* Not inline: these are read back as custom properties further down. */+@theme {+ --font-display:+ "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;+ --font-sans:+ "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ --font-mono:+ "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", "Cascadia Code",+ Menlo, Consolas, monospace;++ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);}@layer base {* {@apply border-border outline-ring/50;}+body {- @apply bg-background text-foreground antialiased;+ @apply bg-background text-foreground font-sans antialiased;+ font-feature-settings: "cv02", "cv03", "cv04", "ss01";+ text-rendering: optimizeLegibility;+ }++ h1,+ h2,+ h3 {+ @apply font-display;+ letter-spacing: -0.024em;+ }++ /* The film grain the landing page wears, at a fraction of the strength. */+ body::after {+ content: "";+ position: fixed;+ inset: 0;+ z-index: 100;+ pointer-events: none;+ opacity: 0.03;+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");+ }++ ::selection {+ background: color-mix(in oklch, var(--brand) 32%, transparent);+ color: var(--ink);+ }++ ::-webkit-scrollbar {+ width: 8px;+ height: 8px;+ }+ ::-webkit-scrollbar-track {+ background: transparent;+ }+ ::-webkit-scrollbar-thumb {+ background: var(--surface-2);+ border-radius: 999px;}+ ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in oklch, var(--brand) 40%, var(--surface-2));+ }+}++/* The website’s card: a top-lit wash over the ground, hairline edge. */+@utility panel-card {+ background: linear-gradient(+ 180deg,+ oklch(0.98 0.01 60 / 4.5%),+ oklch(0.98 0.01 60 / 1.5%)+ );+ border: 1px solid var(--line);+}++/* Neon halo around text, taken from the element’s current color. */+@utility neon-text {+ text-shadow: 0 0 12px color-mix(in oklch, currentColor 55%, transparent);+}++/* Glow for small indicators (status dots); color follows text color. */+@utility glow-dot {+ box-shadow: 0 0 8px 1px color-mix(in oklch, currentColor 75%, transparent);+}++@utility glow-brand {+ box-shadow: 0 6px 26px -10px color-mix(in oklch, var(--brand) 70%, transparent);+}+@utility glow-destructive {+ box-shadow:+ 0 6px 26px -10px color-mix(in oklch, var(--destructive) 70%, transparent);+}++/* Backdrops for empty states and headers. */+@utility dot-grid {+ background-image: radial-gradient(+ circle at 1px 1px,+ oklch(0.98 0.01 60 / 9%) 1px,+ transparent 0+ );+ background-size: 22px 22px;+}+@utility line-grid {+ background-image:+ linear-gradient(to right, oklch(0.98 0.01 60 / 5%) 1px, transparent 1px),+ linear-gradient(to bottom, oklch(0.98 0.01 60 / 5%) 1px, transparent 1px);+ background-size: 48px 48px;+}++@utility fade-top {+ mask-image: linear-gradient(to top, #000 84%, transparent 100%);+}+@utility fade-bottom {+ mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);+}+@utility fade-radial {+ mask-image: radial-gradient(+ ellipse 80% 70% at 50% 30%,+ #000 40%,+ transparent 100%+ );+}++@utility text-gradient {+ background: linear-gradient(+ 100deg,+ var(--ink) 4%,+ var(--amber) 44%,+ var(--ember) 96%+ );+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;}@keyframes browsentic-countdown {@@ -88,3 +234,123 @@width: 0%;}}++/* One token of the agent’s reply arriving. Mount-only: a span that already+ exists is never re-animated, so a growing message settles word by word. */+@keyframes browsentic-token {+ from {+ opacity: 0;+ filter: blur(4px);+ transform: translateY(2px);+ }+ to {+ opacity: 1;+ filter: blur(0);+ transform: none;+ }+}++@keyframes browsentic-enter {+ from {+ opacity: 0;+ transform: translateY(6px);+ }+ to {+ opacity: 1;+ transform: none;+ }+}++@keyframes browsentic-caret {+ 0%,+ 45% {+ opacity: 1;+ }+ 55%,+ 100% {+ opacity: 0;+ }+}++@keyframes browsentic-think {+ 0%,+ 70%,+ 100% {+ opacity: 0.25;+ transform: translateY(0);+ }+ 35% {+ opacity: 1;+ transform: translateY(-2px);+ }+}++@keyframes browsentic-sweep {+ from {+ transform: translateX(-100%);+ }+ to {+ transform: translateX(320%);+ }+}++@layer components {+ [data-stream] .tok {+ animation: browsentic-token 0.42s var(--ease-out-expo) both;+ }++ /* The caret rides the end of whatever block the reply is still growing. */+ [data-stream="live"] > *:last-child::after {+ content: "";+ display: inline-block;+ width: 0.42em;+ height: 0.95em;+ margin-left: 0.14em;+ vertical-align: -0.12em;+ border-radius: 1px;+ background: var(--brand);+ box-shadow: 0 0 10px color-mix(in oklch, var(--brand) 70%, transparent);+ animation: browsentic-caret 1.05s steps(1, end) infinite;+ }++ .enters {+ animation: browsentic-enter 0.34s var(--ease-out-expo) both;+ }++ .think-dot {+ animation: browsentic-think 1.2s ease-in-out infinite;+ }+ .think-dot:nth-child(2) {+ animation-delay: 0.16s;+ }+ .think-dot:nth-child(3) {+ animation-delay: 0.32s;+ }++ /* A light sweeping along the top edge of whatever is in flight. */+ .sweep::after {+ content: "";+ position: absolute;+ inset-block-start: 0;+ inset-inline-start: 0;+ height: 1px;+ width: 30%;+ background: linear-gradient(+ 90deg,+ transparent,+ var(--brand),+ transparent+ );+ animation: browsentic-sweep 1.8s var(--ease-out-expo) infinite;+ }+}++@media (prefers-reduced-motion: reduce) {+ *,+ *::before,+ *::after {+ animation-duration: 0.01ms !important;+ animation-iteration-count: 1 !important;+ transition-duration: 0.01ms !important;+ }+}diff --git a/components/ui/badge.tsx b/components/ui/badge.tsxindex f62c07b..721e79d 100644--- a/components/ui/badge.tsx+++ b/components/ui/badge.tsx@@ -5,16 +5,15 @@ import { cva, type VariantProps } from 'class-variance-authority';import { cn } from '@/lib/utils';const badgeVariants = cva(- 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden',+ 'inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 font-mono text-[10px] tracking-[0.08em] whitespace-nowrap uppercase [&>svg]:pointer-events-none [&>svg]:size-2.5',{variants: {variant: {- default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',- secondary:- 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',- destructive:- 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',- outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',+ default: 'border-brand/35 bg-brand/12 text-brand',+ secondary: 'border-line-strong bg-surface/70 text-ink-dim',+ destructive: 'border-destructive/40 bg-destructive/12 text-destructive',+ warning: 'border-amber/40 bg-amber/12 text-amber',+ outline: 'border-line text-ink-faint',},},defaultVariants: {diff --git a/components/ui/button.tsx b/components/ui/button.tsxindex b579275..ab39c62 100644--- a/components/ui/button.tsx+++ b/components/ui/button.tsx@@ -5,24 +5,25 @@ import { cva, type VariantProps } from 'class-variance-authority';import { cn } from '@/lib/utils';const buttonVariants = cva(- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ "inline-flex shrink-0 items-center justify-center gap-2 rounded-full font-medium whitespace-nowrap outline-none transition-all duration-200 disabled:pointer-events-none disabled:opacity-45 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-ground aria-invalid:border-destructive",{variants: {variant: {- default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',- destructive:- 'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',+ default: 'glow-brand bg-brand text-ground hover:bg-brand/90',+ destructive: 'glow-destructive bg-destructive text-ink hover:bg-destructive/90',outline:- 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',- secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',- ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',- link: 'text-primary underline-offset-4 hover:underline',+ 'border border-line-strong bg-surface/40 text-ink hover:border-brand/45 hover:bg-surface/70',+ secondary: 'bg-surface text-ink hover:bg-surface-2',+ ghost: 'text-ink-dim hover:bg-surface/70 hover:text-ink',+ subtle: 'bg-brand/12 text-brand hover:bg-brand/20',+ link: 'text-brand underline-offset-4 hover:underline',},size: {- default: 'h-9 px-4 py-2 has-[>svg]:px-3',- sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',- lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',+ default: 'h-9 px-4 text-sm has-[>svg]:px-3.5',+ sm: 'h-7 gap-1.5 px-3 text-xs has-[>svg]:px-2.5',+ lg: 'h-10 px-6 text-sm has-[>svg]:px-5',icon: 'size-9',+ 'icon-sm': 'size-7',},},defaultVariants: {diff --git a/components/ui/card.tsx b/components/ui/card.tsxdeleted file mode 100644index 8dd598f..0000000--- a/components/ui/card.tsx+++ /dev/null@@ -1,75 +0,0 @@-import * as React from 'react';--import { cn } from '@/lib/utils';--function Card({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card"- className={cn(- 'bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm',- className,- )}- {...props}- />- );-}--function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card-header"- className={cn(- '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',- className,- )}- {...props}- />- );-}--function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card-title"- className={cn('leading-none font-semibold', className)}- {...props}- />- );-}--function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card-description"- className={cn('text-muted-foreground text-sm', className)}- {...props}- />- );-}--function CardAction({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card-action"- className={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)}- {...props}- />- );-}--function CardContent({ className, ...props }: React.ComponentProps<'div'>) {- return <div data-slot="card-content" className={cn('px-6', className)} {...props} />;-}--function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {- return (- <div- data-slot="card-footer"- className={cn('flex items-center px-6 [.border-t]:pt-6', className)}- {...props}- />- );-}--export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };diff --git a/components/ui/input.tsx b/components/ui/input.tsxindex 3c1cfca..b5626ed 100644--- a/components/ui/input.tsx+++ b/components/ui/input.tsx@@ -8,9 +8,11 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {type={type}data-slot="input"className={cn(- 'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',- 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',+ 'flex h-9 w-full min-w-0 rounded-lg border border-line-strong bg-ground/60 px-3 py-1 text-sm text-ink outline-none transition-colors',+ 'placeholder:text-ink-faint selection:bg-brand/30 selection:text-ink',+ 'focus-visible:border-brand/55 focus-visible:bg-ground/80',+ 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-45',+ 'aria-invalid:border-destructive/60',className,)}{...props}diff --git a/components/ui/scroll-area.tsx b/components/ui/scroll-area.tsxindex 82140d3..5ce6c74 100644--- a/components/ui/scroll-area.tsx+++ b/components/ui/scroll-area.tsx@@ -6,8 +6,11 @@ import { cn } from '@/lib/utils';function ScrollArea({className,children,+ viewportRef,...props-}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root> & {+ viewportRef?: React.Ref<HTMLDivElement>;+}) {return (<ScrollAreaPrimitive.Rootdata-slot="scroll-area"@@ -15,8 +18,9 @@ function ScrollArea({{...props}><ScrollAreaPrimitive.Viewport+ ref={viewportRef}data-slot="scroll-area-viewport"- className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&>div]:block!"+ className="size-full rounded-[inherit] outline-none [&>div]:block!">{children}</ScrollAreaPrimitive.Viewport>@@ -45,7 +49,7 @@ function ScrollBar({><ScrollAreaPrimitive.ScrollAreaThumbdata-slot="scroll-area-thumb"- className="bg-border relative flex-1 rounded-full"+ className="relative flex-1 rounded-full bg-surface-2 transition-colors hover:bg-brand/40"/></ScrollAreaPrimitive.ScrollAreaScrollbar>);diff --git a/components/ui/textarea.tsx b/components/ui/textarea.tsxindex 5f558e7..54e3f62 100644--- a/components/ui/textarea.tsx+++ b/components/ui/textarea.tsx@@ -7,7 +7,10 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {<textareadata-slot="textarea"className={cn(- 'border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',+ 'field-sizing-content flex min-h-16 w-full rounded-lg border border-line-strong bg-ground/60 px-3 py-2 text-sm text-ink outline-none transition-colors',+ 'placeholder:text-ink-faint selection:bg-brand/30 selection:text-ink',+ 'focus-visible:border-brand/55',+ 'disabled:cursor-not-allowed disabled:opacity-45',className,)}{...props}