Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Auto migrate with `@tailwindcss/upgrade`

Ilya21f023dd487e
diff --git a/apps/desktop/src/components/CapErrorBoundary.tsx b/apps/desktop/src/components/CapErrorBoundary.tsx
index 5bf7fc132..2dca68d1d 100644
--- a/apps/desktop/src/components/CapErrorBoundary.tsx
+++ b/apps/desktop/src/components/CapErrorBoundary.tsx
@@ -9,9 +9,9 @@ export function CapErrorBoundary(props: ParentProps) {
fallback={(e: Error) => {
console.error(e);
return (
- <div class="w-full h-full flex flex-col justify-center items-center bg-gray-2 border-gray-3 max-h-screen overflow-hidden transition-[border-radius] duration-200 text-[--text-secondary] gap-y-4 max-sm:gap-y-2 px-8 text-center">
+ <div class="w-full h-full flex flex-col justify-center items-center bg-gray-2 border-gray-3 max-h-screen overflow-hidden transition-[border-radius] duration-200 text-(--text-secondary) gap-y-4 max-sm:gap-y-2 px-8 text-center">
<IconCapLogo class="max-sm:size-16" />
- <h1 class="text-[--text-primary] text-3xl max-sm:text-xl font-bold">
+ <h1 class="text-(--text-primary) text-3xl max-sm:text-xl font-bold">
An Error Occured
</h1>
<p class="mb-2 max-sm:text-sm">
diff --git a/apps/desktop/src/components/Cropper.tsx b/apps/desktop/src/components/Cropper.tsx
index 6509ce71c..2a22e1b5f 100644
--- a/apps/desktop/src/components/Cropper.tsx
+++ b/apps/desktop/src/components/Cropper.tsx
@@ -1018,7 +1018,7 @@ export function Cropper(
return (
<div
ref={containerRef}
- class="relative w-full h-full select-none overscroll-contain focus:outline-none touch-none"
+ class="relative w-full h-full select-none overscroll-contain focus:outline-hidden touch-none"
style={{
cursor: cursorStyle() ?? (props.aspectRatio ? "default" : "crosshair"),
}}
@@ -1031,11 +1031,11 @@ export function Cropper(
<Transition
appear
enterActiveClass="transition-opacity duration-300 ease-in-out"
- enterClass="opacity-0 blur-sm"
+ enterClass="opacity-0 blur-xs"
enterToClass="opacity-100 blur-none"
exitActiveClass="transition-opacity duration-300 ease-in-out"
exitClass="opacity-100 blur-none"
- exitToClass="opacity-0 blur-sm"
+ exitToClass="opacity-0 blur-xs"
>
<Show when={props.showBounds && labelTransform()}>
{(transform) => (
@@ -1110,7 +1110,7 @@ export function Cropper(
handle.isCorner ? (
<button
type="button"
- class="fixed z-50 flex h-[30px] w-[30px] focus:ring-0 outline-none"
+ class="fixed z-50 flex h-[30px] w-[30px] focus:ring-0 outline-hidden"
tabIndex={-1}
classList={{ "opacity-0": mouseState.drag === "overlay" }}
style={{
@@ -1136,7 +1136,7 @@ export function Cropper(
>
<svg
aria-hidden="true"
- class="absolute pointer-events-none drop-shadow-sm shadow-black"
+ class="absolute pointer-events-none drop-shadow-xs shadow-black"
classList={{
"size-1": boundsTooSmall(),
"size-6": !boundsTooSmall(),
@@ -1172,7 +1172,7 @@ export function Cropper(
) : (
<button
type="button"
- class="absolute focus:outline-none focus:ring-0 outline-none"
+ class="absolute focus:outline-hidden focus:ring-0 outline-hidden"
tabIndex={-1}
style={{
visibility:
@@ -1239,9 +1239,9 @@ export function Cropper(
aria-live="polite"
>
<div
- class="h-[18px] w-11 rounded-full text-center text-xs text-gray-12 border border-white/70 dark:border-white/20 drop-shadow-md outline-1 outline outline-black/80"
+ class="h-[18px] w-11 rounded-full text-center text-xs text-gray-12 border border-white/70 dark:border-white/20 drop-shadow-md outline-1 outline-solid outline-black/80"
classList={{
- "backdrop-blur-sm bg-white/50 dark:bg-black/50 dark:backdrop-brightness-90 backdrop-brightness-200":
+ "backdrop-blur-xs bg-white/50 dark:bg-black/50 dark:backdrop-brightness-90 backdrop-brightness-200":
props.useBackdropFilter,
"bg-gray-3 opacity-80": !props.useBackdropFilter,
}}
diff --git a/apps/desktop/src/components/Loader.tsx b/apps/desktop/src/components/Loader.tsx
index f88661a0e..b8da544d8 100644
--- a/apps/desktop/src/components/Loader.tsx
+++ b/apps/desktop/src/components/Loader.tsx
@@ -2,7 +2,7 @@ export function AbsoluteInsetLoader() {
return (
<div class="w-full h-full flex items-center justify-center">
<div class="animate-spin">
- <IconCapLogo class="size-[4rem]" />
+ <IconCapLogo class="size-16" />
</div>
</div>
);
diff --git a/apps/desktop/src/components/SignInButton.tsx b/apps/desktop/src/components/SignInButton.tsx
index 08fc3f12a..2c9f0b834 100644
--- a/apps/desktop/src/components/SignInButton.tsx
+++ b/apps/desktop/src/components/SignInButton.tsx
@@ -11,7 +11,7 @@ export function SignInButton(
return (
<Button
size="md"
- class="flex flex-grow justify-center items-center"
+ class="flex grow justify-center items-center"
{...props}
variant={signIn.isPending ? "gray" : "primary"}
onClick={() => {
diff --git a/apps/desktop/src/components/Toggle.tsx b/apps/desktop/src/components/Toggle.tsx
index c16036fd3..36937a4af 100644
--- a/apps/desktop/src/components/Toggle.tsx
+++ b/apps/desktop/src/components/Toggle.tsx
@@ -7,9 +7,9 @@ const toggleControlStyles = cva(
{
variants: {
size: {
- sm: "w-9 h-[1.25rem] p-[0.125rem]",
- md: "w-11 h-[1.5rem] p-[0.125rem]",
- lg: "w-14 h-[1.75rem] p-[0.1875rem]",
+ sm: "w-9 h-5 p-0.5",
+ md: "w-11 h-6 p-0.5",
+ lg: "w-14 h-7 p-0.75",
},
},
defaultVariants: {
@@ -23,9 +23,9 @@ const toggleThumbStyles = cva(
{
variants: {
size: {
- sm: "size-[1rem]",
- md: "size-[1.25rem]",
- lg: "size-[1.5rem]",
+ sm: "size-4",
+ md: "size-5",
+ lg: "size-6",
},
},
defaultVariants: {
diff --git a/apps/desktop/src/components/titlebar/Titlebar.tsx b/apps/desktop/src/components/titlebar/Titlebar.tsx
index 4e89ac088..a6522d3c0 100644
--- a/apps/desktop/src/components/titlebar/Titlebar.tsx
+++ b/apps/desktop/src/components/titlebar/Titlebar.tsx
@@ -29,13 +29,13 @@ export default function Titlebar() {
>
{left() ? (
<>
- <WindowControls class="!ml-0" />
- <div class="!ml-auto">{titlebarState.items}</div>
+ <WindowControls class="ml-0!" />
+ <div class="ml-auto!">{titlebarState.items}</div>
</>
) : (
<>
{titlebarState.items}
- <WindowControls class="!ml-auto" />
+ <WindowControls class="ml-auto!" />
</>
)}
</header>
diff --git a/apps/desktop/src/components/titlebar/controls/CaptionControlsWindows11.tsx b/apps/desktop/src/components/titlebar/controls/CaptionControlsWindows11.tsx
index 667e92b90..680e1b62c 100644
--- a/apps/desktop/src/components/titlebar/controls/CaptionControlsWindows11.tsx
+++ b/apps/desktop/src/components/titlebar/controls/CaptionControlsWindows11.tsx
@@ -34,7 +34,7 @@ export default function (
return (
<div
class={cx(
- "flex flex-row items-stretch h-full align-baseline cursor-default rounded-none select-none *:outline-none *:transition-all *:duration-200",
+ "flex flex-row items-stretch h-full align-baseline cursor-default rounded-none select-none *:outline-hidden *:transition-all *:duration-200",
local.class,
focused()
? "*:text-black-transparent-80"
diff --git a/apps/desktop/src/entry-server.tsx b/apps/desktop/src/entry-server.tsx
index 561772573..7533dd90e 100644
--- a/apps/desktop/src/entry-server.tsx
+++ b/apps/desktop/src/entry-server.tsx
@@ -23,7 +23,7 @@ export default createHandler(() => (
{assets}
</head>
<body class="w-screen h-screen cursor-default select-none">
- <div id="app" class="h-full text-[--text-primary]">
+ <div id="app" class="h-full text-(--text-primary)">
{children}
</div>
{scripts}
diff --git a/apps/desktop/src/routes/(window-chrome).tsx b/apps/desktop/src/routes/(window-chrome).tsx
index 7ab785b37..50d489651 100644
--- a/apps/desktop/src/routes/(window-chrome).tsx
+++ b/apps/desktop/src/routes/(window-chrome).tsx
@@ -106,10 +106,10 @@ function Header() {
data-tauri-drag-region
>
{ctx.state()?.items}
- {isWindows && <CaptionControlsWindows11 class="!ml-auto" />}
+ {isWindows && <CaptionControlsWindows11 class="ml-auto!" />}
{isMacOS && (
<CaptionControlsMacOS
- class="!mr-auto ml-3"
+ class="mr-auto! ml-3"
showMinimize={false}
showZoom={false}
/>
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/CameraSelect.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/CameraSelect.tsx
index 559002ea7..fa9f77821 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/CameraSelect.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/CameraSelect.tsx
@@ -84,7 +84,7 @@ export default function CameraSelect(props: {
!props.hidePreviewButton;
return (
- <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">
+ <div class="flex flex-col gap-1 items-stretch text-(--text-primary)">
<button
type="button"
disabled={!!currentRecording.data || props.disabled}
@@ -213,7 +213,7 @@ export function CameraSelectBase(props: {
!props.hidePreviewButton;
return (
- <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">
+ <div class="flex flex-col gap-1 items-stretch text-(--text-primary)">
<button
type="button"
disabled={!!currentRecording.data || props.disabled}
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/DeviceSelectOverlay.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/DeviceSelectOverlay.tsx
index cd842f71e..174a37fb2 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/DeviceSelectOverlay.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/DeviceSelectOverlay.tsx
@@ -175,7 +175,7 @@ export default function DeviceSelectOverlay<T>(
placeholder="Search..."
value={searchQuery()}
onInput={(e) => setSearchQuery(e.currentTarget.value)}
- class="w-full px-3 py-1.5 text-sm rounded-lg outline-none placeholder:text-white/40 text-white"
+ class="w-full px-3 py-1.5 text-sm rounded-lg outline-hidden placeholder:text-white/40 text-white"
style={{
"background-color": "rgba(255, 255, 255, 0.1)",
border: "1px solid rgba(255, 255, 255, 0.1)",
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/MicrophoneSelect.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/MicrophoneSelect.tsx
index 4f8ac4706..502bdcbbd 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/MicrophoneSelect.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/MicrophoneSelect.tsx
@@ -54,7 +54,7 @@ export default function MicrophoneSelect(props: {
(1 - Math.max((dbs() ?? 0) + DB_SCALE, 0) / DB_SCALE) ** 0.5;
return (
- <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">
+ <div class="flex flex-col gap-1 items-stretch text-(--text-primary)">
<button
type="button"
disabled={!!currentRecording.data || props.disabled}
@@ -145,7 +145,7 @@ export function MicrophoneSelectBase(props: {
(1 - Math.max((dbs() ?? 0) + DB_SCALE, 0) / DB_SCALE) ** 0.5;
return (
- <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">
+ <div class="flex flex-col gap-1 items-stretch text-(--text-primary)">
<button
type="button"
disabled={!!currentRecording.data || props.disabled}
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/ModeInfoPanel.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/ModeInfoPanel.tsx
index 67da1aeab..34c4f7ee3 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/ModeInfoPanel.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/ModeInfoPanel.tsx
@@ -49,7 +49,7 @@ export default function ModeInfoPanel(props: ModeInfoPanelProps) {
onClick={() => props.onBack()}
class="flex gap-1 items-center rounded-md px-1.5 text-xs cursor-pointer
text-gray-11 transition-opacity hover:opacity-70 hover:text-gray-12
- focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1"
+ focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1"
>
<IconLucideArrowLeft class="size-3 text-gray-11" />
<span class="font-medium text-gray-12">Back</span>
@@ -89,7 +89,7 @@ export default function ModeInfoPanel(props: ModeInfoPanelProps) {
</div>
)}
- <div class="flex-shrink-0">
+ <div class="shrink-0">
<option.icon
class={cx(
"size-5 invert dark:invert-0",
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx
index aa662ec9a..34798d53d 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx
@@ -198,7 +198,7 @@ export default function TargetCard(props: TargetCardProps) {
return parts.map((part) => {
if (part.toLowerCase() === lowercaseQuery) {
return (
- <span class="rounded bg-blue-9/20 px-[1px] text-gray-12">{part}</span>
+ <span class="rounded-sm bg-blue-9/20 px-px text-gray-12">{part}</span>
);
}
return part;
@@ -314,12 +314,12 @@ export default function TargetCard(props: TargetCardProps) {
disabled={local.disabled}
data-variant={local.variant}
class={cx(
- "group flex flex-col overflow-hidden rounded-lg border border-transparent bg-gray-3 text-left outline-none transition-colors duration-100 hover:bg-gray-4 focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1",
+ "group flex flex-col overflow-hidden rounded-lg border border-transparent bg-gray-3 text-left outline-hidden transition-colors duration-100 hover:bg-gray-4 focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1",
local.disabled && "pointer-events-none opacity-60",
local.class,
)}
>
- <div class="relative h-[4.75rem] w-full overflow-hidden bg-gray-4/40">
+ <div class="relative h-19 w-full overflow-hidden bg-gray-4/40">
<Show
when={imageExists() ? thumbnailSrc() : undefined}
fallback={
@@ -354,10 +354,10 @@ export default function TargetCard(props: TargetCardProps) {
)}
</Show>
<div class="absolute inset-0 border opacity-60 pointer-events-none border-black/5" />
- <div class="absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t to-transparent pointer-events-none from-black/40" />
+ <div class="absolute inset-x-0 bottom-0 h-10 bg-linear-to-t to-transparent pointer-events-none from-black/40" />
<Show when={recordingFailed() || recordingUploadFailed()}>
<div class="absolute inset-0 flex items-center justify-center bg-black/75">
- <div class="flex items-center gap-1 px-1.5 py-0.5 rounded bg-red-9/20 text-red-11">
+ <div class="flex items-center gap-1 px-1.5 py-0.5 rounded-sm bg-red-9/20 text-red-11">
<IconPhWarningBold class="size-2.5" />
<span class="text-[10px] font-medium">
{recordingFailed() ? "Recording failed" : "Upload failed"}
@@ -391,7 +391,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleOpenEditor}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideEdit class="size-3.5" />
</div>
@@ -401,7 +401,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleCopy}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideCopy class="size-3.5" />
</div>
@@ -411,7 +411,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleSave}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideSave class="size-3.5" />
</div>
@@ -436,7 +436,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleOpenRecordingEditor}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideEdit class="size-3.5" />
</div>
@@ -453,7 +453,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleReupload}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideRotateCcw class="size-3.5" />
</div>
@@ -475,7 +475,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleOpenRecordingLink}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconCapLink class="size-3.5" />
</div>
@@ -486,7 +486,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleOpenRecordingFolder}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideFolder class="size-3.5" />
</div>
@@ -496,7 +496,7 @@ export default function TargetCard(props: TargetCardProps) {
role="button"
tabIndex={-1}
onClick={handleDeleteRecording}
- class="flex-1 flex items-center justify-center p-1 rounded hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
+ class="flex-1 flex items-center justify-center p-1 rounded-sm hover:bg-gray-5 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconCapTrash class="size-3.5" />
</div>
@@ -522,12 +522,12 @@ export function TargetCardSkeleton(props: { class?: string }) {
props.class,
)}
>
- <div class="h-[4.75rem] w-full animate-pulse bg-gray-4" />
+ <div class="h-19 w-full animate-pulse bg-gray-4" />
<div class="flex flex-row items-start gap-2 px-2 py-1.5">
<div class="flex-1 space-y-1">
- <div class="w-3/4 h-3 rounded bg-gray-4" />
- <div class="h-2.5 w-1/2 rounded bg-gray-4" />
- <div class="h-2.5 w-2/5 rounded bg-gray-4" />
+ <div class="w-3/4 h-3 rounded-sm bg-gray-4" />
+ <div class="h-2.5 w-1/2 rounded-sm bg-gray-4" />
+ <div class="h-2.5 w-2/5 rounded-sm bg-gray-4" />
</div>
</div>
</div>
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/TargetDropdownButton.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/TargetDropdownButton.tsx
index 5865e5c86..4c6c7b261 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/TargetDropdownButton.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/TargetDropdownButton.tsx
@@ -27,7 +27,7 @@ export default function TargetDropdownButton<
aria-expanded={local.expanded ? "true" : "false"}
data-expanded={local.expanded ? "true" : "false"}
class={cx(
- "flex w-5 shrink-0 items-center justify-center rounded-lg bg-gray-4 text-gray-12 transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1 hover:bg-gray-5",
+ "flex w-5 shrink-0 items-center justify-center rounded-lg bg-gray-4 text-gray-12 transition-colors duration-150 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1 hover:bg-gray-5",
local.expanded && "bg-gray-5",
local.disabled && "pointer-events-none opacity-60",
local.class,
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/TargetTypeButton.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/TargetTypeButton.tsx
index eea046c31..c295d46de 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/TargetTypeButton.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/TargetTypeButton.tsx
@@ -24,7 +24,7 @@ function TargetTypeButton(props: TargetTypeButtonProps) {
disabled={local.disabled}
aria-pressed={local.selected ? "true" : "false"}
class={cx(
- "flex flex-1 flex-col items-center justify-end gap-1 rounded-lg border border-gray-5 bg-gray-3 py-2 text-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1",
+ "flex flex-1 flex-col items-center justify-end gap-1 rounded-lg border border-gray-5 bg-gray-3 py-2 text-center transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1",
local.selected ? "text-gray-12" : "text-gray-12 hover:bg-gray-4",
local.disabled && "pointer-events-none opacity-60",
local.class,
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
index a140812d7..aefb782ef 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
@@ -239,7 +239,7 @@ function CameraListItem(props: {
disabled={props.disabled}
onClick={props.onSelect}
class={cx(
- "flex flex-col gap-0.5 px-3 py-2.5 rounded-lg text-sm text-left outline-none",
+ "flex flex-col gap-0.5 px-3 py-2.5 rounded-lg text-sm text-left outline-hidden",
props.isSelected
? "bg-blue-500 text-white"
: props.isFocused
@@ -298,7 +298,7 @@ function MicrophoneListItem(props: {
disabled={props.disabled}
onClick={props.onSelect}
class={cx(
- "relative overflow-hidden flex flex-col gap-0.5 px-3 py-2.5 rounded-lg text-sm text-left outline-none",
+ "relative overflow-hidden flex flex-col gap-0.5 px-3 py-2.5 rounded-lg text-sm text-left outline-hidden",
props.isSelected
? "bg-blue-500 text-white"
: props.isFocused
@@ -481,7 +481,7 @@ function DeviceListPanel(props: DeviceListPanelProps) {
return (
<div
ref={containerRef}
- class="flex flex-col gap-1 outline-none"
+ class="flex flex-col gap-1 outline-hidden"
tabIndex={0}
onKeyDown={handleKeyDown}
>
@@ -508,7 +508,7 @@ function DeviceListPanel(props: DeviceListPanelProps) {
disabled={props.disabled}
onClick={() => handleSelect(null)}
class={cx(
- "flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left outline-none",
+ "flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left outline-hidden",
isNoneSelected()
? "bg-blue-500 text-white"
: focusedIndex() === 0
@@ -777,7 +777,7 @@ function TargetMenuPanel(props: TargetMenuPanelProps & SharedTargetMenuProps) {
onClick={() => props.onBack()}
class="flex gap-1 items-center rounded-md px-1.5 text-xs
text-gray-11 transition-opacity hover:opacity-70 hover:text-gray-12
- focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1"
+ focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-9 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1"
>
<IconLucideArrowLeft class="size-3 text-gray-11" />
<span class="font-medium text-gray-12">Back</span>
@@ -967,7 +967,7 @@ function MainWindowHelpButton() {
onClick={() => {
commands.showWindow("Onboarding");
}}
- class="flex shrink-0 justify-center items-center size-5 focus:outline-none"
+ class="flex shrink-0 justify-center items-center size-5 focus:outline-hidden"
>
<IconLucideCircleHelp class="transition-colors text-gray-11 size-4 hover:text-gray-12" />
</button>
@@ -1715,7 +1715,7 @@ function Page() {
return (
<div
onMouseEnter={handleMouseEnter}
- class="flex relative flex-col px-[13px] gap-2 pb-[8px] h-full min-h-0 text-[--text-primary]"
+ class="flex relative flex-col px-[13px] gap-2 pb-[8px] h-full min-h-0 text-(--text-primary)"
>
<WindowChromeHeader hideMaximize>
<div
@@ -1732,7 +1732,7 @@ function Page() {
await commands.showWindow({ Settings: { page: "general" } });
getCurrentWindow().hide();
}}
- class="flex items-center justify-center size-5 -ml-[1.5px] focus:outline-none"
+ class="flex items-center justify-center size-5 -ml-[1.5px] focus:outline-hidden"
>
<IconCapSettings class="transition-colors text-gray-11 size-4 hover:text-gray-12" />
</button>
@@ -1751,7 +1751,7 @@ function Page() {
return next;
});
}}
- class="flex justify-center items-center size-5 focus:outline-none"
+ class="flex justify-center items-center size-5 focus:outline-hidden"
>
<IconLucideImage class="transition-colors text-gray-11 size-4 hover:text-gray-12" />
</button>
@@ -1770,7 +1770,7 @@ function Page() {
return next;
});
}}
- class="flex justify-center items-center size-5 focus:outline-none"
+ class="flex justify-center items-center size-5 focus:outline-hidden"
>
<IconLucideSquarePlay class="transition-colors text-gray-11 size-4 hover:text-gray-12" />
</button>
@@ -1782,7 +1782,7 @@ function Page() {
onClick={() => {
new WebviewWindow("debug", { url: "/debug" });
}}
- class="flex justify-center items-center focus:outline-none"
+ class="flex justify-center items-center focus:outline-hidden"
>
<IconLucideBug class="transition-colors text-gray-11 size-4 hover:text-gray-12" />
</button>
@@ -1794,7 +1794,7 @@ function Page() {
<div class="flex items-center justify-between mt-[16px] mb-[6px]">
<div class="flex items-center space-x-1">
<a
- class="*:w-[92px] *:h-auto text-[--text-primary]"
+ class="*:w-[92px] *:h-auto text-(--text-primary)"
target="_blank"
href={
auth.data
@@ -1816,7 +1816,7 @@ function Page() {
class={cx(
"text-[0.6rem] ml-2 rounded-lg border border-gray-5 px-1 py-0.5",
license.data?.type === "pro"
- ? "bg-[--blue-400] text-gray-1 dark:text-gray-12"
+ ? "bg-(--blue-400) text-gray-1 dark:text-gray-12"
: "bg-gray-3 cursor-pointer hover:bg-gray-5",
)}
>
@@ -2013,7 +2013,7 @@ function Page() {
</Show>
</div>
<Show when={isActivelyRecording()}>
- <div class="absolute inset-0 z-10 flex flex-col justify-end bg-gray-1/80 px-6 pb-8 backdrop-blur-sm">
+ <div class="absolute inset-0 z-10 flex flex-col justify-end bg-gray-1/80 px-6 pb-8 backdrop-blur-xs">
<div class="pointer-events-auto">
<button
type="button"
diff --git a/apps/desktop/src/routes/(window-chrome)/onboarding.tsx b/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
index 0f761e6de..81e98219e 100644
--- a/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
@@ -271,25 +271,25 @@ function OnboardingAmbientBackdrop() {
<div class="startup-grain" />
<div
ref={bindCloud1}
- class="absolute top-0 right-0 opacity-70 pointer-events-none z-[1]"
+ class="absolute top-0 right-0 opacity-70 pointer-events-none z-1"
>
<img
- class="startup-cloud-image w-[100vw] md:w-[80vw] -mr-40"
+ class="startup-cloud-image w-screen md:w-[80vw] -mr-40"
src={cloud1}
alt=""
/>
</div>
<div
ref={bindCloud2}
- class="absolute top-0 left-0 opacity-70 pointer-events-none z-[1]"
+ class="absolute top-0 left-0 opacity-70 pointer-events-none z-1"
>
<img
- class="startup-cloud-image w-[100vw] md:w-[80vw] -ml-40"
+ class="startup-cloud-image w-screen md:w-[80vw] -ml-40"
src={cloud2}
alt=""
/>
</div>
- <div class="absolute -bottom-[15%] left-1/2 -translate-x-1/2 opacity-70 pointer-events-none z-[1]">
+ <div class="absolute -bottom-[15%] left-1/2 -translate-x-1/2 opacity-70 pointer-events-none z-1">
<div ref={bindCloud3Inner}>
<img
class="startup-cloud-image w-[180vw] md:w-[180vw]"
@@ -611,7 +611,7 @@ function StepNavigation(props: {
onClick={props.onNext}
variant="primary"
size="md"
- class="gap-2 px-10 py-3 min-h-12 min-w-[9.5rem] text-[15px] font-medium"
+ class="gap-2 px-10 py-3 min-h-12 min-w-38 text-[15px] font-medium"
disabled={props.nextDisabled}
>
{props.nextLabel}
@@ -704,7 +704,7 @@ function ModesOverviewStep(props: { active: boolean }) {
<For each={modes}>
{(mode, index) => (
<div
- class="flex-1 flex flex-col items-center gap-3 p-5 rounded-2xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 ease-out shadow-sm"
+ class="flex-1 flex flex-col items-center gap-3 p-5 rounded-2xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 ease-out shadow-xs"
style={{
"transition-delay": `${200 + index() * 100}ms`,
opacity: visible() ? 1 : 0,
@@ -797,7 +797,7 @@ function ModeDetailStep(props: {
</div>
<div class="flex-1 min-w-0 flex items-center justify-center">
- <div class="w-full h-full relative rounded-2xl bg-white dark:bg-gray-2 border border-gray-4 overflow-visible shadow-sm">
+ <div class="w-full h-full relative rounded-2xl bg-white dark:bg-gray-2 border border-gray-4 overflow-visible shadow-xs">
{props.children}
</div>
</div>
@@ -1000,7 +1000,7 @@ function ShortcutsStep(props: { active: boolean }) {
<For each={settingsAreas}>
{(area, index) => (
<div
- class="flex flex-col gap-1 px-4 py-3 rounded-xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 shadow-sm"
+ class="flex flex-col gap-1 px-4 py-3 rounded-xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 shadow-xs"
style={{
"transition-delay": `${150 + index() * 80}ms`,
opacity: visible() ? 1 : 0,
@@ -1061,7 +1061,7 @@ function FaqStep(props: { active: boolean }) {
<div
class={cx(
- "w-full max-w-[480px] rounded-xl border border-gray-4 bg-white dark:bg-gray-2 overflow-hidden transition-all duration-500 delay-100 shadow-sm",
+ "w-full max-w-[480px] rounded-xl border border-gray-4 bg-white dark:bg-gray-2 overflow-hidden transition-all duration-500 delay-100 shadow-xs",
visible() ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4",
)}
>
@@ -1224,7 +1224,7 @@ function StartRecordingClickMock(props: {
<div class="relative w-full">
<div
class={cx(
- "flex h-11 w-full overflow-hidden rounded-full bg-gradient-to-r from-blue-10 via-blue-10 to-blue-11 text-white transition-transform duration-500 ease-out dark:from-blue-9 dark:via-blue-9 dark:to-blue-10",
+ "flex h-11 w-full overflow-hidden rounded-full bg-linear-to-r from-blue-10 via-blue-10 to-blue-11 text-white transition-transform duration-500 ease-out dark:from-blue-9 dark:via-blue-9 dark:to-blue-10",
cursorStage() === 2 && "scale-[0.98]",
)}
>
@@ -1284,28 +1284,28 @@ function RecordingBar(props: {
class?: string;
}) {
const actionIconWrap =
- "h-8 w-8 flex shrink-0 items-center justify-center rounded-lg p-[0.25rem] text-gray-11";
+ "h-8 w-8 flex shrink-0 items-center justify-center rounded-lg p-1 text-gray-11";
return (
<div class={cx("h-10 w-full min-w-[280px] rounded-2xl", props.class)}>
<div class="flex h-full w-full flex-row items-stretch overflow-hidden rounded-2xl border border-gray-5 bg-white dark:bg-gray-1 shadow-[0_1px_3px_rgba(0,0,0,0.1)]">
- <div class="flex min-w-0 flex-1 flex-col gap-2 p-[0.25rem]">
+ <div class="flex min-w-0 flex-1 flex-col gap-2 p-1">
<div class="flex min-h-0 flex-1 flex-row items-center justify-between">
<Show
when={!props.stopped}
fallback={
- <div class="flex flex-row items-center gap-[0.375rem] rounded-lg px-[0.5rem] py-[0.25rem] text-gray-10">
+ <div class="flex flex-row items-center gap-1.5 rounded-lg px-2 py-1 text-gray-10">
<div class="size-2 shrink-0 rounded-full bg-gray-8" />
- <span class="text-[0.875rem] font-[500]">Stopped</span>
+ <span class="text-[0.875rem] font-medium">Stopped</span>
</div>
}
>
<button
type="button"
- class="flex shrink-0 flex-row items-center gap-[0.25rem] rounded-lg px-[0.5rem] py-[0.25rem] text-red-300 transition-colors duration-100 hover:bg-red-500/[0.08] active:bg-red-500/[0.12]"
+ class="flex shrink-0 flex-row items-center gap-1 rounded-lg px-2 py-1 text-red-300 transition-colors duration-100 hover:bg-red-500/8 active:bg-red-500/12"
>
<IconCapStopCircle class="size-5 shrink-0" />
- <span class="text-[0.875rem] font-[500] tabular-nums">
+ <span class="text-[0.875rem] font-medium tabular-nums">
{props.time}
</span>
</button>
@@ -1342,7 +1342,7 @@ function RecordingBar(props: {
</div>
<div
class={cx(
- "flex w-9 shrink-0 cursor-default items-center justify-center border-l border-gray-5 p-[0.25rem] text-gray-10",
+ "flex w-9 shrink-0 cursor-default items-center justify-center border-l border-gray-5 p-1 text-gray-10",
props.stopped && "opacity-45",
)}
aria-hidden="true"
@@ -1395,20 +1395,20 @@ function InstantMockup(props: { active: boolean }) {
<div class="relative min-h-[52px] w-full max-w-[400px]">
<div
class={cx(
- "flex w-full justify-center transition-all duration-[720ms] ease-[cubic-bezier(0.34,1.3,0.64,1)]",
+ "flex w-full justify-center transition-all duration-720 ease-[cubic-bezier(0.34,1.3,0.64,1)]",
phase() === 1
- ? "relative z-[2] translate-y-0 scale-100 opacity-100"
- : "pointer-events-none absolute inset-0 z-[1] flex items-center justify-center opacity-0 scale-[0.94] -translate-y-2",
+ ? "relative z-2 translate-y-0 scale-100 opacity-100"
+ : "pointer-events-none absolute inset-0 z-1 flex items-center justify-center opacity-0 scale-[0.94] -translate-y-2",
)}
>
<StartRecordingClickMock active={phase() === 1} mode="instant" />
</div>
<div
class={cx(
- "w-full transition-all duration-[720ms] ease-[cubic-bezier(0.34,1.3,0.64,1)]",
+ "w-full transition-all duration-720 ease-[cubic-bezier(0.34,1.3,0.64,1)]",
phase() >= 2 && phase() < 7
- ? "relative z-[2] translate-y-0 scale-100 opacity-100"
- : "pointer-events-none absolute inset-0 z-[1] flex items-center justify-center opacity-0 scale-[0.94] translate-y-3",
+ ? "relative z-2 translate-y-0 scale-100 opacity-100"
+ : "pointer-events-none absolute inset-0 z-1 flex items-center justify-center opacity-0 scale-[0.94] translate-y-3",
)}
>
<div class="w-full shadow-[0_8px_30px_rgba(0,0,0,0.08)]">
@@ -1515,7 +1515,7 @@ function StudioMockup(props: { active: boolean }) {
<div class="relative flex-1 w-full max-w-[420px] min-h-[248px] mx-auto flex items-center justify-center">
<div
class={cx(
- "absolute inset-0 z-[1] flex flex-col items-center justify-center transition-opacity duration-[600ms] ease-out",
+ "absolute inset-0 z-1 flex flex-col items-center justify-center transition-opacity duration-600 ease-out",
showRecording()
? "opacity-100 blur-0"
: "pointer-events-none opacity-0 blur-[2px]",
@@ -1524,20 +1524,20 @@ function StudioMockup(props: { active: boolean }) {
<div class="relative min-h-[52px] w-full max-w-[400px]">
<div
class={cx(
- "flex w-full justify-center transition-all duration-[720ms] ease-[cubic-bezier(0.34,1.3,0.64,1)]",
+ "flex w-full justify-center transition-all duration-720 ease-[cubic-bezier(0.34,1.3,0.64,1)]",
phase() === 1
- ? "relative z-[2] translate-y-0 scale-100 opacity-100"
- : "pointer-events-none absolute inset-0 z-[1] flex items-center justify-center opacity-0 scale-[0.94] -translate-y-2",
+ ? "relative z-2 translate-y-0 scale-100 opacity-100"
+ : "pointer-events-none absolute inset-0 z-1 flex items-center justify-center opacity-0 scale-[0.94] -translate-y-2",
)}
>
<StartRecordingClickMock active={phase() === 1} mode="studio" />
</div>
<div
class={cx(
- "w-full transition-all duration-[720ms] ease-[cubic-bezier(0.34,1.3,0.64,1)]",
+ "w-full transition-all duration-720 ease-[cubic-bezier(0.34,1.3,0.64,1)]",
phase() >= 2 && phase() < 7
- ? "relative z-[2] translate-y-0 scale-100 opacity-100"
- : "pointer-events-none absolute inset-0 z-[1] flex items-center justify-center opacity-0 scale-[0.94] translate-y-3",
+ ? "relative z-2 translate-y-0 scale-100 opacity-100"
+ : "pointer-events-none absolute inset-0 z-1 flex items-center justify-center opacity-0 scale-[0.94] translate-y-3",
)}
>
<div class="w-full shadow-[0_8px_30px_rgba(0,0,0,0.08)]">
@@ -1552,7 +1552,7 @@ function StudioMockup(props: { active: boolean }) {
<div
class={cx(
- "absolute inset-0 flex flex-col rounded-xl overflow-hidden border border-gray-3 bg-white dark:bg-gray-1 shadow-lg transition-all duration-[600ms] ease-out z-[2]",
+ "absolute inset-0 flex flex-col rounded-xl overflow-hidden border border-gray-3 bg-white dark:bg-gray-1 shadow-lg transition-all duration-600 ease-out z-2",
showEditor()
? "opacity-100 scale-100 translate-y-0 blur-0"
: "opacity-0 scale-[0.96] translate-y-3 blur-[2px] pointer-events-none",
@@ -1600,7 +1600,7 @@ function StudioMockup(props: { active: boolean }) {
<div class="flex flex-col gap-1.5 p-3 w-full">
<div class="w-3/4 h-1.5 rounded-full bg-gray-5/50" />
<div class="w-1/2 h-1.5 rounded-full bg-gray-5/30" />
- <div class="w-full h-5 rounded bg-gray-5/20 mt-1" />
+ <div class="w-full h-5 rounded-sm bg-gray-5/20 mt-1" />
</div>
</div>
</div>
@@ -1617,13 +1617,13 @@ function StudioMockup(props: { active: boolean }) {
<div class="text-[8px] text-gray-9 font-medium uppercase tracking-wider">
Style
</div>
- <div class="h-5 rounded border border-gray-3 bg-white dark:bg-gray-2" />
+ <div class="h-5 rounded-sm border border-gray-3 bg-white dark:bg-gray-2" />
<div class="text-[8px] text-gray-9 font-medium uppercase tracking-wider mt-1">
Background
</div>
<div class="flex gap-1">
- <div class="size-4 rounded-full bg-gradient-to-br from-blue-400 to-purple-500 border border-gray-3" />
- <div class="size-4 rounded-full bg-gradient-to-br from-pink-400 to-orange-400 border border-gray-3" />
+ <div class="size-4 rounded-full bg-linear-to-br from-blue-400 to-purple-500 border border-gray-3" />
+ <div class="size-4 rounded-full bg-linear-to-br from-pink-400 to-orange-400 border border-gray-3" />
<div class="size-4 rounded-full bg-gray-4 border border-gray-3" />
</div>
</div>
@@ -1782,7 +1782,7 @@ function StartupOverlay(props: {
const tryPlay = () => {
if (!audioEl || audioEl.muted) return;
- void audioEl.play().catch(() => {});
+ void audioEl.play().catch(() => { });
};
tryPlay();
@@ -1804,7 +1804,7 @@ function StartupOverlay(props: {
setAudioState("isMuted", next);
if (audioEl) {
audioEl.muted = next;
- if (!next) void audioEl.play().catch(() => {});
+ if (!next) void audioEl.play().catch(() => { });
}
};
@@ -1830,14 +1830,14 @@ function StartupOverlay(props: {
return (
<div
class={cx(
- "absolute inset-0 z-50 flex flex-col min-h-full h-full overflow-hidden custom-bg transition-all duration-[600ms] text-solid-white bg-white",
+ "absolute inset-0 z-50 flex flex-col min-h-full h-full overflow-hidden custom-bg transition-all duration-600 text-solid-white bg-white",
props.isExiting && "opacity-0 scale-105 pointer-events-none",
)}
>
<div class="startup-grain" />
<div
- class="absolute top-3 z-[210]"
+ class="absolute top-3 z-210"
style={{
[ostype() === "macos" ? "right" : "left"]: "12px",
}}
@@ -1861,12 +1861,12 @@ function StartupOverlay(props: {
<div
ref={bindCloud1}
class={cx(
- "absolute top-0 right-0 opacity-70 pointer-events-none startup-cloud-1 z-[1]",
+ "absolute top-0 right-0 opacity-70 pointer-events-none startup-cloud-1 z-1",
props.isExiting && "startup-cloud-transition exiting",
)}
>
<img
- class="startup-cloud-image w-[100vw] md:w-[80vw] -mr-40"
+ class="startup-cloud-image w-screen md:w-[80vw] -mr-40"
src={cloud1}
alt=""
/>
@@ -1874,19 +1874,19 @@ function StartupOverlay(props: {
<div
ref={bindCloud2}
class={cx(
- "absolute top-0 left-0 opacity-70 pointer-events-none startup-cloud-2 z-[1]",
+ "absolute top-0 left-0 opacity-70 pointer-events-none startup-cloud-2 z-1",
props.isExiting && "startup-cloud-transition exiting",
)}
>
<img
- class="startup-cloud-image w-[100vw] md:w-[80vw] -ml-40"
+ class="startup-cloud-image w-screen md:w-[80vw] -ml-40"
src={cloud2}
alt=""
/>
</div>
<div
class={cx(
- "absolute -bottom-[15%] left-1/2 -translate-x-1/2 opacity-70 pointer-events-none z-[1]",
+ "absolute -bottom-[15%] left-1/2 -translate-x-1/2 opacity-70 pointer-events-none z-1",
props.isExiting && "startup-cloud-transition startup-cloud-3 exiting",
)}
>
@@ -1901,7 +1901,7 @@ function StartupOverlay(props: {
<div
class={cx(
- "flex flex-col items-center justify-center flex-1 relative px-4 z-[5]",
+ "flex flex-col items-center justify-center flex-1 relative px-4 z-5",
props.isExiting && "opacity-0 scale-[1.1]",
)}
style={{ transition: "all 600ms cubic-bezier(0.4, 0, 0.2, 1)" }}
@@ -1932,7 +1932,7 @@ function StartupOverlay(props: {
<span>Get Started</span>
<span class="text-[11px] font-normal text-[rgba(22,27,38,0.58)] leading-tight inline-flex items-center justify-center gap-1">
<span>Click here, or press</span>
- <kbd class="rounded border border-[rgba(22,27,38,0.14)] bg-[rgba(22,27,38,0.08)] px-1 py-px text-[10px] font-medium text-[#161b26] shadow-[0_1px_0_rgba(255,255,255,0.7)_inset]">
+ <kbd class="rounded border border-gray-6 bg-white dark:bg-gray-3 px-1 py-px text-[10px] font-medium text-gray-11 shadow-[0_1px_0_rgba(0,0,0,0.04)]">
Space
</kbd>
</span>
@@ -2029,7 +2029,7 @@ function PermissionsStep(props: {
}
} catch (err) {
console.error(`Error requesting permission: ${err}`);
- fetchPermissions().catch(() => {});
+ fetchPermissions().catch(() => { });
} finally {
setRequestingPermission(false);
}
@@ -2088,7 +2088,7 @@ function PermissionsStep(props: {
return (
<Show when={permStatus() !== "notNeeded"}>
<div
- class="flex items-center gap-4 px-4 py-3 rounded-xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 shadow-sm"
+ class="flex items-center gap-4 px-4 py-3 rounded-xl border border-gray-4 bg-white dark:bg-gray-2 transition-all duration-500 shadow-xs"
style={{
"transition-delay": `${150 + index() * 80}ms`,
opacity: visible() ? 1 : 0,
@@ -2127,13 +2127,13 @@ function PermissionsStep(props: {
disabled={requestingPermission()}
onClick={() =>
permission.requiresManualGrant ||
- permStatus() === "denied"
+ permStatus() === "denied"
? openSettings(permission.key)
: requestPermission(permission.key)
}
>
{permission.requiresManualGrant ||
- permStatus() === "denied"
+ permStatus() === "denied"
? "Open Settings"
: "Grant"}
</Button>
@@ -2300,13 +2300,13 @@ function ScreenshotMockup(props: { active: boolean }) {
<div class="size-2 rounded-full bg-gray-6" />
</div>
<div class="flex items-center gap-1.5 absolute left-1/2 -translate-x-1/2">
- <div class="size-4 rounded bg-white dark:bg-gray-3 border border-gray-4" />
- <div class="size-4 rounded bg-white dark:bg-gray-3 border border-gray-4" />
+ <div class="size-4 rounded-sm bg-white dark:bg-gray-3 border border-gray-4" />
+ <div class="size-4 rounded-sm bg-white dark:bg-gray-3 border border-gray-4" />
<div class="w-px h-5 bg-gray-4 mx-0.5" />
- <div class="size-4 rounded bg-blue-3 border border-blue-5" />
- <div class="size-4 rounded bg-white dark:bg-gray-3 border border-gray-4" />
+ <div class="size-4 rounded-sm bg-blue-3 border border-blue-5" />
+ <div class="size-4 rounded-sm bg-white dark:bg-gray-3 border border-gray-4" />
<div class="w-px h-5 bg-gray-4 mx-0.5" />
- <div class="size-4 rounded bg-white dark:bg-gray-3 border border-gray-4" />
+ <div class="size-4 rounded-sm bg-white dark:bg-gray-3 border border-gray-4" />
</div>
<div class="flex flex-1 flex-row items-center justify-end gap-1.5">
<div class="flex items-center gap-1 px-2 py-1 rounded-md bg-white dark:bg-gray-3 border border-gray-4 text-[9px] text-gray-11 font-medium">
@@ -2321,9 +2321,9 @@ function ScreenshotMockup(props: { active: boolean }) {
</div>
<div class="p-3 flex items-center justify-center">
- <div class="relative w-full h-[140px] rounded overflow-hidden">
+ <div class="relative w-full h-[140px] rounded-sm overflow-hidden">
<div
- class="absolute inset-0 transition-opacity duration-[1000ms] ease-out"
+ class="absolute inset-0 transition-opacity duration-1000 ease-out"
style={{
background:
"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
@@ -2332,7 +2332,7 @@ function ScreenshotMockup(props: { active: boolean }) {
/>
<div
- class="absolute transition-all duration-[1000ms] ease-out"
+ class="absolute transition-all duration-1000 ease-out"
style={{
top: phase() >= 8 ? "8%" : "0",
left: phase() >= 8 ? "8%" : "0",
@@ -2341,7 +2341,7 @@ function ScreenshotMockup(props: { active: boolean }) {
}}
>
<div
- class="w-full h-full bg-white dark:bg-gray-3 flex flex-col gap-2 p-3 transition-all duration-[1000ms]"
+ class="w-full h-full bg-white dark:bg-gray-3 flex flex-col gap-2 p-3 transition-all duration-1000"
style={{
"border-radius": phase() >= 8 ? "8px" : "0px",
"box-shadow":
@@ -2352,8 +2352,8 @@ function ScreenshotMockup(props: { active: boolean }) {
<div class="w-28 h-2 rounded-full bg-gray-5/40" />
<div class="w-20 h-2 rounded-full bg-gray-5/50" />
<div class="mt-1 flex gap-2">
- <div class="flex-1 h-8 rounded bg-gray-5/30" />
- <div class="flex-1 h-8 rounded bg-gray-5/20" />
+ <div class="flex-1 h-8 rounded-sm bg-gray-5/30" />
+ <div class="flex-1 h-8 rounded-sm bg-gray-5/20" />
</div>
</div>
</div>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsx
index 2bddbee20..df6e6b3f6 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx
@@ -22,9 +22,9 @@ export default function Settings(props: RouteSectionProps) {
};
return (
- <div class="flex-1 flex flex-row divide-x divide-gray-3 text-[0.875rem] leading-[1.25rem] overflow-y-hidden">
+ <div class="flex-1 flex flex-row divide-x divide-gray-3 text-[0.875rem] leading-5 overflow-y-hidden">
<div class="flex flex-col h-full bg-gray-2">
- <ul class="min-w-[12rem] h-full p-[0.625rem] space-y-1 text-gray-12">
+ <ul class="min-w-48 h-full p-2.5 space-y-1 text-gray-12">
<For
each={[
{
@@ -84,7 +84,7 @@ export default function Settings(props: RouteSectionProps) {
<A
href={item.href}
activeClass="bg-gray-5 pointer-events-none"
- class="rounded-lg h-[2rem] hover:bg-gray-3 text-[13px] px-2 flex flex-row items-center gap-[0.375rem] transition-colors"
+ class="rounded-lg h-8 hover:bg-gray-3 text-[13px] px-2 flex flex-row items-center gap-1.5 transition-colors"
>
<item.icon class="opacity-60 size-4" />
<span>{item.name}</span>
@@ -93,7 +93,7 @@ export default function Settings(props: RouteSectionProps) {
)}
</For>
</ul>
- <div class="p-[0.625rem] text-left flex flex-col">
+ <div class="p-2.5 text-left flex flex-col">
<Show when={version()}>
{(v) => (
<div class="mb-2 text-xs text-gray-11 flex flex-col items-start gap-0.5">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
index 958ae70ef..130c3e505 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
@@ -58,7 +58,7 @@ export default function Page() {
>
<ErrorBoundary
fallback={(e) => (
- <div class="text-[--text-primary] font-medium">
+ <div class="text-(--text-primary) font-medium">
{e.toString()}
</div>
)}
@@ -66,20 +66,20 @@ export default function Page() {
<ul class="space-y-8">
<For each={changelog.data}>
{(entry, i) => (
- <li class="border-b-2 border-[--gray-200] pb-8 last:border-b-0">
+ <li class="border-b-2 border-(--gray-200) pb-8 last:border-b-0">
<div class="flex mb-2">
<Show when={i() === 0}>
- <div class="bg-[--blue-400] text-[--text-primary] px-2 py-1 rounded-md uppercase font-bold">
+ <div class="bg-(--blue-400) text-(--text-primary) px-2 py-1 rounded-md uppercase font-bold">
<span style="color: #fff" class="text-xs">
New
</span>
</div>
</Show>
</div>
- <h3 class="font-semibold text-[--text-primary] mb-2">
+ <h3 class="font-semibold text-(--text-primary) mb-2">
{entry.title}
</h3>
- <div class="text-[--text-tertiary] text-sm mb-4">
+ <div class="text-(--text-tertiary) text-sm mb-4">
Version {entry.version} -{" "}
{new Date(entry.publishedAt).toLocaleDateString()}
</div>
@@ -87,7 +87,7 @@ export default function Page() {
components={{
a: (props) => <a {...props} target="_blank" />,
}}
- class="prose dark:prose-invert prose-sm max-w-none text-[--text-tertiary]"
+ class="prose dark:prose-invert prose-sm max-w-none text-(--text-tertiary)"
>
{entry.content}
</SolidMarkdown>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
index 8e59e5af9..1c2f5deb1 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
@@ -81,7 +81,7 @@ export default function FeedbackTab() {
placeholder="Tell us what you think about Cap..."
required
minLength={10}
- class="p-2 w-full h-32 text-[13px] rounded-md border transition-colors duration-200 resize-none bg-gray-2 placeholder:text-gray-10 border-gray-3 text-primary focus:outline-none focus:ring-1 focus:ring-gray-8 hover:border-gray-6"
+ class="p-2 w-full h-32 text-[13px] rounded-md border transition-colors duration-200 resize-none bg-gray-2 placeholder:text-gray-10 border-gray-3 text-primary focus:outline-hidden focus:ring-1 focus:ring-gray-8 hover:border-gray-6"
/>
</div>
@@ -176,7 +176,7 @@ export default function FeedbackTab() {
<p class="text-gray-11 font-medium">
Operating System
</p>
- <p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">
+ <p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded-sm font-mono text-xs">
{ver().displayName}
</p>
</div>
@@ -207,7 +207,7 @@ export default function FeedbackTab() {
<div class="flex gap-1.5 flex-wrap">
<For each={d.availableEncoders as string[]}>
{(encoder) => (
- <span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">
+ <span class="px-2 py-1 bg-gray-2 rounded-sm text-xs text-gray-10 font-mono">
{encoder}
</span>
)}
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
index fbd86ba97..3ee7e0f46 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
@@ -144,12 +144,12 @@ function AppearanceSection(props: {
<button
type="button"
aria-checked={props.currentTheme === theme.id}
- class="flex flex-col items-center rounded-md group focus:outline-none focus-visible:ring-gray-300 focus-visible:ring-offset-gray-50 focus-visible:ring-offset-2 focus-visible:ring-4"
+ class="flex flex-col items-center rounded-md group focus:outline-hidden focus-visible:ring-gray-300 focus-visible:ring-offset-gray-50 focus-visible:ring-offset-2 focus-visible:ring-4"
onClick={() => props.onThemeChange(theme.id)}
>
<div
class={cx(
- `w-24 h-[4.8rem] rounded-md overflow-hidden focus:outline-none ring-offset-gray-50 transition-all duration-200`,
+ `w-24 h-[4.8rem] rounded-md overflow-hidden focus:outline-hidden ring-offset-gray-50 transition-all duration-200`,
{
"ring-2 ring-gray-12 ring-offset-2":
props.currentTheme === theme.id,
@@ -779,7 +779,7 @@ function DefaultProjectNameCard(props: {
Choose the template to use as the default project and file name.
</p>
</div>
- <div class="flex flex-shrink-0 gap-2">
+ <div class="flex shrink-0 gap-2">
<Button
size="sm"
variant="gray"
@@ -831,7 +831,7 @@ function DefaultProjectNameCard(props: {
</div>
<Collapsible class="w-full rounded-lg">
- <Collapsible.Trigger class="group inline-flex items-center w-full text-xs rounded-lg outline-none px-0.5 py-1">
+ <Collapsible.Trigger class="group inline-flex items-center w-full text-xs rounded-lg outline-hidden px-0.5 py-1">
<IconCapChevronDown class="size-4 ui-group-expanded:rotate-180 transition-transform duration-300 ease-in-out" />
<p class="py-0.5 px-1">How to customize?</p>
</Collapsible.Trigger>
@@ -979,7 +979,7 @@ function ExcludedWindowsCard(props: {
</p>
</Show>
</div>
- <div class="flex flex-shrink-0 gap-2">
+ <div class="flex shrink-0 gap-2">
<Button
variant="gray"
size="sm"
@@ -1055,8 +1055,8 @@ function ExcludedWindowsSkeleton() {
{(width) => (
<div class="flex items-center gap-2 rounded-full border border-gray-4 bg-gray-3 px-3 py-1.5 animate-pulse">
<div class="flex flex-col gap-1 leading-tight">
- <div class={cx("h-3 rounded bg-gray-4", width)} />
- <div class="h-2 w-16 rounded bg-gray-4" />
+ <div class={cx("h-3 rounded-sm bg-gray-4", width)} />
+ <div class="h-2 w-16 rounded-sm bg-gray-4" />
</div>
<div class="size-6 rounded-full bg-gray-4" />
</div>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
index 02dc94e75..1e4c4ce79 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
@@ -133,7 +133,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {
>
{(binding) => <HotkeyText binding={binding()} />}
</Show>
- <div class="flex flex-row items-center gap-[0.125rem]">
+ <div class="flex flex-row items-center gap-0.5">
<Show when={hotkeys[item()]}>
<button
class="w-fit"
@@ -237,7 +237,7 @@ function HotkeyText(props: { binding: Hotkey }) {
<div class="flex gap-1 items-center w-fit group">
<For each={keys}>
{(key) => (
- <kbd class="inline-flex justify-center text-xs items-center px-1.5 text-[13px] font-medium rounded border h-6 min-w-6 text-gray-11 bg-gray-5 border-gray-6 group-hover:border-gray-8 transition-colors duration-200 group-hover:bg-gray-7">
+ <kbd class="inline-flex justify-center w-fit text-xs items-center p-2 text-[13px] font-medium rounded-sm border size-6 text-gray-11 bg-gray-5 border-gray-6 group-hover:border-gray-8 transition-colors duration-200 group-hover:bg-gray-7">
{key}
</kbd>
)}
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
index 70a6849d3..95b1bba89 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
@@ -124,7 +124,7 @@ export default function S3ConfigPage() {
<div class="space-y-2">
<label class="text-[13px] text-gray-12">{label}</label>
<Input
- class="!bg-gray-3"
+ class="bg-gray-3!"
type={type}
value={s3Config()[key] ?? ""}
onInput={(e: InputEvent & { currentTarget: HTMLInputElement }) =>
@@ -181,7 +181,7 @@ export default function S3ConfigPage() {
provider: e.currentTarget.value,
}))
}
- class="px-3 py-2 pr-10 w-full rounded-lg border border-transparent transition-all duration-200 appearance-none outline-none bg-gray-3 focus:border-gray-8"
+ class="px-3 py-2 pr-10 w-full rounded-lg border border-transparent transition-all duration-200 appearance-none outline-hidden bg-gray-3 focus:border-gray-8"
>
<option value="aws">AWS S3</option>
<option value="cloudflare">Cloudflare R2</option>
@@ -225,7 +225,7 @@ export default function S3ConfigPage() {
</Suspense>
</div>
</div>
- <div class="flex-shrink-0 mt-5">
+ <div class="shrink-0 mt-5">
<fieldset
class="flex justify-between items-center"
disabled={
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
index 1b33c3653..052f4f268 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
@@ -206,7 +206,7 @@ function CommercialLicensePurchase() {
return (
<>
- <div class="w-full max-w-[700px] rounded-xl shadow-sm bg-gray-2">
+ <div class="w-full max-w-[700px] rounded-xl shadow-xs bg-gray-2">
<div class="flex flex-col md:flex-row">
{/* Left Column */}
<div
@@ -235,7 +235,7 @@ function CommercialLicensePurchase() {
<h3 class="text-2xl font-medium tracking-tight leading-5">
Commercial License
</h3>
- <p class="mt-2 text-sm text-[--text-tertiary]">
+ <p class="mt-2 text-sm text-(--text-tertiary)">
For commercial use
</p>
</div>
@@ -263,7 +263,7 @@ function CommercialLicensePurchase() {
onClick={() => openCommercialCheckout.mutate()}
disabled={openCommercialCheckout.isPending}
variant="dark"
- class="w-full !rounded-full mt-10 !h-[48px] text-lg font-medium"
+ class="w-full rounded-full! mt-10 h-[48px]! text-lg font-medium"
size="lg"
>
{openCommercialCheckout.isPending
@@ -283,9 +283,9 @@ function CommercialLicensePurchase() {
].map((feature) => (
<li class="flex justify-start items-center">
<div class="flex justify-center items-center p-0 m-0 w-6 h-6">
- <IconLucideCheck class="w-4 h-4 text-[--text-primary]" />
+ <IconLucideCheck class="w-4 h-4 text-(--text-primary)" />
</div>
- <span class="ml-1 text-[0.9rem] text-[--text-primary]">
+ <span class="ml-1 text-[0.9rem] text-(--text-primary)">
{feature}
</span>
</li>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
index d1e8d570b..b26eb60c9 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
@@ -194,7 +194,7 @@ export default function Recordings() {
<Show
when={recordings.data && recordings.data.length > 0}
fallback={
- <p class="text-center text-[--text-tertiary] absolute flex items-center justify-center w-full h-full">
+ <p class="text-center text-(--text-tertiary) absolute flex items-center justify-center w-full h-full">
No recordings found
</p>
}
@@ -243,11 +243,11 @@ export default function Recordings() {
<div class="flex relative flex-col flex-1 mt-4 rounded-xl border custom-scroll bg-gray-2 border-gray-3">
<Show when={filteredRecordings().length === 0}>
- <p class="text-center text-[--text-tertiary] absolute flex items-center justify-center w-full h-full">
+ <p class="text-center text-(--text-tertiary) absolute flex items-center justify-center w-full h-full">
{emptyMessage()}
</p>
</Show>
- <ul class="flex flex-col w-full text-[--text-primary]">
+ <ul class="flex flex-col w-full text-(--text-primary)">
<For each={visibleRecordings()}>
{(recording) => (
<RecordingItem
@@ -315,7 +315,7 @@ function RecordingItem(props: {
}
}}
class={cx(
- "flex flex-row justify-between p-3 [&:not(:last-child)]:border-b [&:not(:last-child)]:border-gray-3 items-center w-full transition-colors duration-200",
+ "flex flex-row justify-between p-3 not-last:border-b not-last:border-gray-3 items-center w-full transition-colors duration-200",
studioCompleteCheck()
? "cursor-pointer hover:bg-gray-3"
: "cursor-default",
@@ -324,10 +324,10 @@ function RecordingItem(props: {
<div class="flex gap-5 items-center">
<Show
when={imageExists()}
- fallback={<div class="mr-4 rounded bg-gray-10 size-11" />}
+ fallback={<div class="mr-4 rounded-sm bg-gray-10 size-11" />}
>
<img
- class="object-cover rounded size-12"
+ class="object-cover rounded-sm size-12"
alt="Recording thumbnail"
src={`${convertFileSrc(
props.recording.thumbnailPath,
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
index 4d191bd7a..d867bba73 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
@@ -124,7 +124,7 @@ export default function Screenshots() {
<Show
when={screenshots.data && screenshots.data.length > 0}
fallback={
- <p class="text-center text-[--text-tertiary] absolute flex items-center justify-center w-full h-full">
+ <p class="text-center text-(--text-tertiary) absolute flex items-center justify-center w-full h-full">
No screenshots found
</p>
}
@@ -155,11 +155,11 @@ export default function Screenshots() {
<div class="flex relative flex-col flex-1 mt-4 rounded-xl border custom-scroll bg-gray-2 border-gray-3">
<Show when={filteredScreenshots().length === 0}>
- <p class="text-center text-[--text-tertiary] absolute flex items-center justify-center w-full h-full">
+ <p class="text-center text-(--text-tertiary) absolute flex items-center justify-center w-full h-full">
{emptyMessage()}
</p>
</Show>
- <ul class="flex flex-col w-full text-[--text-primary]">
+ <ul class="flex flex-col w-full text-(--text-primary)">
<For each={visibleScreenshots()}>
{(screenshot) => (
<ScreenshotItem
@@ -208,15 +208,15 @@ function ScreenshotItem(props: {
return (
<li
onClick={props.onClick}
- class="flex flex-row justify-between p-3 [&:not(:last-child)]:border-b [&:not(:last-child)]:border-gray-3 items-center w-full cursor-pointer hover:bg-gray-3 transition-colors duration-200"
+ class="flex flex-row justify-between p-3 not-last:border-b not-last:border-gray-3 items-center w-full cursor-pointer hover:bg-gray-3 transition-colors duration-200"
>
<div class="flex gap-5 items-center">
<Show
when={imageExists()}
- fallback={<div class="mr-4 rounded bg-gray-10 size-11" />}
+ fallback={<div class="mr-4 rounded-sm bg-gray-10 size-11" />}
>
<img
- class="object-cover rounded size-12"
+ class="object-cover rounded-sm size-12"
alt="Screenshot thumbnail"
src={convertFileSrc(props.screenshot.path)}
onError={() => setImageExists(false)}
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx b/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
index b94500d1a..d189c52ee 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
@@ -129,7 +129,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
Clear
</Button>
</Show>
- <span class="text-xs text-gray-11 min-w-[3.75rem] text-right">
+ <span class="text-xs text-gray-11 min-w-15 text-right">
{saveState() === "saving"
? "Saving..."
: saveState() === "saved"
@@ -154,7 +154,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
autocapitalize="off"
autocomplete="off"
autocorrect="off"
- class="flex-1 px-3 py-2 bg-gray-1 border border-gray-3 rounded-md text-gray-12 placeholder:text-gray-10 focus:outline-none focus:ring-1 focus:ring-gray-8 hover:border-gray-6"
+ class="flex-1 px-3 py-2 bg-gray-1 border border-gray-3 rounded-md text-gray-12 placeholder:text-gray-10 focus:outline-hidden focus:ring-1 focus:ring-gray-8 hover:border-gray-6"
/>
<Button
onClick={addHint}
diff --git a/apps/desktop/src/routes/(window-chrome)/update.tsx b/apps/desktop/src/routes/(window-chrome)/update.tsx
index b6f58badd..0ff90cd6c 100644
--- a/apps/desktop/src/routes/(window-chrome)/update.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/update.tsx
@@ -22,15 +22,15 @@ export default function () {
});
return (
- <div class="flex flex-col justify-center flex-1 items-center gap-[3rem] p-[1rem] text-[0.875rem] font-[400] h-full">
+ <div class="flex flex-col justify-center flex-1 items-center gap-12 p-4 text-[0.875rem] font-normal h-full">
<Show when={updateError()}>
<div class="flex flex-col gap-4 items-center text-center max-w-md">
- <p class="text-[--text-primary]">{updateError()}</p>
- <p class="text-[--text-tertiary]">
+ <p class="text-(--text-primary)">{updateError()}</p>
+ <p class="text-(--text-tertiary)">
Please download the latest version manually from cap.so/download.
Your data will not be lost.
</p>
- <p class="text-[--text-tertiary] text-xs">
+ <p class="text-(--text-tertiary) text-xs">
If this issue persists, please contact support.
</p>
<Button onClick={() => navigate("/")}>Go Back</Button>
@@ -40,7 +40,7 @@ export default function () {
when={!updateError() && update()}
fallback={
!updateError() && (
- <span class="text-[--text-tertiary]">No update available</span>
+ <span class="text-(--text-tertiary)">No update available</span>
)
}
keyed
@@ -95,12 +95,12 @@ export default function () {
<div>
<Switch
fallback={
- <IconCapLogo class="animate-spin size-4 text-[--text-primary]" />
+ <IconCapLogo class="animate-spin size-4 text-(--text-primary)" />
}
>
<Match when={updateStatus()?.type === "done"}>
<div class="flex flex-col gap-4 items-center">
- <p class="text-[--text-tertiary]">
+ <p class="text-(--text-tertiary)">
Update has been installed. Restart Cap to finish updating.
</p>
<Button onClick={() => relaunch()}>Restart Now</Button>
@@ -119,7 +119,7 @@ export default function () {
>
{(status) => (
<>
- <h1 class="text-[--text-primary] mb-4">
+ <h1 class="text-(--text-primary) mb-4">
Installing Update
</h1>
diff --git a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx
index a48a27d00..13a57bcb2 100644
--- a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx
@@ -274,7 +274,7 @@ export default function Page() {
)}
{!upgradeComplete() &&
(license.data?.type === "commercial" ? (
- <div class="p-8 mx-auto w-full max-w-[700px] rounded-xl border shadow-sm bg-gray-2 border-gray-3">
+ <div class="p-8 mx-auto w-full max-w-[700px] rounded-xl border shadow-xs bg-gray-2 border-gray-3">
<div class="space-y-6">
<div class="flex flex-col items-center mb-6 text-center">
<h3 class="text-2xl font-medium">Commercial License</h3>
@@ -327,7 +327,7 @@ export default function Page() {
) : (
<>
<div class="text-center">
- <h1 class="text-4xl md:text-4xl mb-6 tracking-[-.05em] font-medium text-[--text-primary]">
+ <h1 class="text-4xl md:text-4xl mb-6 tracking-[-.05em] font-medium text-(--text-primary)">
Early Adopter Pricing
</h1>
</div>
@@ -351,7 +351,7 @@ export default function Page() {
riveInstance.play("card-stack");
}
}}
- class="flex flex-col flex-1 justify-between p-3 h-[700px ] bg-gray-3 rounded-2xl border border-gray-3 shadow-sm text-card-foreground md:p-3"
+ class="flex flex-col flex-1 justify-between p-3 h-[700px ] bg-gray-3 rounded-2xl border border-gray-3 shadow-xs text-card-foreground md:p-3"
>
<div class="space-y-5">
<div class="flex flex-col gap-6 items-center">
@@ -360,7 +360,7 @@ export default function Page() {
<h3 class="text-2xl font-medium tracking-tight leading-5">
Commercial License
</h3>
- <p class="mt-2 text-sm text-[--text-tertiary]">
+ <p class="mt-2 text-sm text-(--text-tertiary)">
For commercial use
</p>
</div>
@@ -401,9 +401,9 @@ export default function Page() {
].map((feature) => (
<li class="flex justify-start items-center">
<div class="flex justify-center items-center p-0 m-0 w-6 h-6">
- <IconLucideCheck class="w-4 h-4 text-[--text-primary]" />
+ <IconLucideCheck class="w-4 h-4 text-(--text-primary)" />
</div>
- <span class="ml-1 text-[0.9rem] text-[--text-primary]">
+ <span class="ml-1 text-[0.9rem] text-(--text-primary)">
{feature}
</span>
</li>
@@ -420,7 +420,7 @@ export default function Page() {
onClick={() => openCommercialCheckout.mutate()}
disabled={openCommercialCheckout.isPending}
variant="dark"
- class="w-full !rounded-full !h-[48px] text-lg font-medium"
+ class="w-full rounded-full! h-[48px]! text-lg font-medium"
size="lg"
>
{openCommercialCheckout.isPending
@@ -456,7 +456,7 @@ export default function Page() {
riveInstance.play("items-coming-in");
}
}}
- class="flex-grow p-3 h-[700px] flex-1 bg-gray-12 rounded-2xl border shadow-sm text-card-foreground md:p-3"
+ class="grow p-3 h-[700px] flex-1 bg-gray-12 rounded-2xl border shadow-xs text-card-foreground md:p-3"
>
<div class="flex flex-col justify-between space-y-5 h-full">
<div class="flex flex-col gap-6 items-center px-6">
@@ -511,7 +511,7 @@ export default function Page() {
</div>
<Button
variant="blue"
- class="!rounded-full !text-lg w-full mx-auto"
+ class="rounded-full! text-lg! w-full mx-auto"
onClick={openCheckoutInExternalBrowser}
>
{loading() ? "Loading..." : "Upgrade to Cap Pro"}
diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsx
index 18c063c46..0f2297917 100644
--- a/apps/desktop/src/routes/camera.tsx
+++ b/apps/desktop/src/routes/camera.tsx
@@ -319,7 +319,7 @@ function NativeCameraPreviewPage(props: { disconnected: Accessor<boolean> }) {
<div class="h-13">
<div class="flex flex-row justify-center items-center">
<div
- class="flex flex-row gap-[0.25rem] p-[0.25rem] opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10"
+ class="flex flex-row gap-1 p-1 opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10"
style={{ transform: `scale(${scale()})` }}
>
<ControlButton onClick={() => getCurrentWindow().close()}>
@@ -1059,7 +1059,7 @@ function LegacyCameraPreviewPage(props: { disconnected: Accessor<boolean> }) {
<div class="h-14">
<div class="flex flex-row justify-center items-center">
<div
- class="flex flex-row gap-[0.25rem] p-[0.25rem] opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10"
+ class="flex flex-row gap-1 p-1 opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10"
style={{ transform: `scale(${scale()})` }}
>
<ControlButton onClick={() => getCurrentWindow().close()}>
@@ -1246,7 +1246,7 @@ function cameraBorderRadius(state: CameraWindowState) {
function CameraDisconnectedOverlay() {
return (
<div
- class="absolute inset-0 z-50 flex items-center justify-center bg-black/75 backdrop-blur-sm px-4 pointer-events-none"
+ class="absolute inset-0 z-50 flex items-center justify-center bg-black/75 backdrop-blur-xs px-4 pointer-events-none"
style={{ "border-radius": "inherit" }}
>
<p class="text-center text-sm font-medium text-white/90">
diff --git a/apps/desktop/src/routes/capture-area.tsx b/apps/desktop/src/routes/capture-area.tsx
index 280ad95e2..c5abe8bcb 100644
--- a/apps/desktop/src/routes/capture-area.tsx
+++ b/apps/desktop/src/routes/capture-area.tsx
@@ -179,10 +179,10 @@ export default function CaptureArea() {
<Transition
appear
enterClass="-translate-y-5 scale-75 opacity-0 blur-lg"
- enterActiveClass="duration-500 [transition-timing-function:cubic-bezier(0.175,0.885,0.12,1.175)]"
+ enterActiveClass="duration-500 ease-[cubic-bezier(0.175,0.885,0.12,1.175)]"
enterToClass="translate-y-0 scale-100 opacity-100"
exitClass="translate-y-0 scale-100 opacity-100"
- exitActiveClass="duration-500 [transition-timing-function:cubic-bezier(0.275,0.05,0.22,1.3)]"
+ exitActiveClass="duration-500 ease-[cubic-bezier(0.275,0.05,0.22,1.3)]"
exitToClass="-translate-y-5 scale-75 opacity-0 blur-lg"
>
<Show when={visible()}>
@@ -208,7 +208,7 @@ export default function CaptureArea() {
>
<IconLucideRotateCcw class="group-active:scale-90 transition-transform size-5 *:pointer-events-none" />
</button>
- <div class="inline-block my-3 w-[1px] self-stretch bg-gray-3" />
+ <div class="inline-block my-3 w-px self-stretch bg-gray-3" />
<button
title="Fill"
class="group flex items-center justify-center size-10 text-gray-11 hover:bg-gray-5 active:bg-gray-6 rounded-full transition-colors duration-200 cursor-default"
@@ -217,7 +217,7 @@ export default function CaptureArea() {
>
<IconLucideExpand class="group-active:scale-90 transition-transform size-5 *:pointer-events-none" />
</button>
- <div class="inline-block my-3 w-[1px] self-stretch bg-gray-3" />
+ <div class="inline-block my-3 w-px self-stretch bg-gray-3" />
<button
title="Aspect Ratio"
class="group flex items-center justify-center size-10 text-gray-11 hover:bg-gray-5 active:bg-gray-6 rounded-full transition-colors duration-200 cursor-default"
@@ -231,7 +231,7 @@ export default function CaptureArea() {
</Show>
<Transition
enterClass="scale-50 opacity-0 blur-md"
- enterActiveClass="duration-200 [transition-timing-function:cubic-bezier(0.215,0.61,0.355,1)]"
+ enterActiveClass="duration-200 ease-[cubic-bezier(0.215,0.61,0.355,1)]"
enterToClass="scale-100 opacity-100 blur-0"
exitClass="opacity-0"
exitActiveClass="duration-0"
diff --git a/apps/desktop/src/routes/debug.tsx b/apps/desktop/src/routes/debug.tsx
index 9598426a3..dcb1c4a2b 100644
--- a/apps/desktop/src/routes/debug.tsx
+++ b/apps/desktop/src/routes/debug.tsx
@@ -57,17 +57,17 @@ export default function Debug() {
const orderedFails = () => Object.entries(fails.data ?? {});
return (
- <main class="w-full h-full bg-gray-2 text-[--text-primary] p-4">
+ <main class="w-full h-full bg-gray-2 text-(--text-primary) p-4">
<h2 class="text-2xl font-bold">Debug Windows</h2>
<div class="p-2 mb-4">
<button
- class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded"
+ class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-sm"
onClick={() => commands.showWindow("Onboarding")}
>
Show Onboarding Window
</button>
<button
- class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded"
+ class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-sm"
onClick={() =>
commands.showWindow({ InProgressRecording: { countdown: 3 } })
}
@@ -78,25 +78,25 @@ export default function Debug() {
<h2 class="text-2xl font-bold mt-4">Updates</h2>
<div class="p-2 mb-4">
- <p class="mb-2 text-sm text-[--text-secondary]">
+ <p class="mb-2 text-sm text-(--text-secondary)">
Current version: v{version()}
</p>
<div class="flex flex-row gap-2 items-center">
<button
- class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded disabled:opacity-50"
+ class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-sm disabled:opacity-50"
onClick={checkForUpdates}
disabled={isChecking()}
>
Check for Updates
</button>
<button
- class="bg-green-500 hover:bg-green-600 text-white font-medium py-2 px-4 rounded"
+ class="bg-green-500 hover:bg-green-600 text-white font-medium py-2 px-4 rounded-sm"
onClick={() => navigate("/update")}
>
Go to Update Page
</button>
<button
- class="bg-purple-500 hover:bg-purple-600 text-white font-medium py-2 px-4 rounded disabled:opacity-50"
+ class="bg-purple-500 hover:bg-purple-600 text-white font-medium py-2 px-4 rounded-sm disabled:opacity-50"
onClick={simulateUpdatePopup}
disabled={isChecking()}
>
diff --git a/apps/desktop/src/routes/editor/AspectRatioSelect.tsx b/apps/desktop/src/routes/editor/AspectRatioSelect.tsx
index 92e2348ea..fe558038c 100644
--- a/apps/desktop/src/routes/editor/AspectRatioSelect.tsx
+++ b/apps/desktop/src/routes/editor/AspectRatioSelect.tsx
@@ -90,7 +90,7 @@ function AspectRatioSelect() {
>
<MenuItemList<typeof KSelect.Listbox>
as={KSelect.Listbox}
- class="w-[12.5rem]"
+ class="w-50"
/>
</PopperContent>
</KSelect.Portal>
diff --git a/apps/desktop/src/routes/editor/CaptionsTab.tsx b/apps/desktop/src/routes/editor/CaptionsTab.tsx
index 85d21084c..16b350192 100644
--- a/apps/desktop/src/routes/editor/CaptionsTab.tsx
+++ b/apps/desktop/src/routes/editor/CaptionsTab.tsx
@@ -908,7 +908,7 @@ export function CaptionsTab() {
</MenuItem>
)}
>
- <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-none focus:ring-1 focus:ring-blue-9">
+ <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-hidden focus:ring-1 focus:ring-blue-9">
<KSelect.Value<{
label: string;
value: number;
@@ -919,7 +919,7 @@ export function CaptionsTab() {
}
</KSelect.Value>
<KSelect.Icon>
- <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]" />
+ <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)" />
</KSelect.Icon>
</KSelect.Trigger>
<KSelect.Portal>
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
index 5a05dce99..32ac3f64e 100644
--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx
+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
@@ -213,7 +213,7 @@ const CAMERA_SHAPES = [
const CORNER_STYLE_OPTIONS = [
{ name: "Squircle", value: "squircle" },
- { name: "Rounded", value: "rounded" },
+ { name: "Rounded", value: "rounded-sm" },
] satisfies Array<{ name: string; value: CornerRoundingType }>;
const BACKGROUND_THEMES = {
@@ -386,9 +386,9 @@ export function ConfigSidebar() {
return (
<KTabs
value={editorState.timeline.selection ? undefined : state.selectedTab}
- class="flex flex-col min-h-0 shrink-0 flex-1 max-w-[26rem] overflow-hidden rounded-xl z-10 bg-gray-1 dark:bg-gray-2 border border-gray-3"
+ class="flex flex-col min-h-0 shrink-0 flex-1 max-w-104 overflow-hidden rounded-xl z-10 bg-gray-1 dark:bg-gray-2 border border-gray-3"
>
- <KTabs.List class="flex overflow-hidden sticky top-0 z-[60] flex-row items-center h-16 text-lg border-b border-gray-3 shrink-0 bg-gray-1 dark:bg-gray-2">
+ <KTabs.List class="flex overflow-hidden sticky top-0 z-60 flex-row items-center h-16 text-lg border-b border-gray-3 shrink-0 bg-gray-1 dark:bg-gray-2">
<For
each={[
{ id: TAB_IDS.background, icon: IconCapImage },
@@ -422,7 +422,7 @@ export function ConfigSidebar() {
<KTabs.Trigger
value={item.id}
class={cx(
- "flex relative z-10 flex-1 justify-center items-center px-4 py-2 transition-colors group disabled:opacity-50 focus:outline-none",
+ "flex relative z-10 flex-1 justify-center items-center px-4 py-2 transition-colors group disabled:opacity-50 focus:outline-hidden",
editorState.timeline.selection
? "text-gray-11"
: "text-gray-11 ui-selected:text-gray-12",
@@ -513,14 +513,14 @@ export function ConfigSidebar() {
<KSelect.Value<{
name: string;
value: StereoMode;
- }> class="flex-1 text-sm text-left truncate text-[--gray-500] font-normal">
+ }> class="flex-1 text-sm text-left truncate text-(--gray-500) font-normal">
{(state) => <span>{state.selectedOption().name}</span>}
</KSelect.Value>
<KSelect.Icon<ValidComponent>
as={(props) => (
<IconCapChevronDown
{...props}
- class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]"
+ class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)"
/>
)}
/>
@@ -1589,12 +1589,12 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
}
}}
>
- <KTabs.List class="flex flex-row gap-2 items-center rounded-[0.5rem] relative">
+ <KTabs.List class="flex flex-row gap-2 items-center rounded-lg relative">
<For each={BACKGROUND_SOURCES_LIST}>
{(item) => {
const el = (props?: object) => (
<KTabs.Trigger
- class="z-10 flex-1 py-2.5 px-2 text-xs text-gray-11 ui-selected:border-gray-3 ui-selected:bg-gray-3 ui-not-selected:hover:border-gray-7 rounded-[10px] transition-colors duration-200 outline-none border ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 px-2 text-xs text-gray-11 ui-selected:border-gray-3 ui-selected:bg-gray-3 ui-not-selected:hover:border-gray-7 rounded-[10px] transition-colors duration-200 outline-hidden border ui-selected:text-gray-12 peer"
value={item}
{...props}
>
@@ -1616,7 +1616,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
return (
<div
- class="size-3.5 rounded"
+ class="size-3.5 rounded-sm"
style={{
background: `linear-gradient(${angle}deg, rgb(${fromColor}), rgb(${toColor}))`,
}}
@@ -1679,7 +1679,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
<img
loading="eager"
alt={BACKGROUND_SOURCES[item]}
- class="size-3.5 rounded"
+ class="size-3.5 rounded-sm"
src={imageSrc}
/>
);
@@ -1738,7 +1738,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
)
}
value={key}
- class="flex relative z-10 flex-1 justify-center items-center px-4 py-2 bg-transparent rounded-lg border transition-colors duration-200 text-gray-11 ui-not-selected:hover:border-gray-7 ui-selected:bg-gray-3 ui-selected:border-gray-3 group ui-selected:text-gray-12 disabled:opacity-50 focus:outline-none"
+ class="flex relative z-10 flex-1 justify-center items-center px-4 py-2 bg-transparent rounded-lg border transition-colors duration-200 text-gray-11 ui-not-selected:hover:border-gray-7 ui-selected:bg-gray-3 ui-selected:border-gray-3 group ui-selected:text-gray-12 disabled:opacity-50 focus:outline-hidden"
>
{value}
</KTabs.Trigger>
@@ -1842,7 +1842,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
<button
type="button"
onClick={() => fileInput.click()}
- class="p-6 bg-gray-2 text-[13px] w-full rounded-[0.5rem] border border-gray-5 border-dashed flex flex-col items-center justify-center gap-[0.5rem] hover:bg-gray-3 transition-colors duration-100"
+ class="p-6 bg-gray-2 text-[13px] w-full rounded-lg border border-gray-5 border-dashed flex flex-col items-center justify-center gap-2 hover:bg-gray-3 transition-colors duration-100"
>
<IconCapImage class="text-gray-11 size-6" />
<span class="text-gray-12">
@@ -1976,7 +1976,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
}}
/>
<div
- class="rounded-lg transition-all duration-200 cursor-pointer size-8 peer-checked:hover:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
+ class="rounded-lg transition-all duration-200 cursor-pointer size-8 hover:peer-checked:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
style={{
background:
color === "#00000000"
@@ -2013,7 +2013,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
<Field name="Background Blur" icon={<IconCapBgBlur />}>
<Slider
value={[project.background.blur]}
- onChange={(v) => setProject("background", "blur", v[0])}
+ onChange={(v) => setProject("background", "blur-sm", v[0])}
minValue={0}
maxValue={100}
step={0.1}
@@ -2164,7 +2164,7 @@ function BackgroundConfig(props: { scrollRef: HTMLDivElement }) {
value={[project.background.shadow!]}
onChange={(v) => {
batch(() => {
- setProject("background", "shadow", v[0]);
+ setProject("background", "shadow-sm", v[0]);
// Initialize advanced shadow settings if they don't exist and shadow is enabled
if (v[0] > 0 && !project.background.advancedShadow) {
setProject("background", "advancedShadow", {
@@ -2257,7 +2257,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
const [x, y] = v.split(":");
setProject("camera", "position", { x, y } as any);
}}
- class="mt-[0.75rem] rounded-[0.5rem] border border-gray-3 bg-gray-2 w-full h-[7.5rem] relative"
+ class="mt-3 rounded-lg border border-gray-3 bg-gray-2 w-full h-30 relative"
>
<For
each={[
@@ -2274,7 +2274,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
<RadioGroup.ItemInput class="peer" />
<RadioGroup.ItemControl
class={cx(
- "cursor-pointer size-6 shrink-0 rounded-[0.375rem] bg-gray-5 absolute flex justify-center items-center ui-checked:bg-blue-9 focus-visible:outline peer-focus-visible:outline outline-2 outline-blue-9 outline-offset-2 transition-colors duration-100",
+ "cursor-pointer size-6 shrink-0 rounded-md bg-gray-5 absolute flex justify-center items-center ui-checked:bg-blue-9 focus-visible:outline-solid peer-focus-visible:outline-solid outline-2 outline-blue-9 outline-offset-2 transition-colors duration-100",
item.x === "left"
? "left-2"
: item.x === "right"
@@ -2283,7 +2283,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
item.y === "top" ? "top-2" : "bottom-2",
)}
>
- <div class="size-[0.5rem] shrink-0 bg-solid-white rounded-full" />
+ <div class="size-2 shrink-0 bg-solid-white rounded-full" />
</RadioGroup.ItemControl>
</RadioGroup.Item>
)}
@@ -2397,14 +2397,14 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
<KSelect.Value<{
name: string;
value: StereoMode;
- }> class="flex-1 text-sm text-left truncate text-[--gray-500] font-normal">
+ }> class="flex-1 text-sm text-left truncate text-(--gray-500) font-normal">
{(state) => <span>{state.selectedOption().name}</span>}
</KSelect.Value>
<KSelect.Icon<ValidComponent>
as={(props) => (
<IconCapChevronDown
{...props}
- class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]"
+ class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)"
/>
)}
/>
@@ -2474,7 +2474,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
<div class="space-y-8">
<Slider
value={[project.camera.shadow!]}
- onChange={(v) => setProject("camera", "shadow", v[0])}
+ onChange={(v) => setProject("camera", "shadow-sm", v[0])}
minValue={0}
maxValue={100}
step={0.1}
@@ -2529,7 +2529,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
<Slider
disabled
value={[project.camera.shadow]}
- onChange={(v) => setProject("camera", "shadow", v[0])}
+ onChange={(v) => setProject("camera", "shadow-sm", v[0])}
minValue={0}
maxValue={100}
/>
@@ -2577,14 +2577,14 @@ function CornerStyleSelect(props: {
<KSelect.Value<{
name: string;
value: CornerRoundingType;
- }> class="flex-1 text-sm text-left truncate text-[--gray-500] font-normal">
+ }> class="flex-1 text-sm text-left truncate text-(--gray-500) font-normal">
{(state) => <span>{state.selectedOption().name}</span>}
</KSelect.Value>
<KSelect.Icon<ValidComponent>
as={(iconProps) => (
<IconCapChevronDown
{...iconProps}
- class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]"
+ class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)"
/>
)}
/>
@@ -2618,7 +2618,7 @@ function HexColorInput(props: {
<div class="relative">
<button
type="button"
- class="size-[2rem] rounded-[0.5rem] cursor-pointer transition-[box-shadow]"
+ class="size-8 rounded-lg cursor-pointer transition-shadow"
style={{
"background-color": text(),
"box-shadow": `inset 0 0 0 1px ${getColorPreviewBorderColor(text())}`,
@@ -2771,7 +2771,7 @@ function TextSegmentConfig(props: {
</MenuItem>
)}
>
- <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-none focus:ring-1 focus:ring-blue-9">
+ <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-hidden focus:ring-1 focus:ring-blue-9">
<KSelect.Value<any> class="truncate">
{(state) => {
const selected = state.selectedOption();
@@ -2788,7 +2788,7 @@ function TextSegmentConfig(props: {
}}
</KSelect.Value>
<KSelect.Icon>
- <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]" />
+ <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)" />
</KSelect.Icon>
</KSelect.Trigger>
<KSelect.Portal>
@@ -3324,7 +3324,7 @@ function ZoomSegmentPreview(props: {
<div class="text-xs font-medium text-center text-gray-12">
Zoom {props.segmentIndex + 1}
</div>
- <div class="overflow-hidden relative rounded border aspect-video border-gray-3 bg-gray-3">
+ <div class="overflow-hidden relative rounded-sm border aspect-video border-gray-3 bg-gray-3">
<canvas
ref={canvasRef}
width={160}
@@ -3404,21 +3404,21 @@ function ZoomSegmentConfig(props: {
);
}}
>
- <KTabs.List class="flex flex-row items-center rounded-[0.5rem] relative border">
+ <KTabs.List class="flex flex-row items-center rounded-lg relative border">
<KTabs.Trigger
value="auto"
- class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-none ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-hidden ui-selected:text-gray-12 peer"
disabled={!generalSettings.data?.custom_cursor_capture2}
>
Auto
</KTabs.Trigger>
<KTabs.Trigger
value="manual"
- class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-none ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-hidden ui-selected:text-gray-12 peer"
>
Manual
</KTabs.Trigger>
- <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline outline-2 outline-blue-9 outline-offset-2 rounded-[0.6rem] overflow-hidden">
+ <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline-solid outline-2 outline-blue-9 outline-offset-2 rounded-[0.6rem] overflow-hidden">
<div class="flex-1 bg-gray-3" />
</KTabs.Indicator>
</KTabs.List>
@@ -3821,7 +3821,7 @@ function SourceOffsetField(props: {
props.onChange(0);
}
}}
- class="w-[5rem] p-[0.375rem] border rounded-[0.5rem] bg-gray-1 focus-visible:outline-none"
+ class="w-20 p-1.5 border rounded-lg bg-gray-1 focus-visible:outline-hidden"
/>
</NumberField.Root>
<span class="text-gray-11">ms</span>
@@ -3835,7 +3835,7 @@ function SourceOffsetField(props: {
props.onChange(currentValue);
setValue(currentValue.toString());
}}
- class="text-gray-11 hover:text-gray-12 text-xs px-1 py-0.5 bg-gray-1 border border-gray-3 rounded"
+ class="text-gray-11 hover:text-gray-12 text-xs px-1 py-0.5 bg-gray-1 border border-gray-3 rounded-sm"
>
{Math.sign(v) > 0 ? "+" : "-"}
{Math.abs(v)}ms
@@ -3889,26 +3889,26 @@ function SceneSegmentConfig(props: {
}}
>
<KTabs.List class="flex flex-col gap-3">
- <div class="flex flex-row items-center rounded-[0.5rem] relative border">
+ <div class="flex flex-row items-center rounded-lg relative border">
<KTabs.Trigger
value="default"
- class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-none ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-hidden ui-selected:text-gray-12 peer"
>
Default
</KTabs.Trigger>
<KTabs.Trigger
value="cameraOnly"
- class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-none ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-hidden ui-selected:text-gray-12 peer"
>
Camera Only
</KTabs.Trigger>
<KTabs.Trigger
value="hideCamera"
- class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-none ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 text-gray-11 transition-colors duration-100 outline-hidden ui-selected:text-gray-12 peer"
>
Hide Camera
</KTabs.Trigger>
- <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline outline-2 outline-blue-9 outline-offset-2 rounded-[0.6rem] overflow-hidden">
+ <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline-solid outline-2 outline-blue-9 outline-offset-2 rounded-[0.6rem] overflow-hidden">
<div class="flex-1 bg-gray-3" />
</KTabs.Indicator>
</div>
diff --git a/apps/desktop/src/routes/editor/Editor.tsx b/apps/desktop/src/routes/editor/Editor.tsx
index 2c7865b75..e5da242c9 100644
--- a/apps/desktop/src/routes/editor/Editor.tsx
+++ b/apps/desktop/src/routes/editor/Editor.tsx
@@ -1024,7 +1024,7 @@ function Dialogs() {
format={false}
>
<NumberField.Input
- class="rounded-[0.5rem] bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-[2rem] font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-[0.5rem] w-full text-[0.875rem] outline-none text-gray-12"
+ class="rounded-lg bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-8 font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-2 w-full text-[0.875rem] outline-hidden text-gray-12"
onKeyDown={composeEventHandlers<HTMLInputElement>([
(e) => e.stopPropagation(),
])}
@@ -1036,35 +1036,35 @@ function Dialogs() {
return (
<>
<Dialog.Header>
- <div class="flex flex-row space-x-[2rem]">
- <div class="flex flex-row items-center space-x-[0.75rem] text-gray-11">
+ <div class="flex flex-row space-x-8">
+ <div class="flex flex-row items-center space-x-3 text-gray-11">
<span>Size</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="width" max={display.width} />
</div>
<span>×</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="height" max={display.height} />
</div>
</div>
- <div class="flex flex-row items-center space-x-[0.75rem] text-gray-11">
+ <div class="flex flex-row items-center space-x-3 text-gray-11">
<span>Position</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="x" />
</div>
<span>×</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="y" />
</div>
</div>
</div>
<div class="flex flex-row gap-3 justify-end items-center w-full">
- <div class="flex flex-row items-center space-x-[0.5rem] text-gray-11"></div>
+ <div class="flex flex-row items-center space-x-2 text-gray-11"></div>
<Button
variant="white"
size="xs"
- class="flex items-center justify-center text-center rounded-full h-[2rem] w-[2rem] border focus:border-blue-9"
+ class="flex items-center justify-center text-center rounded-full h-8 w-8 border focus:border-blue-9"
onMouseDown={showCropOptionsMenu}
onClick={showCropOptionsMenu}
>
@@ -1074,7 +1074,7 @@ function Dialogs() {
</Show>
<Transition
enterClass="scale-50 opacity-0 blur-md"
- enterActiveClass="duration-200 [transition-timing-function:cubic-bezier(0.215,0.61,0.355,1)]"
+ enterActiveClass="duration-200 ease-[cubic-bezier(0.215,0.61,0.355,1)]"
enterToClass="scale-100 opacity-100 blur-0"
exitClass="opacity-0"
exitActiveClass="duration-0"
@@ -1120,7 +1120,7 @@ function Dialogs() {
</Dialog.Header>
<Dialog.Content>
<div class="flex flex-row justify-center">
- <div class="rounded divide-black-transparent-10">
+ <div class="rounded-sm divide-black-transparent-10">
<Cropper
ref={cropperRef}
onCropChange={setCrop}
@@ -1133,7 +1133,7 @@ function Dialogs() {
onContextMenu={(e) => showCropOptionsMenu(e, true)}
>
<img
- class="shadow pointer-events-none max-h-[70vh]"
+ class="shadow-sm pointer-events-none max-h-[70vh]"
alt="Current frame"
onError={() => {
const failedSource = frameSource();
diff --git a/apps/desktop/src/routes/editor/EditorErrorScreen.tsx b/apps/desktop/src/routes/editor/EditorErrorScreen.tsx
index 04505a8b2..197891c25 100644
--- a/apps/desktop/src/routes/editor/EditorErrorScreen.tsx
+++ b/apps/desktop/src/routes/editor/EditorErrorScreen.tsx
@@ -44,7 +44,7 @@ export function EditorErrorScreen(props: {
data-tauri-drag-region
class="flex relative flex-row items-center w-full h-14 px-4"
>
- {isMac() && <div class="h-full w-[4rem]" />}
+ {isMac() && <div class="h-full w-16" />}
<div data-tauri-drag-region class="flex-1 h-full" />
{ostype() === "windows" && <CaptionControlsWindows11 />}
</div>
diff --git a/apps/desktop/src/routes/editor/ExportPage.tsx b/apps/desktop/src/routes/editor/ExportPage.tsx
index bc74aa087..4edbdc079 100644
--- a/apps/desktop/src/routes/editor/ExportPage.tsx
+++ b/apps/desktop/src/routes/editor/ExportPage.tsx
@@ -707,7 +707,7 @@ export function ExportPage() {
ostype() !== "windows" && "pr-2",
)}
>
- {ostype() === "macos" && <div class="h-full w-[4rem]" />}
+ {ostype() === "macos" && <div class="h-full w-16" />}
<Button
variant="gray"
onClick={handleBack}
@@ -744,7 +744,7 @@ export function ExportPage() {
}
>
<div class="absolute inset-4 rounded-lg bg-gray-4 overflow-hidden">
- <div class="absolute inset-y-0 w-full animate-shimmer bg-gradient-to-r from-transparent from-30% via-gray-6 via-50% to-transparent to-70%" />
+ <div class="absolute inset-y-0 w-full animate-shimmer bg-linear-to-r from-transparent from-30% via-gray-6 via-50% to-transparent to-70%" />
</div>
</Show>
</div>
@@ -759,7 +759,7 @@ export function ExportPage() {
/>
<Show when={previewLoading()}>
<div class="absolute inset-0 z-50 overflow-hidden pointer-events-none">
- <div class="absolute inset-y-0 w-full animate-shimmer bg-gradient-to-r from-transparent from-30% via-white/60 via-50% to-transparent to-70%" />
+ <div class="absolute inset-y-0 w-full animate-shimmer bg-linear-to-r from-transparent from-30% via-white/60 via-50% to-transparent to-70%" />
</div>
</Show>
<button
@@ -780,19 +780,19 @@ export function ExportPage() {
<div class="flex items-center justify-center gap-4 mt-4 h-4 text-xs text-gray-11">
<span class="flex items-center gap-1.5">
<IconLucideClock class="size-3.5" />
- <span class="h-3.5 w-10 bg-gray-4 rounded animate-pulse" />
+ <span class="h-3.5 w-10 bg-gray-4 rounded-sm animate-pulse" />
</span>
<span class="flex items-center gap-1.5">
<IconLucideMonitor class="size-3.5" />
- <span class="h-3.5 w-20 bg-gray-4 rounded animate-pulse" />
+ <span class="h-3.5 w-20 bg-gray-4 rounded-sm animate-pulse" />
</span>
<span class="flex items-center gap-1.5">
<IconLucideHardDrive class="size-3.5" />
- <span class="h-3.5 w-16 bg-gray-4 rounded animate-pulse" />
+ <span class="h-3.5 w-16 bg-gray-4 rounded-sm animate-pulse" />
</span>
<span class="flex items-center gap-1.5">
<IconLucideZap class="size-3.5" />
- <span class="h-3.5 w-12 bg-gray-4 rounded animate-pulse" />
+ <span class="h-3.5 w-12 bg-gray-4 rounded-sm animate-pulse" />
</span>
</div>
}
@@ -1134,7 +1134,7 @@ export function ExportPage() {
>
<div
class={cx(
- "w-8 h-4 rounded-full transition-colors relative flex-shrink-0",
+ "w-8 h-4 rounded-full transition-colors relative shrink-0",
settings.optimizeFilesize ? "bg-blue-9" : "bg-gray-5",
)}
>
@@ -1191,7 +1191,7 @@ export function ExportPage() {
>
<div
class={cx(
- "w-8 h-4 rounded-full transition-colors relative flex-shrink-0",
+ "w-8 h-4 rounded-full transition-colors relative shrink-0",
cursorOnly() ? "bg-blue-9" : "bg-gray-5",
)}
>
@@ -1214,7 +1214,7 @@ export function ExportPage() {
<Show when={cursorOnly()}>
<div class="rounded-lg border border-amber-6 bg-amber-3/30 px-3 py-2.5">
<div class="flex items-start gap-2">
- <IconLucideAlertTriangle class="mt-0.5 size-4 flex-shrink-0 text-amber-11" />
+ <IconLucideAlertTriangle class="mt-0.5 size-4 shrink-0 text-amber-11" />
<div class="text-left">
<p class="text-xs font-medium text-amber-11">
Warning
@@ -1281,7 +1281,7 @@ export function ExportPage() {
>
<div
class={cx(
- "w-8 h-4 rounded-full transition-colors relative flex-shrink-0",
+ "w-8 h-4 rounded-full transition-colors relative shrink-0",
forceFfmpegDecoder()
? "bg-blue-9"
: "bg-gray-5",
@@ -1433,7 +1433,7 @@ export function ExportPage() {
return (
<div
- class="absolute inset-0 z-50 flex flex-col items-center justify-center p-6 text-gray-12 backdrop-blur-sm"
+ class="absolute inset-0 z-50 flex flex-col items-center justify-center p-6 text-gray-12 backdrop-blur-xs"
style={{
"background-color":
"color-mix(in srgb, var(--gray-1) 85%, transparent)",
diff --git a/apps/desktop/src/routes/editor/Header.tsx b/apps/desktop/src/routes/editor/Header.tsx
index 42358cd5a..aface777c 100644
--- a/apps/desktop/src/routes/editor/Header.tsx
+++ b/apps/desktop/src/routes/editor/Header.tsx
@@ -141,7 +141,7 @@ export function Header() {
data-tauri-drag-region
class={cx("flex flex-row flex-1 gap-2 items-center px-4 h-full")}
>
- {ostype() === "macos" && <div class="h-full w-[4rem]" />}
+ {ostype() === "macos" && <div class="h-full w-16" />}
<EditorButton
onClick={async () => {
clearTimelineSelection();
@@ -394,7 +394,7 @@ function NameEditor(props: { name: string }) {
<input
ref={prettyNameRef}
class={cx(
- "absolute inset-0 px-px m-0 opacity-0 overflow-hidden focus:opacity-100 bg-transparent border-b border-transparent focus:border-gray-7 focus:outline-none peer whitespace-pre",
+ "absolute inset-0 px-px m-0 opacity-0 overflow-hidden focus:opacity-100 bg-transparent border-b border-transparent focus:border-gray-7 focus:outline-hidden peer whitespace-pre",
truncated() && "truncate",
(prettyName().length < 5 || prettyName().length > 100) &&
"focus:border-red-500",
diff --git a/apps/desktop/src/routes/editor/KeyboardTab.tsx b/apps/desktop/src/routes/editor/KeyboardTab.tsx
index 6bc74d888..cd9546afe 100644
--- a/apps/desktop/src/routes/editor/KeyboardTab.tsx
+++ b/apps/desktop/src/routes/editor/KeyboardTab.tsx
@@ -310,7 +310,7 @@ export function KeyboardTab() {
</MenuItem>
)}
>
- <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-none focus:ring-1 focus:ring-blue-9">
+ <KSelect.Trigger class="flex w-full items-center justify-between rounded-md border border-gray-3 bg-gray-2 px-3 py-2 text-sm text-gray-12 transition-colors hover:border-gray-4 hover:bg-gray-3 focus:border-blue-9 focus:outline-hidden focus:ring-1 focus:ring-blue-9">
<KSelect.Value<{
label: string;
value: number;
@@ -321,7 +321,7 @@ export function KeyboardTab() {
}
</KSelect.Value>
<KSelect.Icon>
- <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]" />
+ <IconCapChevronDown class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)" />
</KSelect.Icon>
</KSelect.Trigger>
<KSelect.Portal>
diff --git a/apps/desktop/src/routes/editor/MaskOverlay.tsx b/apps/desktop/src/routes/editor/MaskOverlay.tsx
index 8778ebb81..db61f6796 100644
--- a/apps/desktop/src/routes/editor/MaskOverlay.tsx
+++ b/apps/desktop/src/routes/editor/MaskOverlay.tsx
@@ -351,7 +351,7 @@ function ResizeHandle(props: {
return (
<div
class={cx(
- "absolute w-3 h-3 bg-gray-12 border border-white rounded-full shadow-sm transition-transform hover:scale-125",
+ "absolute w-3 h-3 bg-gray-12 border border-white rounded-full shadow-xs transition-transform hover:scale-125",
props.class,
)}
onMouseDown={props.onMouseDown}
diff --git a/apps/desktop/src/routes/editor/PerformanceOverlay.tsx b/apps/desktop/src/routes/editor/PerformanceOverlay.tsx
index 6f3307a28..c9b48a709 100644
--- a/apps/desktop/src/routes/editor/PerformanceOverlay.tsx
+++ b/apps/desktop/src/routes/editor/PerformanceOverlay.tsx
@@ -218,7 +218,7 @@ export function PerformanceOverlay(_props: PerformanceOverlayProps) {
}}
>
<div
- class="rounded-md px-2 py-1.5 shadow-lg backdrop-blur-sm pointer-events-auto cursor-pointer hover:brightness-110 transition-[filter]"
+ class="rounded-md px-2 py-1.5 shadow-lg backdrop-blur-xs pointer-events-auto cursor-pointer hover:brightness-110 transition-[filter]"
style={{
"background-color": "rgba(0, 0, 0, 0.8)",
border: "1px solid rgba(255, 255, 255, 0.15)",
diff --git a/apps/desktop/src/routes/editor/PresetsDropdown.tsx b/apps/desktop/src/routes/editor/PresetsDropdown.tsx
index cc3bf3cfe..6d9b6896d 100644
--- a/apps/desktop/src/routes/editor/PresetsDropdown.tsx
+++ b/apps/desktop/src/routes/editor/PresetsDropdown.tsx
@@ -58,7 +58,7 @@ export function PresetsDropdown() {
<KDropdownMenu.Sub gutter={16}>
<MenuItem<typeof KDropdownMenu.SubTrigger>
as={KDropdownMenu.SubTrigger}
- class="h-[2.5rem]"
+ class="h-10"
onClick={() => {
applyPreset();
}}
diff --git a/apps/desktop/src/routes/editor/ShareButton.tsx b/apps/desktop/src/routes/editor/ShareButton.tsx
index a8e7c9818..bebe10b5a 100644
--- a/apps/desktop/src/routes/editor/ShareButton.tsx
+++ b/apps/desktop/src/routes/editor/ShareButton.tsx
@@ -206,7 +206,7 @@ function ShareButton() {
upload.mutate();
}}
variant="dark"
- class="flex justify-center items-center size-[41px] !px-0 !py-0 space-x-1"
+ class="flex justify-center items-center size-[41px] px-0! py-0! space-x-1"
>
{upload.isPending ? (
<IconLucideLoaderCircle class="animate-spin size-4" />
@@ -216,7 +216,7 @@ function ShareButton() {
</Button>
</Tooltip>
<Tooltip content="Open link">
- <div class="rounded-xl px-3 py-2 flex flex-row items-center gap-[0.375rem] bg-gray-3 hover:bg-gray-4 transition-colors duration-100">
+ <div class="rounded-xl px-3 py-2 flex flex-row items-center gap-1.5 bg-gray-3 hover:bg-gray-4 transition-colors duration-100">
<a
href={
linkToDisplay() === customLink
@@ -257,9 +257,9 @@ function ShareButton() {
placement="bottom-end"
gutter={4}
>
- <KSelect.Trigger class="flex justify-center items-center transition-colors duration-200 rounded-lg size-[22px] text-gray-12 bg-gray-6 hover:bg-gray-7 group focus:outline-none focus-visible:outline-none">
+ <KSelect.Trigger class="flex justify-center items-center transition-colors duration-200 rounded-lg size-[22px] text-gray-12 bg-gray-6 hover:bg-gray-7 group focus:outline-hidden focus-visible:outline-hidden">
<KSelect.Icon>
- <IconCapChevronDown class="size-4 transition-transform duration-200 group-data-[expanded]:rotate-180" />
+ <IconCapChevronDown class="size-4 transition-transform duration-200 group-data-expanded:rotate-180" />
</KSelect.Icon>
</KSelect.Trigger>
<KSelect.Portal>
diff --git a/apps/desktop/src/routes/editor/TextOverlay.tsx b/apps/desktop/src/routes/editor/TextOverlay.tsx
index 3e2fa4922..51b69ab66 100644
--- a/apps/desktop/src/routes/editor/TextOverlay.tsx
+++ b/apps/desktop/src/routes/editor/TextOverlay.tsx
@@ -540,7 +540,7 @@ function ResizeHandle(props: {
return (
<div
class={cx(
- "absolute w-3 h-3 bg-blue-9 border border-white rounded-full shadow-sm transition-transform hover:scale-125",
+ "absolute w-3 h-3 bg-blue-9 border border-white rounded-full shadow-xs transition-transform hover:scale-125",
props.class,
)}
onMouseDown={props.onMouseDown}
diff --git a/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx b/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
index c7f67ca76..f0438c8a6 100644
--- a/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
@@ -134,7 +134,7 @@ export function CaptionsTrack(props: {
<For
each={captionSegments()}
fallback={
- <div class="text-center text-sm text-[--text-tertiary] flex flex-col gap-2 justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 rounded-xl">
+ <div class="text-center text-sm text-(--text-tertiary) flex flex-col gap-2 justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 rounded-xl">
<div>No captions</div>
<button
class="h-8 px-3 rounded-lg border border-green-7/50 bg-green-6/15 text-green-11 text-xs font-medium transition-colors hover:bg-green-6/25 disabled:opacity-50 disabled:cursor-not-allowed"
@@ -165,7 +165,7 @@ export function CaptionsTrack(props: {
data-index={i()}
class={cx(
"border duration-200 hover:border-green-6 transition-colors group",
- "bg-gradient-to-r from-[#0d1f12] via-[#162618] to-[#0d1f12]",
+ "bg-linear-to-r from-[#0d1f12] via-[#162618] to-[#0d1f12]",
isSelected() ? "border-green-7" : "border-transparent",
)}
innerClass="ring-green-6"
diff --git a/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx b/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
index 69559a25d..cdeef7f13 100644
--- a/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
@@ -469,7 +469,7 @@ export function ClipTrack(
transform: `translateX(${segmentX()}px)`,
}}
>
- <div class="w-[2px] bottom-0 -top-2 rounded-full from-red-300 to-transparent bg-gradient-to-b -translate-x-1/2" />
+ <div class="w-[2px] bottom-0 -top-2 rounded-full from-red-300 to-transparent bg-linear-to-b -translate-x-1/2" />
<Switch>
<Match
when={(() => {
@@ -527,7 +527,7 @@ export function ClipTrack(
<div class="flex absolute -top-8 flex-row w-0 h-7 rounded-full">
<CutOffsetButton
value={value()}
- class="-left-px absolute rounded-r-full !pl-1.5 rounded-tl-full"
+ class="-left-px absolute rounded-r-full pl-1.5! rounded-tl-full"
onClick={() => {
setProject(
"timeline",
@@ -549,7 +549,7 @@ export function ClipTrack(
<SegmentRoot
class={cx(
"border transition-colors duration-200 group hover:border-gray-12",
- "bg-gradient-to-r from-[#2675DB] via-[#4FA0FF] to-[#2675DB] shadow-[inset_0_5px_10px_5px_rgba(255,255,255,0.2)]",
+ "bg-linear-to-r from-[#2675DB] via-[#4FA0FF] to-[#2675DB] shadow-[inset_0_5px_10px_5px_rgba(255,255,255,0.2)]",
isSelected() ? "border-gray-12" : "border-transparent",
)}
innerClass="ring-blue-9"
@@ -885,11 +885,11 @@ export function ClipTrack(
transform: `translateX(${segmentX() + segmentWidth()}px)`,
}}
>
- <div class="w-[2px] bottom-0 -top-2 rounded-full from-red-300 to-transparent bg-gradient-to-b -translate-x-1/2" />
+ <div class="w-[2px] bottom-0 -top-2 rounded-full from-red-300 to-transparent bg-linear-to-b -translate-x-1/2" />
<div class="flex absolute -top-8 flex-row w-0 h-7 rounded-full">
<CutOffsetButton
value={value()}
- class="-right-px absolute rounded-l-full !pr-1.5 rounded-tr-full"
+ class="-right-px absolute rounded-l-full pr-1.5! rounded-tr-full"
onClick={() => {
setProject(
"timeline",
@@ -946,7 +946,7 @@ function Markings(props: { segment: TimelineSegment; prevDuration: number }) {
style={{
transform: `translateX(${translateX()}px)`,
}}
- class="absolute z-10 w-px h-12 bg-gradient-to-b from-transparent to-transparent via-white-transparent-40 dark:via-black-transparent-60"
+ class="absolute z-10 w-px h-12 bg-linear-to-b from-transparent to-transparent via-white-transparent-40 dark:via-black-transparent-60"
/>
);
}}
diff --git a/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx b/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
index 52c3d6feb..77abb75a0 100644
--- a/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
@@ -134,9 +134,9 @@ export function KeyboardTrack(props: {
<For
each={keyboardSegments()}
fallback={
- <div class="text-center text-sm text-[--text-tertiary] flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 rounded-xl pointer-events-none">
+ <div class="text-center text-sm text-(--text-tertiary) flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 rounded-xl pointer-events-none">
<div>No keyboard events</div>
- <div class="text-[10px] text-[--text-tertiary]/40 mt-0.5">
+ <div class="text-[10px] text-(--text-tertiary)/40 mt-0.5">
Record keyboard presses or generate from recording
</div>
</div>
@@ -157,7 +157,7 @@ export function KeyboardTrack(props: {
data-index={i()}
class={cx(
"border duration-200 hover:border-sky-6 transition-colors group",
- "bg-gradient-to-r from-[#0d1830] via-[#142445] to-[#0d1830] shadow-[inset_0_8px_12px_3px_rgba(120,180,255,0.16)]",
+ "bg-linear-to-r from-[#0d1830] via-[#142445] to-[#0d1830] shadow-[inset_0_8px_12px_3px_rgba(120,180,255,0.16)]",
isSelected() ? "border-sky-7" : "border-transparent",
)}
innerClass="ring-sky-6"
diff --git a/apps/desktop/src/routes/editor/Timeline/MaskTrack.tsx b/apps/desktop/src/routes/editor/Timeline/MaskTrack.tsx
index 2c9359cad..9ce8fefbb 100644
--- a/apps/desktop/src/routes/editor/Timeline/MaskTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/MaskTrack.tsx
@@ -307,9 +307,9 @@ export function MaskTrack(props: {
when={!newSegmentDetails()}
fallback={<div class="w-full rounded-xl bg-transparent" />}
>
- <div class="text-center text-sm text-[--text-tertiary] flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
+ <div class="text-center text-sm text-(--text-tertiary) flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
<div>Click to add a mask</div>
- <div class="text-[10px] text-[--text-tertiary]/40 mt-0.5">
+ <div class="text-[10px] text-(--text-tertiary)/40 mt-0.5">
(Combine sensitive blur or highlight masks)
</div>
</div>
@@ -334,10 +334,10 @@ export function MaskTrack(props: {
data-index={index}
class={cx(
"duration-200 transition-colors group",
- "bg-gradient-to-r from-[#1f2022] via-[#2c2d30] to-[#1f2022]",
+ "bg-linear-to-r from-[#1f2022] via-[#2c2d30] to-[#1f2022]",
isSelected()
? "border border-gray-12"
- : "!border-0 hover:!border hover:border-gray-12",
+ : "border-0! hover:border! hover:border-gray-12",
)}
innerClass="ring-red-5"
segment={segment}
@@ -505,7 +505,7 @@ export function MaskTrack(props: {
innerClass="ring-red-300"
segment={details()}
>
- <SegmentContent class="bg-gradient-to-r from-[#1f2022] via-[#2c2d30] to-[#1f2022] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.16)]">
+ <SegmentContent class="bg-linear-to-r from-[#1f2022] via-[#2c2d30] to-[#1f2022] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.16)]">
<p class="w-full text-center text-gray-1 dark:text-gray-12 text-md">
+
</p>
diff --git a/apps/desktop/src/routes/editor/Timeline/SceneTrack.tsx b/apps/desktop/src/routes/editor/Timeline/SceneTrack.tsx
index b0a24f7db..714bd0f38 100644
--- a/apps/desktop/src/routes/editor/Timeline/SceneTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/SceneTrack.tsx
@@ -209,9 +209,9 @@ export function SceneTrack(props: {
<For
each={project.timeline?.sceneSegments}
fallback={
- <div class="text-center text-sm text-[--text-tertiary] flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
+ <div class="text-center text-sm text-(--text-tertiary) flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
<div>Click to add scene segment</div>
- <div class="text-[10px] text-[--text-tertiary]/40 mt-0.5">
+ <div class="text-[10px] text-(--text-tertiary)/40 mt-0.5">
(Make the camera full screen, or hide it)
</div>
</div>
@@ -363,7 +363,7 @@ export function SceneTrack(props: {
<SegmentRoot
class={cx(
"border transition-colors duration-200 hover:border-gray-12 group",
- `bg-gradient-to-r from-[#5C1BC4] via-[#975CFA] to-[#5C1BC4] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]`,
+ `bg-linear-to-r from-[#5C1BC4] via-[#975CFA] to-[#5C1BC4] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]`,
isSelected() ? "border-gray-12" : "border-transparent",
)}
innerClass="ring-blue-5"
@@ -571,7 +571,7 @@ export function SceneTrack(props: {
end: time() + maxAvailableDuration(),
}}
>
- <SegmentContent class="bg-gradient-to-r hover:border duration-200 hover:border-gray-500 from-[#5C1BC4] via-[#975CFA] to-[#5C1BC4] transition-colors group shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]">
+ <SegmentContent class="bg-linear-to-r hover:border duration-200 hover:border-gray-500 from-[#5C1BC4] via-[#975CFA] to-[#5C1BC4] transition-colors group shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]">
<p class="w-full text-center text-gray-1 dark:text-gray-12 text-md text-primary">
+
</p>
diff --git a/apps/desktop/src/routes/editor/Timeline/TextTrack.tsx b/apps/desktop/src/routes/editor/Timeline/TextTrack.tsx
index 46646b757..70334a112 100644
--- a/apps/desktop/src/routes/editor/Timeline/TextTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/TextTrack.tsx
@@ -280,9 +280,9 @@ export function TextTrack(props: {
when={!newSegmentDetails()}
fallback={<div class="w-full rounded-xl bg-transparent" />}
>
- <div class="text-center text-sm text-[--text-tertiary] flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
+ <div class="text-center text-sm text-(--text-tertiary) flex flex-col justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-none">
<div>Click to add text</div>
- <div class="text-[10px] text-[--text-tertiary]/40 mt-0.5">
+ <div class="text-[10px] text-(--text-tertiary)/40 mt-0.5">
(Set a label over your video)
</div>
</div>
@@ -304,7 +304,7 @@ export function TextTrack(props: {
data-index={index}
class={cx(
"border duration-200 hover:border-blue-6 transition-colors group",
- "bg-gradient-to-r from-[#111826] via-[#1c2232] to-[#111826]",
+ "bg-linear-to-r from-[#111826] via-[#1c2232] to-[#111826]",
isSelected() ? "border-blue-7" : "border-transparent",
!segment.enabled && "opacity-60",
)}
@@ -448,7 +448,7 @@ export function TextTrack(props: {
innerClass="ring-blue-300"
segment={details()}
>
- <SegmentContent class="bg-gradient-to-r from-[#111826] via-[#1c2232] to-[#111826] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.16)]">
+ <SegmentContent class="bg-linear-to-r from-[#111826] via-[#1c2232] to-[#111826] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.16)]">
<p class="w-full text-center text-gray-1 dark:text-gray-12 text-md">
+
</p>
diff --git a/apps/desktop/src/routes/editor/Timeline/Track.tsx b/apps/desktop/src/routes/editor/Timeline/Track.tsx
index ad65243ef..0953269d2 100644
--- a/apps/desktop/src/routes/editor/Timeline/Track.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/Track.tsx
@@ -101,8 +101,8 @@ export function SegmentContent(props: ComponentProps<"div">) {
<div
{...props}
class={cx(
- "relative w-full h-full flex flex-row items-center py-[0.25rem]",
- ctx.width() < 100 ? "px-0" : "px-[0.5rem]",
+ "relative w-full h-full flex flex-row items-center py-1",
+ ctx.width() < 100 ? "px-0" : "px-2",
props.class,
)}
/>
diff --git a/apps/desktop/src/routes/editor/Timeline/TrackManager.tsx b/apps/desktop/src/routes/editor/Timeline/TrackManager.tsx
index df79616ba..8ece70cf0 100644
--- a/apps/desktop/src/routes/editor/Timeline/TrackManager.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/TrackManager.tsx
@@ -80,7 +80,7 @@ export function TrackIcon(props: { icon: JSX.Element; class?: string }) {
return (
<div
class={cx(
- "relative z-10 w-[3.5rem] h-[3.25rem] flex items-center justify-center rounded-xl border border-gray-4/70 bg-gray-2/60 text-gray-12 shadow-[0_4px_16px_-12px_rgba(0,0,0,0.8)] dark:border-gray-4/60 dark:bg-gray-3/40",
+ "relative z-10 w-14 h-13 flex items-center justify-center rounded-xl border border-gray-4/70 bg-gray-2/60 text-gray-12 shadow-[0_4px_16px_-12px_rgba(0,0,0,0.8)] dark:border-gray-4/60 dark:bg-gray-3/40",
props.class,
)}
onMouseDown={(e) => e.stopPropagation()}
diff --git a/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx b/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx
index 805f28632..c86ade956 100644
--- a/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx
@@ -305,7 +305,7 @@ export function ZoomTrack(props: {
<Show
when={hasZoomSegments()}
fallback={
- <div class="relative z-[1] isolate text-center text-sm text-[--text-tertiary] flex flex-col gap-2 justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-auto px-2 py-1">
+ <div class="relative z-1 isolate text-center text-sm text-(--text-tertiary) flex flex-col gap-2 justify-center items-center inset-0 w-full bg-gray-3/20 dark:bg-gray-3/10 hover:bg-gray-3/30 dark:hover:bg-gray-3/20 transition-colors rounded-xl pointer-events-auto px-2 py-1">
<Show
when={
hasRecordedCursorData() && !sessionDismissedGenerateZoomPrompt()
@@ -332,7 +332,7 @@ export function ZoomTrack(props: {
</Button>
<button
type="button"
- class="flex shrink-0 justify-center items-center rounded-full outline-none text-gray-11 hover:text-gray-12 hover:bg-gray-5 focus-visible:ring-2 focus-visible:ring-gray-8 size-8 transition-colors"
+ class="flex shrink-0 justify-center items-center rounded-full outline-hidden text-gray-11 hover:text-gray-12 hover:bg-gray-5 focus-visible:ring-2 focus-visible:ring-gray-8 size-8 transition-colors"
disabled={isGeneratingAutoZoom()}
aria-label="Dismiss for this session"
onClick={() => setSessionDismissedGenerateZoomPrompt(true)}
@@ -479,7 +479,7 @@ export function ZoomTrack(props: {
<SegmentRoot
class={cx(
"border duration-200 hover:border-gray-12 transition-colors group",
- "bg-gradient-to-r from-[#292929] via-[#434343] to-[#292929] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]",
+ "bg-linear-to-r from-[#292929] via-[#434343] to-[#292929] shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]",
isSelected() ? "border-gray-12" : "border-transparent",
)}
innerClass="ring-red-5"
@@ -684,7 +684,7 @@ export function ZoomTrack(props: {
innerClass="ring-red-300"
segment={details()}
>
- <SegmentContent class="bg-gradient-to-r hover:border duration-200 hover:border-gray-500 from-[#292929] via-[#434343] to-[#292929] transition-colors group shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]">
+ <SegmentContent class="bg-linear-to-r hover:border duration-200 hover:border-gray-500 from-[#292929] via-[#434343] to-[#292929] transition-colors group shadow-[inset_0_8px_12px_3px_rgba(255,255,255,0.2)]">
<p class="w-full text-center text-gray-1 dark:text-gray-12 text-md text-primary">
+
</p>
diff --git a/apps/desktop/src/routes/editor/Timeline/index.tsx b/apps/desktop/src/routes/editor/Timeline/index.tsx
index 67d9b8edf..379d207ba 100644
--- a/apps/desktop/src/routes/editor/Timeline/index.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/index.tsx
@@ -776,7 +776,7 @@ export function Timeline(props: {
>
<div
ref={setTimelineContainerRef}
- class="pt-[2rem] relative overflow-hidden flex flex-col gap-2 h-full"
+ class="pt-8 relative overflow-hidden flex flex-col gap-2 h-full"
style={{
"padding-left": `${TIMELINE_PADDING}px`,
"padding-right": `${TIMELINE_PADDING}px`,
@@ -854,7 +854,7 @@ export function Timeline(props: {
{(time) => (
<div
class={cx(
- "flex absolute bottom-0 z-20 justify-center items-center w-px pointer-events-none bg-gradient-to-b to-[120%]",
+ "flex absolute bottom-0 z-20 justify-center items-center w-px pointer-events-none bg-linear-to-b to-120%",
split() ? "from-red-300" : "from-gray-400",
)}
style={{
@@ -876,7 +876,7 @@ export function Timeline(props: {
</Show>
<div
class={cx(
- "absolute bottom-0 rounded-full z-20 w-px pointer-events-none bg-gradient-to-b to-[120%] from-[rgb(226,64,64)]",
+ "absolute bottom-0 rounded-full z-20 w-px pointer-events-none bg-linear-to-b to-120% from-[rgb(226,64,64)]",
split() && "opacity-50",
)}
style={{
@@ -1082,7 +1082,7 @@ function TimelineMarkings() {
}}
>
<Show when={showLabel()}>
- <div class="absolute -top-[1.125rem] -translate-x-1/2">
+ <div class="absolute -top-4.5 -translate-x-1/2">
{formatTime(second())}
</div>
</Show>
diff --git a/apps/desktop/src/routes/editor/TranscriptPage.tsx b/apps/desktop/src/routes/editor/TranscriptPage.tsx
index c364de588..1c903efe6 100644
--- a/apps/desktop/src/routes/editor/TranscriptPage.tsx
+++ b/apps/desktop/src/routes/editor/TranscriptPage.tsx
@@ -298,7 +298,7 @@ export function TranscriptPanel() {
<div class="flex items-center gap-1">
<button
type="button"
- class="flex items-center justify-center size-5 rounded hover:bg-gray-3 text-gray-9 hover:text-gray-12 transition-colors disabled:opacity-30 disabled:pointer-events-none"
+ class="flex items-center justify-center size-5 rounded-sm hover:bg-gray-3 text-gray-9 hover:text-gray-12 transition-colors disabled:opacity-30 disabled:pointer-events-none"
disabled={textSizeIndex() <= 0}
onClick={() => setTextSizeIndex(Math.max(0, textSizeIndex() - 1))}
>
@@ -306,7 +306,7 @@ export function TranscriptPanel() {
</button>
<button
type="button"
- class="flex items-center justify-center size-5 rounded hover:bg-gray-3 text-gray-9 hover:text-gray-12 transition-colors disabled:opacity-30 disabled:pointer-events-none"
+ class="flex items-center justify-center size-5 rounded-sm hover:bg-gray-3 text-gray-9 hover:text-gray-12 transition-colors disabled:opacity-30 disabled:pointer-events-none"
disabled={textSizeIndex() >= TEXT_SIZES.length - 1}
onClick={() =>
setTextSizeIndex(
@@ -360,7 +360,7 @@ function WordWithTooltip(props: {
<span
ref={props.ref}
class={cx(
- "cursor-pointer transition-colors duration-100 rounded-sm relative",
+ "cursor-pointer transition-colors duration-100 rounded-xs relative",
props.isSelected && "bg-blue-4/50",
props.isActive
? "text-blue-11"
@@ -551,7 +551,7 @@ function TranscriptEditor(props: {
return (
<div
ref={scrollContainerRef}
- class="flex-1 overflow-y-auto overflow-x-hidden px-4 py-3 pb-8 focus:outline-none w-full"
+ class="flex-1 overflow-y-auto overflow-x-hidden px-4 py-3 pb-8 focus:outline-hidden w-full"
tabIndex={0}
onKeyDown={handleKeyDown}
onClick={handleContainerClick}
diff --git a/apps/desktop/src/routes/editor/color-utils.tsx b/apps/desktop/src/routes/editor/color-utils.tsx
index b8c7e804e..7a490da63 100644
--- a/apps/desktop/src/routes/editor/color-utils.tsx
+++ b/apps/desktop/src/routes/editor/color-utils.tsx
@@ -37,10 +37,10 @@ export function RgbInput(props: {
};
return (
- <div class="flex flex-row items-center gap-[0.75rem] relative">
+ <div class="flex flex-row items-center gap-3 relative">
<button
type="button"
- class="size-[2rem] rounded-[0.5rem]"
+ class="size-8 rounded-lg"
style={{
"background-color": rgbToHex(props.value),
"box-shadow": `inset 0 0 0 1px ${getColorPreviewBorderColor(
@@ -52,7 +52,7 @@ export function RgbInput(props: {
<input
ref={colorInput}
type="color"
- class="absolute left-0 bottom-0 w-[3rem] opacity-0"
+ class="absolute left-0 bottom-0 w-12 opacity-0"
value={rgbToHex(props.value)}
onChange={(e) => {
const value = hexToRgb(e.target.value);
@@ -63,7 +63,7 @@ export function RgbInput(props: {
}}
/>
<TextInput
- class="w-[4.60rem] p-[0.375rem] text-gray-12 text-[13px] border rounded-[0.5rem] bg-gray-1 outline-none focus:ring-1 transition-shadows duration-200 focus:ring-gray-500 focus:ring-offset-1 focus:ring-offset-gray-200"
+ class="w-[4.60rem] p-1.5 text-gray-12 text-[13px] border rounded-lg bg-gray-1 outline-hidden focus:ring-1 transition-shadows duration-200 focus:ring-gray-500 focus:ring-offset-1 focus:ring-offset-gray-200"
value={text()}
onFocus={() => {
prevHex = rgbToHex(props.value);
diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.ts
index 24987bd5f..2999b9477 100644
--- a/apps/desktop/src/routes/editor/context.ts
+++ b/apps/desktop/src/routes/editor/context.ts
@@ -132,7 +132,7 @@ export type CustomDomainResponse = {
domain_verified: boolean | null;
};
-export type CornerRoundingType = "rounded" | "squircle";
+export type CornerRoundingType = "rounded-sm" | "squircle";
type WithCornerStyle<T> = T & { roundingType: CornerRoundingType };
diff --git a/apps/desktop/src/routes/editor/editor-skeleton.tsx b/apps/desktop/src/routes/editor/editor-skeleton.tsx
index a6b2c67fb..1bd8c3f0e 100644
--- a/apps/desktop/src/routes/editor/editor-skeleton.tsx
+++ b/apps/desktop/src/routes/editor/editor-skeleton.tsx
@@ -9,7 +9,7 @@ const RESIZE_HANDLE_HEIGHT = 16;
function SkeletonPulse(props: { class?: string }) {
return (
<div
- class={cx("animate-pulse rounded bg-gray-3 dark:bg-gray-4", props.class)}
+ class={cx("animate-pulse rounded-sm bg-gray-3 dark:bg-gray-4", props.class)}
/>
);
}
@@ -32,7 +32,7 @@ function HeaderSkeleton() {
data-tauri-drag-region
class="flex flex-row flex-1 gap-2 items-center px-4 h-full"
>
- {ostype() === "macos" && <div class="h-full w-[4rem]" />}
+ {ostype() === "macos" && <div class="h-full w-16" />}
<SkeletonButton />
<SkeletonButton />
<SkeletonPulse class="h-5 w-32" />
@@ -59,7 +59,7 @@ function HeaderSkeleton() {
<SkeletonButton />
<SkeletonButton />
<div data-tauri-drag-region class="flex-1 h-full" />
- <SkeletonPulse class="h-[40px] w-[100px] rounded-[0.5rem]" />
+ <SkeletonPulse class="h-[40px] w-[100px] rounded-lg" />
{ostype() === "windows" && <CaptionControlsWindows11 />}
</div>
</div>
@@ -87,7 +87,7 @@ function VideoPreviewSkeleton() {
<div class="relative w-full h-full flex justify-center items-center p-4">
<div class="relative bg-gray-3 dark:bg-gray-4 rounded-lg w-full max-w-[85%] aspect-video flex items-center justify-center">
<div class="animate-spin grayscale opacity-60">
- <IconCapLogo class="size-[4rem] text-gray-6" />
+ <IconCapLogo class="size-16 text-gray-6" />
</div>
</div>
</div>
@@ -104,16 +104,16 @@ function PlayerControlsSkeleton() {
<SkeletonPulse class="h-4 w-12" />
</div>
<div class="flex flex-row items-center justify-center gap-8">
- <SkeletonPulse class="size-3 rounded" />
+ <SkeletonPulse class="size-3 rounded-sm" />
<SkeletonPulse class="size-9 rounded-full" />
- <SkeletonPulse class="size-3 rounded" />
+ <SkeletonPulse class="size-3 rounded-sm" />
</div>
<div class="flex flex-row flex-1 gap-4 justify-end items-center">
<div class="flex-1" />
<SkeletonButton />
<SkeletonPulse class="w-px h-8 rounded-full" />
- <SkeletonPulse class="size-5 rounded" />
- <SkeletonPulse class="size-5 rounded" />
+ <SkeletonPulse class="size-5 rounded-sm" />
+ <SkeletonPulse class="size-5 rounded-sm" />
<SkeletonPulse class="w-24 h-2 rounded-full" />
</div>
</div>
@@ -144,8 +144,8 @@ function PlayerSkeleton() {
function SidebarSkeleton() {
return (
- <div class="flex flex-col min-h-0 shrink-0 flex-1 max-w-[26rem] overflow-hidden rounded-xl z-10 bg-gray-1 dark:bg-gray-2 border border-gray-3">
- <div class="flex overflow-hidden sticky top-0 z-[60] flex-row items-center justify-center gap-4 h-16 border-b border-gray-3 shrink-0 bg-gray-1 dark:bg-gray-2">
+ <div class="flex flex-col min-h-0 shrink-0 flex-1 max-w-104 overflow-hidden rounded-xl z-10 bg-gray-1 dark:bg-gray-2 border border-gray-3">
+ <div class="flex overflow-hidden sticky top-0 z-60 flex-row items-center justify-center gap-4 h-16 border-b border-gray-3 shrink-0 bg-gray-1 dark:bg-gray-2">
<SkeletonPulse class="size-9 rounded-lg" />
<SkeletonPulse class="size-9 rounded-lg" />
<SkeletonPulse class="size-9 rounded-lg" />
@@ -164,14 +164,14 @@ function SidebarSkeleton() {
<SkeletonPulse class="h-px w-full" />
<SkeletonPulse class="h-4 w-16" />
<div class="grid grid-cols-4 gap-2">
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
- <SkeletonPulse class="aspect-video rounded" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
+ <SkeletonPulse class="aspect-video rounded-sm" />
</div>
</div>
</div>
@@ -180,9 +180,9 @@ function SidebarSkeleton() {
function TimelineTrackSkeleton() {
return (
- <div class="flex items-center gap-2 h-[3.25rem]">
+ <div class="flex items-center gap-2 h-13">
<div class="w-16 flex items-center justify-center">
- <SkeletonPulse class="size-4 rounded" />
+ <SkeletonPulse class="size-4 rounded-sm" />
</div>
<div class="flex-1 h-full py-1">
<SkeletonPulse class="h-full w-full rounded-lg" />
@@ -194,7 +194,7 @@ function TimelineTrackSkeleton() {
function TimelineSkeleton() {
return (
<div class="h-full rounded-xl border bg-gray-1 dark:bg-gray-2 border-gray-3 overflow-hidden">
- <div class="pt-[2rem] relative flex flex-col gap-2 h-full px-4">
+ <div class="pt-8 relative flex flex-col gap-2 h-full px-4">
<div class="relative h-[32px] flex items-end">
<div class="flex items-center gap-8 w-full pl-16">
<SkeletonPulse class="h-3 w-8" />
diff --git a/apps/desktop/src/routes/editor/text-style.tsx b/apps/desktop/src/routes/editor/text-style.tsx
index eea166b5e..1063f7982 100644
--- a/apps/desktop/src/routes/editor/text-style.tsx
+++ b/apps/desktop/src/routes/editor/text-style.tsx
@@ -62,10 +62,10 @@ export function HexColorInput(props: {
};
return (
- <div class="flex flex-row items-center gap-[0.75rem] relative">
+ <div class="flex flex-row items-center gap-3 relative">
<button
type="button"
- class="size-[2rem] rounded-[0.5rem]"
+ class="size-8 rounded-lg"
style={{
"background-color": text(),
"box-shadow": `inset 0 0 0 1px ${getColorPreviewBorderColor(text())}`,
@@ -75,7 +75,7 @@ export function HexColorInput(props: {
<input
ref={colorInput}
type="color"
- class="absolute left-0 bottom-0 size-[2rem] opacity-0"
+ class="absolute left-0 bottom-0 size-8 opacity-0"
value={text()}
onChange={(e) => {
setText(e.target.value);
@@ -83,7 +83,7 @@ export function HexColorInput(props: {
}}
/>
<TextInput
- class="w-[5rem] p-[0.375rem] border border-gray-3 text-gray-12 rounded-[0.5rem] bg-gray-2"
+ class="w-20 p-1.5 border border-gray-3 text-gray-12 rounded-lg bg-gray-2"
value={text()}
onFocus={() => {
prevColor = props.value;
diff --git a/apps/desktop/src/routes/editor/ui.tsx b/apps/desktop/src/routes/editor/ui.tsx
index 42cae1c27..8aefae285 100644
--- a/apps/desktop/src/routes/editor/ui.tsx
+++ b/apps/desktop/src/routes/editor/ui.tsx
@@ -36,7 +36,7 @@ export function Field(
<div class={cx("flex flex-col gap-4", props.class)}>
<span
data-disabled={props.disabled}
- class="flex flex-row items-center gap-[0.375rem] text-gray-12 data-[disabled='true']:text-gray-10 font-medium text-sm"
+ class="flex flex-row items-center gap-1.5 text-gray-12 data-[disabled='true']:text-gray-10 font-medium text-sm"
>
{props.icon}
{props.name}
@@ -145,7 +145,7 @@ export function Slider(
setDragging(false);
}}
class={cx(
- "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-none size-4 -top-[6.3px] ui-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3 after:cursor-pointer",
+ "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-hidden size-4 -top-[6.3px] ui-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3 after:cursor-pointer",
)}
/>
</Tooltip>
@@ -160,7 +160,7 @@ export function Input(props: ComponentProps<"input">) {
{...props}
class={cx(
props.class,
- "rounded-[0.5rem] bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-[2rem] font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-[0.5rem] w-full text-[0.875rem] outline-none text-gray-12",
+ "rounded-lg bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-8 font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-2 w-full text-[0.875rem] outline-hidden text-gray-12",
)}
/>
);
@@ -178,13 +178,13 @@ export const Dialog = {
<KDialog {...props}>
<KDialog.Portal>
{!props.hideOverlay && (
- <KDialog.Overlay class="fixed inset-0 z-50 bg-[#000]/80 ui-expanded:animate-in ui-expanded:fade-in ui-closed:animate-out ui-closed:fade-out" />
+ <KDialog.Overlay class="fixed inset-0 z-50 bg-black/80 ui-expanded:animate-in ui-expanded:fade-in ui-closed:animate-out ui-closed:fade-out" />
)}
<div class="flex fixed inset-0 z-50 justify-center items-center">
<KDialog.Content
class={cx(
props.contentClass,
- "z-50 text-sm rounded-[1.25rem] overflow-hidden border border-gray-3 bg-gray-1 min-w-[22rem] ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 origin-top ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95",
+ "z-50 text-sm rounded-[1.25rem] overflow-hidden border border-gray-3 bg-gray-1 min-w-88 ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 origin-top ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95",
(props.size ?? "sm") === "sm" ? "max-w-96" : "max-w-3xl",
)}
>
@@ -218,7 +218,7 @@ export const Dialog = {
return (
<div
class={cx(
- "h-[4rem] px-[1rem] gap-3 flex flex-row items-center",
+ "h-16 px-4 gap-3 flex flex-row items-center",
props.leftFooterContent ? "justify-between" : "justify-center",
props.class,
)}
@@ -231,14 +231,14 @@ export const Dialog = {
},
Header(props: ComponentProps<"div">) {
return (
- <div {...props} class="h-[3.5rem] px-[1rem] flex flex-row items-center" />
+ <div {...props} class="h-14 px-4 flex flex-row items-center" />
);
},
Content(props: ComponentProps<"div">) {
return (
<div
{...props}
- class={cx("p-[1rem] flex flex-col border-y border-gray-3", props.class)}
+ class={cx("p-4 flex flex-col border-y border-gray-3", props.class)}
/>
);
},
@@ -279,7 +279,7 @@ export function MenuItem<T extends ValidComponent = "button">(
{...props}
class={cx(
props.class,
- "flex flex-row shrink-0 items-center gap-[0.375rem] px-[0.675rem] py-[0.375rem] rounded-[0.5rem] outline-none text-nowrap overflow-hidden text-ellipsis w-full max-w-full",
+ "flex flex-row shrink-0 items-center gap-1.5 px-[0.675rem] py-1.5 rounded-lg outline-hidden text-nowrap overflow-hidden text-ellipsis w-full max-w-full",
"text-[0.875rem] text-gray-10 disabled:text-gray-10 ui-highlighted:bg-gray-3 ui-highlighted:text-gray-12",
)}
/>
@@ -310,7 +310,7 @@ export function MenuItemList<T extends ValidComponent = "div">(
{...props}
class={cx(
props.class,
- "space-y-[0.375rem] p-[0.375rem] overflow-y-auto outline-none",
+ "space-y-1.5 p-1.5 overflow-y-auto outline-hidden",
)}
/>
);
@@ -318,8 +318,8 @@ export function MenuItemList<T extends ValidComponent = "div">(
const editorButtonStyles = cva(
[
- "group flex flex-row items-center px-[0.375rem] gap-[0.375rem] h-[2rem] rounded-[0.5rem] text-[0.875rem]",
- "focus:outline focus:outline-2 focus:outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100",
+ "group flex flex-row items-center px-1.5 gap-1.5 h-8 rounded-lg text-[0.875rem]",
+ "focus:outline-solid focus:outline-2 focus:outline-offset-2 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100",
"disabled:opacity-50 disabled:text-gray-11",
],
{
@@ -341,7 +341,7 @@ const editorButtonLeftIconStyles = cva("transition-colors duration-100", {
primary:
"text-gray-12 enabled:group-hover:not-ui-group-disabled:text-gray-12 ui-group-expanded:text-gray-12",
danger:
- "text-gray-12 enabled:group-hover:text-gray-12 ui-group-expanded:text-gray-1 ui-group-pressed:text-gray-1",
+ "text-gray-12 group-hover:enabled:text-gray-12 ui-group-expanded:text-gray-1 ui-group-pressed:text-gray-1",
},
},
defaultVariants: { variant: "primary" },
@@ -426,7 +426,7 @@ export function EditorButton<T extends ValidComponent = "button">(
}
export const dropdownContainerClasses =
- "z-[60] flex flex-col rounded-[0.75rem] border border-gray-3 bg-gray-1 shadow-s overflow-y-hidden outline-none";
+ "z-60 flex flex-col rounded-xl border border-gray-3 bg-gray-1 shadow-s overflow-y-hidden outline-hidden";
export const topLeftAnimateClasses =
"ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95 origin-top-left";
@@ -450,7 +450,7 @@ export function ComingSoonTooltip(
{trigger.children}
</KTooltip.Trigger>
<KTooltip.Portal>
- <KTooltip.Content class="p-2 font-medium bg-gray-12 text-gray-1 ui-expanded:animate-in ui-expanded:slide-in-from-bottom-1 ui-expanded:fade-in ui-closed:animate-out ui-closed:slide-out-to-bottom-1 ui-closed:fade-out rounded-lg text-xs z-[1000]">
+ <KTooltip.Content class="p-2 font-medium bg-gray-12 text-gray-1 ui-expanded:animate-in ui-expanded:slide-in-from-bottom-1 ui-expanded:fade-in ui-closed:animate-out ui-closed:slide-out-to-bottom-1 ui-closed:fade-out rounded-lg text-xs z-1000">
Coming Soon
</KTooltip.Content>
</KTooltip.Portal>
diff --git a/apps/desktop/src/routes/in-progress-recording.tsx b/apps/desktop/src/routes/in-progress-recording.tsx
index f1a8aacba..9db3377ca 100644
--- a/apps/desktop/src/routes/in-progress-recording.tsx
+++ b/apps/desktop/src/routes/in-progress-recording.tsx
@@ -655,14 +655,14 @@ function InProgressRecordingInner() {
</Show>
<div class="h-10 w-full rounded-2xl">
<div class="flex h-full w-full flex-row items-stretch overflow-hidden rounded-2xl bg-gray-1 border border-gray-5 shadow-[0_1px_3px_rgba(0,0,0,0.1)] animate-in fade-in">
- <div class="flex flex-1 flex-col gap-2 p-[0.25rem]">
+ <div class="flex flex-1 flex-col gap-2 p-1">
<div class="flex flex-1 flex-row justify-between">
<Show
when={!isInitializing()}
fallback={
- <div class="flex flex-row items-center gap-[0.375rem] rounded-lg py-[0.25rem] px-[0.5rem] text-gray-12">
+ <div class="flex flex-row items-center gap-1.5 rounded-lg py-1 px-2 text-gray-12">
<IconLucideLoader2 class="size-4 animate-spin" />
- <span class="text-[0.875rem] font-[500] tabular-nums">
+ <span class="text-[0.875rem] font-medium tabular-nums">
Starting
</span>
</div>
@@ -670,14 +670,14 @@ function InProgressRecordingInner() {
>
<button
disabled={stopRecording.isPending || isCountdown()}
- class="flex flex-row items-center gap-[0.25rem] rounded-lg py-[0.25rem] px-[0.5rem] text-red-300 transition-colors duration-100 hover:bg-red-500/[0.08] active:bg-red-500/[0.12] disabled:opacity-60 disabled:hover:bg-transparent"
+ class="flex flex-row items-center gap-1 rounded-lg py-1 px-2 text-red-300 transition-colors duration-100 hover:bg-red-500/8 active:bg-red-500/12 disabled:opacity-60 disabled:hover:bg-transparent"
type="button"
onClick={() => stopRecording.mutate()}
title="Stop recording"
aria-label="Stop recording"
>
<IconCapStopCircle />
- <span class="text-[0.875rem] font-[500] tabular-nums">
+ <span class="text-[0.875rem] font-medium tabular-nums">
<Show
when={!isCountdown()}
fallback={
@@ -873,7 +873,7 @@ function InProgressRecordingInner() {
</div>
</div>
<div
- class="non-styled-move flex cursor-move items-center justify-center border-l border-gray-5 p-[0.25rem] hover:cursor-move transition-colors duration-100 hover:bg-gray-12/[0.04] dark:hover:bg-white/[0.06]"
+ class="non-styled-move flex cursor-move items-center justify-center border-l border-gray-5 p-1 hover:cursor-move transition-colors duration-100 hover:bg-gray-12/4 dark:hover:bg-white/6"
data-tauri-drag-region
>
<IconCapMoreVertical class="pointer-events-none text-gray-10" />
@@ -890,10 +890,10 @@ function ActionButton(props: ComponentProps<"button">) {
<button
{...props}
class={cx(
- "p-[0.25rem] rounded-lg transition-colors duration-100",
+ "p-1 rounded-lg transition-colors duration-100",
"text-gray-11 hover:text-gray-12",
- "hover:bg-gray-12/[0.06] dark:hover:bg-white/[0.08]",
- "active:bg-gray-12/[0.1] dark:active:bg-white/[0.12]",
+ "hover:bg-gray-12/6 dark:hover:bg-white/8",
+ "active:bg-gray-12/10 dark:active:bg-white/12",
"h-8 w-8 flex items-center justify-center",
"disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent",
props.class,
diff --git a/apps/desktop/src/routes/recordings-overlay.tsx b/apps/desktop/src/routes/recordings-overlay.tsx
index 93fe63d79..6b2f70667 100644
--- a/apps/desktop/src/routes/recordings-overlay.tsx
+++ b/apps/desktop/src/routes/recordings-overlay.tsx
@@ -99,7 +99,7 @@ export default function () {
return (
<div
- class="w-screen h-[100vh] bg-transparent relative overflow-y-hidden"
+ class="w-screen h-screen bg-transparent relative overflow-y-hidden"
style={{
"scrollbar-color": "auto transparent",
}}
@@ -165,13 +165,13 @@ export default function () {
ref={setRef}
style={{ "border-color": "rgba(255, 255, 255, 0.1)" }}
class={cx(
- "overflow-hidden relative rounded-xl shadow transition-all duration-200 w-[260px] h-[150px] bg-gray-12 border-[1px] group",
+ "overflow-hidden relative rounded-xl shadow-sm transition-all duration-200 w-[260px] h-[150px] bg-gray-12 border group",
)}
>
<div
class={cx(
"w-full h-full flex relative bg-transparent z-10 overflow-hidden transition-all",
- isLoading() && "backdrop-blur bg-gray-12",
+ isLoading() && "backdrop-blur-sm bg-gray-12",
)}
style={{
"pointer-events": "auto",
@@ -287,7 +287,7 @@ export default function () {
showUpgradeTooltip()
? "opacity-100"
: "opacity-0 group-hover:opacity-100",
- "backdrop-blur p-2",
+ "backdrop-blur-sm p-2",
)}
>
<TooltipIconButton
@@ -310,7 +310,7 @@ export default function () {
);
}}
>
- <IconCapCircleX class="size-[1rem]" />
+ <IconCapCircleX class="size-4" />
</TooltipIconButton>
{isRecording ? (
<TooltipIconButton
@@ -336,7 +336,7 @@ export default function () {
});
}}
>
- <IconCapEditor class="size-[1rem]" />
+ <IconCapEditor class="size-4" />
</TooltipIconButton>
) : (
<TooltipIconButton
@@ -347,7 +347,7 @@ export default function () {
commands.openFilePath(media.path);
}}
>
- <IconLucideEye class="size-[1rem]" />
+ <IconLucideEye class="size-4" />
</TooltipIconButton>
)}
<TooltipIconButton
@@ -360,10 +360,10 @@ export default function () {
tooltipPlacement="left"
onClick={() => copy.mutate()}
>
- <IconCapCopy class="size-[1rem]" />
+ <IconCapCopy class="size-4" />
</TooltipIconButton>
<TooltipIconButton
- class="absolute right-3 bottom-3 z-[998]"
+ class="absolute right-3 bottom-3 z-998"
tooltipText={
recordingMeta.data?.sharing
? "Copy Shareable Link"
@@ -372,7 +372,7 @@ export default function () {
tooltipPlacement="left"
onClick={() => upload.mutate()}
>
- <IconCapUpload class="size-[1rem]" />
+ <IconCapUpload class="size-4" />
</TooltipIconButton>
<div class="flex absolute inset-0 justify-center items-center">
<Button
@@ -448,7 +448,7 @@ function ActionProgressOverlay(props: {
style={{
"background-color": "rgba(0, 0, 0, 0.85)",
}}
- class="absolute inset-0 flex items-center justify-center z-[999999] pointer-events-auto"
+ class="absolute inset-0 flex items-center justify-center z-999999 pointer-events-auto"
>
<div class="w-[80%] text-center">
<h3 class="mb-3 text-sm font-medium text-gray-1 dark:text-gray-12">
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationConfig.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationConfig.tsx
index 2dee4442a..4e4332a6e 100644
--- a/apps/desktop/src/routes/screenshot-editor/AnnotationConfig.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationConfig.tsx
@@ -33,7 +33,7 @@ export function AnnotationConfigBar() {
{(ann) => {
const type = () => ann().type;
const isMask = () => type() === "mask";
- const maskType = () => ann().maskType ?? "blur";
+ const maskType = () => ann().maskType ?? "blur-sm";
const maskLevel = () => ann().maskLevel ?? 16;
return (
<div
@@ -101,11 +101,11 @@ export function AnnotationConfigBar() {
type="button"
class={cx(
"px-2.5 h-6 rounded-md text-xs font-medium transition-colors",
- maskType() === "blur"
+ maskType() === "blur-sm"
? "bg-blue-9 text-white"
: "bg-gray-3 text-gray-11 hover:bg-gray-4",
)}
- onClick={() => update("maskType", "blur")}
+ onClick={() => update("maskType", "blur-sm")}
>
Blur
</button>
@@ -209,7 +209,7 @@ function ColorPickerButton(props: {
return (
<Popover placement="bottom" gutter={8}>
- <Popover.Trigger class="outline-none group">
+ <Popover.Trigger class="outline-hidden group">
<div class="size-5 rounded-full border border-gray-5 transition-all group-hover:scale-110 group-hover:border-gray-7 group-active:scale-95 overflow-hidden">
<div
class="w-full h-full"
@@ -224,7 +224,7 @@ function ColorPickerButton(props: {
</div>
</Popover.Trigger>
<Popover.Portal>
- <Popover.Content class="z-[200] w-[220px] overflow-hidden rounded-lg border border-gray-4 bg-gray-1 dark:bg-gray-2 shadow-lg animate-in fade-in zoom-in-95 p-2.5">
+ <Popover.Content class="z-200 w-[220px] overflow-hidden rounded-lg border border-gray-4 bg-gray-1 dark:bg-gray-2 shadow-lg animate-in fade-in zoom-in-95 p-2.5">
<div class="flex flex-col gap-2.5">
<RgbInput
value={rgbValue()}
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
index 1a13181a9..b309c25a4 100644
--- a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
@@ -586,7 +586,7 @@ export function AnnotationLayer(props: {
class="overflow-visible"
>
<div
- class="text-editor bg-transparent outline-none p-0 m-0"
+ class="text-editor bg-transparent outline-hidden p-0 m-0"
contentEditable
style={{
"font-size": `${ann.height}px`,
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
index 37c0ed861..171829fa6 100644
--- a/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationTools.tsx
@@ -20,7 +20,7 @@ export function AnnotationTools() {
type="button"
onClick={() => setLayersPanelOpen(!layersPanelOpen())}
class={cx(
- "flex items-center justify-center rounded-[0.5rem] transition-all size-8",
+ "flex items-center justify-center rounded-lg transition-all size-8",
layersPanelOpen()
? "bg-blue-3 text-blue-11"
: "bg-transparent hover:bg-gray-3 text-gray-11",
@@ -87,7 +87,7 @@ function ToolButton(props: {
}
}}
class={cx(
- "flex items-center justify-center rounded-[0.5rem] transition-all size-8",
+ "flex items-center justify-center rounded-lg transition-all size-8",
activeTool() === props.tool
? "bg-blue-3 text-blue-11"
: "bg-transparent hover:bg-gray-3 text-gray-11",
diff --git a/apps/desktop/src/routes/screenshot-editor/ColorPicker.tsx b/apps/desktop/src/routes/screenshot-editor/ColorPicker.tsx
index 5e7f4b6c6..9ee1c0cbb 100644
--- a/apps/desktop/src/routes/screenshot-editor/ColorPicker.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/ColorPicker.tsx
@@ -45,10 +45,10 @@ export function RgbInput(props: {
};
return (
- <div class="flex flex-row items-center gap-[0.75rem] relative">
+ <div class="flex flex-row items-center gap-3 relative">
<button
type="button"
- class="size-[2rem] rounded-[0.5rem] border border-gray-4"
+ class="size-8 rounded-lg border border-gray-4"
style={{
"background-color": rgbToHex(props.value),
}}
@@ -57,7 +57,7 @@ export function RgbInput(props: {
<input
ref={colorInput}
type="color"
- class="absolute left-0 bottom-0 w-[3rem] opacity-0"
+ class="absolute left-0 bottom-0 w-12 opacity-0"
value={rgbToHex(props.value)}
onChange={(e) => {
const value = hexToRgb(e.target.value);
@@ -67,7 +67,7 @@ export function RgbInput(props: {
}}
/>
<TextInput
- class="w-[4.60rem] p-[0.375rem] text-gray-12 text-[13px] border rounded-[0.5rem] bg-gray-1 outline-none focus:ring-1 transition-shadows duration-200 focus:ring-gray-500 focus:ring-offset-1 focus:ring-offset-gray-200"
+ class="w-[4.60rem] p-1.5 text-gray-12 text-[13px] border rounded-lg bg-gray-1 outline-hidden focus:ring-1 transition-shadows duration-200 focus:ring-gray-500 focus:ring-offset-1 focus:ring-offset-gray-200"
value={text()}
onFocus={() => {
prevHex = rgbToHex(props.value);
diff --git a/apps/desktop/src/routes/screenshot-editor/Editor.tsx b/apps/desktop/src/routes/screenshot-editor/Editor.tsx
index 10fb1337b..0e9cc18e5 100644
--- a/apps/desktop/src/routes/screenshot-editor/Editor.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/Editor.tsx
@@ -120,7 +120,7 @@ export function Editor() {
setLayersPanelOpen(!layersPanelOpen());
break;
case "h":
- setActivePopover(activePopover() === "shadow" ? null : "shadow");
+ setActivePopover(activePopover() === "shadow-sm" ? null : "shadow-sm");
break;
case "e":
setActivePopover(activePopover() === "border" ? null : "border");
@@ -291,7 +291,7 @@ function Dialogs() {
format={false}
>
<NumberField.Input
- class="rounded-[0.5rem] bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-[2rem] font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-[0.5rem] w-full text-[0.875rem] outline-none text-gray-12"
+ class="rounded-lg bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-8 font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-2 w-full text-[0.875rem] outline-hidden text-gray-12"
onKeyDown={composeEventHandlers<HTMLInputElement>([
(e) => e.stopPropagation(),
])}
@@ -303,35 +303,35 @@ function Dialogs() {
return (
<>
<Dialog.Header>
- <div class="flex flex-row space-x-[2rem]">
- <div class="flex flex-row items-center space-x-[0.75rem] text-gray-11">
+ <div class="flex flex-row space-x-8">
+ <div class="flex flex-row items-center space-x-3 text-gray-11">
<span>Size</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="width" max={originalSize.x} />
</div>
<span>×</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="height" max={originalSize.y} />
</div>
</div>
- <div class="flex flex-row items-center space-x-[0.75rem] text-gray-11">
+ <div class="flex flex-row items-center space-x-3 text-gray-11">
<span>Position</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="x" />
</div>
<span>×</span>
- <div class="w-[3.25rem]">
+ <div class="w-13">
<BoundInput field="y" />
</div>
</div>
</div>
<div class="flex flex-row gap-3 justify-end items-center w-full">
- <div class="flex flex-row items-center space-x-[0.5rem] text-gray-11"></div>
+ <div class="flex flex-row items-center space-x-2 text-gray-11"></div>
<Button
variant="white"
size="xs"
- class="flex items-center justify-center text-center rounded-full h-[2rem] w-[2rem] border focus:border-blue-9"
+ class="flex items-center justify-center text-center rounded-full h-8 w-8 border focus:border-blue-9"
onMouseDown={showCropOptionsMenu}
onClick={showCropOptionsMenu}
>
@@ -341,7 +341,7 @@ function Dialogs() {
</Show>
<Transition
enterClass="scale-50 opacity-0 blur-md"
- enterActiveClass="duration-200 [transition-timing-function:cubic-bezier(0.215,0.61,0.355,1)]"
+ enterActiveClass="duration-200 ease-[cubic-bezier(0.215,0.61,0.355,1)]"
enterToClass="scale-100 opacity-100 blur-0"
exitClass="opacity-0"
exitActiveClass="duration-0"
@@ -387,9 +387,9 @@ function Dialogs() {
</Dialog.Header>
<Dialog.Content>
<div class="flex flex-row justify-center items-center">
- <div class="rounded-[1.25rem] bg-gray-2/80 p-3 shadow-sm ring-1 ring-black/5 dark:bg-gray-3/80">
+ <div class="rounded-[1.25rem] bg-gray-2/80 p-3 shadow-xs ring-1 ring-black/5 dark:bg-gray-3/80">
<div
- class="relative rounded overflow-visible select-none"
+ class="relative rounded-sm overflow-visible select-none"
style={previewSize()}
>
<Cropper
@@ -410,7 +410,7 @@ function Dialogs() {
}
>
<img
- class="w-full h-full pointer-events-none select-none shadow"
+ class="w-full h-full pointer-events-none select-none shadow-sm"
alt="screenshot"
src={convertFileSrc(imagePath())}
/>
diff --git a/apps/desktop/src/routes/screenshot-editor/LayersPanel.tsx b/apps/desktop/src/routes/screenshot-editor/LayersPanel.tsx
index 93d949717..dfddb25f0 100644
--- a/apps/desktop/src/routes/screenshot-editor/LayersPanel.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/LayersPanel.tsx
@@ -144,7 +144,7 @@ export function LayersPanel() {
onCleanup(() => {
window.removeEventListener("mousemove", handleDragMove);
window.removeEventListener("mouseup", handleDragEnd);
- window.removeEventListener("blur", handleWindowBlur);
+ window.removeEventListener("blur-sm", handleWindowBlur);
document.documentElement.removeEventListener(
"mouseleave",
handleMouseLeave,
@@ -206,7 +206,7 @@ export function LayersPanel() {
<button
type="button"
onClick={() => setLayersPanelOpen(false)}
- class="p-1 rounded hover:bg-gray-3 text-gray-11 hover:text-gray-12 transition-colors"
+ class="p-1 rounded-sm hover:bg-gray-3 text-gray-11 hover:text-gray-12 transition-colors"
>
<IconLucideX class="size-4" />
</button>
@@ -272,7 +272,7 @@ export function LayersPanel() {
<div
class={cx(
- "flex items-center justify-center size-6 rounded",
+ "flex items-center justify-center size-6 rounded-sm",
isSelected()
? "bg-blue-5 text-blue-11"
: "bg-gray-3 text-gray-11",
@@ -293,7 +293,7 @@ export function LayersPanel() {
<button
type="button"
onClick={(e) => handleDelete(ann.id, e)}
- class="opacity-0 group-hover:opacity-100 p-0.5 rounded hover:bg-red-3 text-gray-9 hover:text-red-11 transition-all"
+ class="opacity-0 group-hover:opacity-100 p-0.5 rounded-sm hover:bg-red-3 text-gray-9 hover:text-red-11 transition-all"
>
<IconLucideX class="size-3" />
</button>
diff --git a/apps/desktop/src/routes/screenshot-editor/Preview.tsx b/apps/desktop/src/routes/screenshot-editor/Preview.tsx
index a2164a354..1567bca08 100644
--- a/apps/desktop/src/routes/screenshot-editor/Preview.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/Preview.tsx
@@ -325,12 +325,12 @@ export function Preview(props: { zoom: number; setZoom: (z: number) => void }) {
{/* Preview Area */}
<div
ref={setCanvasContainerRef}
- class="flex-1 relative flex items-center justify-center overflow-hidden outline-none"
+ class="flex-1 relative flex items-center justify-center overflow-hidden outline-hidden"
style={gridStyle}
onWheel={handleWheel}
onMouseDown={handleMiddleMouseDown}
>
- <div class="absolute left-4 bottom-4 z-10 flex items-center gap-2 bg-gray-1 dark:bg-gray-3 rounded-lg shadow-sm p-1 border border-gray-4">
+ <div class="absolute left-4 bottom-4 z-10 flex items-center gap-2 bg-gray-1 dark:bg-gray-3 rounded-lg shadow-xs p-1 border border-gray-4">
<EditorButton
tooltipText="Zoom Out"
kbd={["meta", "-"]}
@@ -489,7 +489,7 @@ export function Preview(props: { zoom: number; setZoom: (z: number) => void }) {
if (regionWidth <= 0 || regionHeight <= 0) continue;
const level = Math.max(1, mask.maskLevel ?? 16);
- const type = mask.maskType ?? "blur";
+ const type = mask.maskType ?? "blur-sm";
if (type === "pixelate") {
const blockSize = Math.max(2, Math.round(level));
diff --git a/apps/desktop/src/routes/screenshot-editor/context.tsx b/apps/desktop/src/routes/screenshot-editor/context.tsx
index f3dc0e13b..7e83c4b54 100644
--- a/apps/desktop/src/routes/screenshot-editor/context.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/context.tsx
@@ -182,7 +182,7 @@ function createScreenshotEditorContext() {
);
const [activePopover, setActivePopover] = createSignal<
- "background" | "padding" | "rounding" | "shadow" | "border" | null
+ "background" | "padding" | "rounding" | "shadow-sm" | "border" | null
>(null);
const [dialog, setDialog] = createSignal<DialogState>({
diff --git a/apps/desktop/src/routes/screenshot-editor/popovers/AspectRatioSelect.tsx b/apps/desktop/src/routes/screenshot-editor/popovers/AspectRatioSelect.tsx
index b218c21b2..d4d298fb6 100644
--- a/apps/desktop/src/routes/screenshot-editor/popovers/AspectRatioSelect.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/popovers/AspectRatioSelect.tsx
@@ -94,7 +94,7 @@ export function AspectRatioSelect() {
>
<MenuItemList<typeof KSelect.Listbox>
as={KSelect.Listbox}
- class="w-[12.5rem]"
+ class="w-50"
/>
</PopperContent>
</KSelect.Portal>
diff --git a/apps/desktop/src/routes/screenshot-editor/popovers/BackgroundSettingsPopover.tsx b/apps/desktop/src/routes/screenshot-editor/popovers/BackgroundSettingsPopover.tsx
index cfaf06493..20f1cd873 100644
--- a/apps/desktop/src/routes/screenshot-editor/popovers/BackgroundSettingsPopover.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/popovers/BackgroundSettingsPopover.tsx
@@ -276,12 +276,12 @@ export function BackgroundSettingsPopover() {
}
}}
>
- <KTabs.List class="flex flex-row gap-2 items-center rounded-[0.5rem] relative">
+ <KTabs.List class="flex flex-row gap-2 items-center rounded-lg relative">
<For each={BACKGROUND_SOURCES_LIST}>
{(item) => {
return (
<KTabs.Trigger
- class="z-10 flex-1 py-2.5 px-2 text-xs text-gray-11 ui-selected:border-gray-3 ui-selected:bg-gray-3 ui-not-selected:hover:border-gray-7 rounded-[10px] transition-colors duration-200 outline-none border ui-selected:text-gray-12 peer"
+ class="z-10 flex-1 py-2.5 px-2 text-xs text-gray-11 ui-selected:border-gray-3 ui-selected:bg-gray-3 ui-not-selected:hover:border-gray-7 rounded-[10px] transition-colors duration-200 outline-hidden border ui-selected:text-gray-12 peer"
value={item}
>
{BACKGROUND_SOURCES[item]}
@@ -308,7 +308,7 @@ export function BackgroundSettingsPopover() {
)
}
value={key}
- class="flex relative z-10 flex-1 justify-center items-center px-4 py-2 bg-transparent rounded-lg border transition-colors duration-200 text-gray-11 ui-not-selected:hover:border-gray-7 ui-selected:bg-gray-3 ui-selected:border-gray-3 group ui-selected:text-gray-12 disabled:opacity-50 focus:outline-none"
+ class="flex relative z-10 flex-1 justify-center items-center px-4 py-2 bg-transparent rounded-lg border transition-colors duration-200 text-gray-11 ui-not-selected:hover:border-gray-7 ui-selected:bg-gray-3 ui-selected:border-gray-3 group ui-selected:text-gray-12 disabled:opacity-50 focus:outline-hidden"
>
{value}
</KTabs.Trigger>
@@ -369,7 +369,7 @@ export function BackgroundSettingsPopover() {
<button
type="button"
onClick={() => fileInput.click()}
- class="p-6 bg-gray-2 text-[13px] w-full rounded-[0.5rem] border border-gray-5 border-dashed flex flex-col items-center justify-center gap-[0.5rem] hover:bg-gray-3 transition-colors duration-100"
+ class="p-6 bg-gray-2 text-[13px] w-full rounded-lg border border-gray-5 border-dashed flex flex-col items-center justify-center gap-2 hover:bg-gray-3 transition-colors duration-100"
>
<IconCapImage class="text-gray-11 size-6" />
<span class="text-gray-12">
@@ -464,7 +464,7 @@ export function BackgroundSettingsPopover() {
}}
/>
<div
- class="rounded-lg transition-all duration-200 cursor-pointer size-8 peer-checked:hover:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
+ class="rounded-lg transition-all duration-200 cursor-pointer size-8 hover:peer-checked:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
style={{ background: color }}
/>
</label>
@@ -519,7 +519,7 @@ export function BackgroundSettingsPopover() {
}}
/>
<div
- class="rounded-lg transition-all duration-200 cursor-pointer size-8 peer-checked:hover:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
+ class="rounded-lg transition-all duration-200 cursor-pointer size-8 hover:peer-checked:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"
style={{
background: `linear-gradient(${angle()}deg, rgb(${gradient.from.join(
",",
@@ -541,7 +541,7 @@ export function BackgroundSettingsPopover() {
<Field name="Background Blur" icon={<IconCapBgBlur />}>
<Slider
value={[project.background.blur]}
- onChange={(v) => setProject("background", "blur", v[0])}
+ onChange={(v) => setProject("background", "blur-sm", v[0])}
minValue={0}
maxValue={100}
step={0.1}
diff --git a/apps/desktop/src/routes/screenshot-editor/popovers/RoundingPopover.tsx b/apps/desktop/src/routes/screenshot-editor/popovers/RoundingPopover.tsx
index 85d0aec3a..dbc72a670 100644
--- a/apps/desktop/src/routes/screenshot-editor/popovers/RoundingPopover.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/popovers/RoundingPopover.tsx
@@ -14,10 +14,10 @@ import {
topSlideAnimateClasses,
} from "../ui";
-export type CornerRoundingType = "rounded" | "squircle";
+export type CornerRoundingType = "rounded-sm" | "squircle";
const CORNER_STYLE_OPTIONS = [
{ name: "Squircle", value: "squircle" },
- { name: "Rounded", value: "rounded" },
+ { name: "Rounded", value: "rounded-sm" },
] satisfies Array<{ name: string; value: CornerRoundingType }>;
function hasNoVisibleBackground(source: {
@@ -144,14 +144,14 @@ function CornerStyleSelect(props: {
<KSelect.Value<{
name: string;
value: CornerRoundingType;
- }> class="flex-1 text-sm text-left truncate text-[--gray-500] font-normal">
+ }> class="flex-1 text-sm text-left truncate text-(--gray-500) font-normal">
{(state) => <span>{state.selectedOption().name}</span>}
</KSelect.Value>
<KSelect.Icon<ValidComponent>
as={(iconProps) => (
<IconCapChevronDown
{...iconProps}
- class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-[--gray-500]"
+ class="size-4 shrink-0 transform transition-transform ui-expanded:rotate-180 text-(--gray-500)"
/>
)}
/>
diff --git a/apps/desktop/src/routes/screenshot-editor/popovers/ShadowPopover.tsx b/apps/desktop/src/routes/screenshot-editor/popovers/ShadowPopover.tsx
index 2d442fbd3..a903d84fd 100644
--- a/apps/desktop/src/routes/screenshot-editor/popovers/ShadowPopover.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/popovers/ShadowPopover.tsx
@@ -13,15 +13,15 @@ export function ShadowPopover() {
return (
<Popover
placement="bottom-start"
- open={activePopover() === "shadow"}
+ open={activePopover() === "shadow-sm"}
onOpenChange={(open) => {
- if (!open && activePopover() === "shadow") setActivePopover(null);
+ if (!open && activePopover() === "shadow-sm") setActivePopover(null);
}}
>
<Popover.Anchor
as={EditorButton}
onClick={() =>
- setActivePopover(activePopover() === "shadow" ? null : "shadow")
+ setActivePopover(activePopover() === "shadow-sm" ? null : "shadow-sm")
}
leftIcon={<IconCapShadow class="size-4" />}
tooltipText="Shadow"
@@ -36,7 +36,7 @@ export function ShadowPopover() {
value={[project.background.shadow ?? 0]}
onChange={(v) => {
batch(() => {
- setProject("background", "shadow", v[0]);
+ setProject("background", "shadow-sm", v[0]);
if (v[0] > 0 && !project.background.advancedShadow) {
setProject("background", "advancedShadow", {
size: 50,
diff --git a/apps/desktop/src/routes/screenshot-editor/screenshot-editor-skeleton.tsx b/apps/desktop/src/routes/screenshot-editor/screenshot-editor-skeleton.tsx
index 4682750f8..6c94d5b73 100644
--- a/apps/desktop/src/routes/screenshot-editor/screenshot-editor-skeleton.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/screenshot-editor-skeleton.tsx
@@ -5,7 +5,7 @@ import IconCapLogo from "~icons/cap/logo";
function SkeletonPulse(props: { class?: string }) {
return (
<div
- class={cx("animate-pulse rounded bg-gray-3 dark:bg-gray-4", props.class)}
+ class={cx("animate-pulse rounded-sm bg-gray-3 dark:bg-gray-4", props.class)}
/>
);
}
@@ -64,7 +64,7 @@ function PreviewSkeleton() {
return (
<div class="flex flex-col flex-1 overflow-hidden bg-gray-1 dark:bg-gray-2">
<div class="flex-1 relative flex items-center justify-center overflow-hidden bg-gray-2 dark:bg-gray-3">
- <div class="absolute left-4 bottom-4 z-10 flex items-center gap-2 bg-gray-1 dark:bg-gray-3 rounded-lg shadow-sm p-1 border border-gray-4">
+ <div class="absolute left-4 bottom-4 z-10 flex items-center gap-2 bg-gray-1 dark:bg-gray-3 rounded-lg shadow-xs p-1 border border-gray-4">
<SkeletonButton />
<SkeletonPulse class="w-20 h-2 rounded-full" />
<SkeletonButton />
diff --git a/apps/desktop/src/routes/screenshot-editor/ui.tsx b/apps/desktop/src/routes/screenshot-editor/ui.tsx
index 1f35bba04..d81341bea 100644
--- a/apps/desktop/src/routes/screenshot-editor/ui.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/ui.tsx
@@ -35,7 +35,7 @@ export function Field(
<div class={cx("flex flex-col gap-4", props.class)}>
<span
data-disabled={props.disabled}
- class="flex flex-row items-center gap-[0.375rem] text-gray-12 data-[disabled='true']:text-gray-10 font-medium text-sm"
+ class="flex flex-row items-center gap-1.5 text-gray-12 data-[disabled='true']:text-gray-10 font-medium text-sm"
>
{props.icon}
{props.name}
@@ -137,7 +137,7 @@ export function Slider(
setDragging(false);
}}
class={cx(
- "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-none size-4 -top-[6.3px] ui-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3 after:cursor-pointer",
+ "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-hidden size-4 -top-[6.3px] ui-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3 after:cursor-pointer",
)}
/>
</Tooltip>
@@ -152,7 +152,7 @@ export function Input(props: ComponentProps<"input">) {
{...props}
class={cx(
props.class,
- "rounded-[0.5rem] bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-[2rem] font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-[0.5rem] w-full text-[0.875rem] outline-none text-gray-12",
+ "rounded-lg bg-gray-2 hover:ring-1 py-[18px] hover:ring-gray-5 h-8 font-normal placeholder:text-black-transparent-40 text-xs caret-gray-500 transition-shadow duration-200 focus:ring-offset-1 focus:bg-gray-3 focus:ring-offset-gray-100 focus:ring-1 focus:ring-gray-10 px-2 w-full text-[0.875rem] outline-hidden text-gray-12",
)}
/>
);
@@ -170,13 +170,13 @@ export const Dialog = {
<KDialog {...props}>
<KDialog.Portal>
{!props.hideOverlay && (
- <KDialog.Overlay class="fixed inset-0 z-50 bg-[#000]/80 ui-expanded:animate-in ui-expanded:fade-in ui-closed:animate-out ui-closed:fade-out" />
+ <KDialog.Overlay class="fixed inset-0 z-50 bg-black/80 ui-expanded:animate-in ui-expanded:fade-in ui-closed:animate-out ui-closed:fade-out" />
)}
<div class="flex fixed inset-0 z-50 justify-center items-center">
<KDialog.Content
class={cx(
props.contentClass,
- "z-50 text-sm rounded-[1.25rem] overflow-hidden border border-gray-3 bg-gray-1 min-w-[22rem] ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 origin-top ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95",
+ "z-50 text-sm rounded-[1.25rem] overflow-hidden border border-gray-3 bg-gray-1 min-w-88 ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 origin-top ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95",
(props.size ?? "sm") === "sm" ? "max-w-96" : "max-w-3xl",
)}
>
@@ -210,7 +210,7 @@ export const Dialog = {
return (
<div
class={cx(
- "h-[4rem] px-[1rem] gap-3 flex flex-row items-center",
+ "h-16 px-4 gap-3 flex flex-row items-center",
props.leftFooterContent ? "justify-between" : "justify-center",
props.class,
)}
@@ -223,14 +223,14 @@ export const Dialog = {
},
Header(props: ComponentProps<"div">) {
return (
- <div {...props} class="h-[3.5rem] px-[1rem] flex flex-row items-center" />
+ <div {...props} class="h-14 px-4 flex flex-row items-center" />
);
},
Content(props: ComponentProps<"div">) {
return (
<div
{...props}
- class={cx("p-[1rem] flex flex-col border-y border-gray-3", props.class)}
+ class={cx("p-4 flex flex-col border-y border-gray-3", props.class)}
/>
);
},
@@ -271,7 +271,7 @@ export function MenuItem<T extends ValidComponent = "button">(
{...props}
class={cx(
props.class,
- "flex flex-row shrink-0 items-center gap-[0.375rem] px-[0.675rem] py-[0.375rem] rounded-[0.5rem] outline-none text-nowrap overflow-hidden text-ellipsis w-full max-w-full",
+ "flex flex-row shrink-0 items-center gap-1.5 px-[0.675rem] py-1.5 rounded-lg outline-hidden text-nowrap overflow-hidden text-ellipsis w-full max-w-full",
"text-[0.875rem] text-gray-10 disabled:text-gray-10 ui-highlighted:bg-gray-3 ui-highlighted:text-gray-12",
)}
/>
@@ -302,7 +302,7 @@ export function MenuItemList<T extends ValidComponent = "div">(
{...props}
class={cx(
props.class,
- "space-y-[0.375rem] p-[0.375rem] overflow-y-auto outline-none",
+ "space-y-1.5 p-1.5 overflow-y-auto outline-hidden",
)}
/>
);
@@ -310,8 +310,8 @@ export function MenuItemList<T extends ValidComponent = "div">(
const editorButtonStyles = cva(
[
- "group flex flex-row items-center px-[0.375rem] gap-[0.375rem] h-[2rem] rounded-[0.5rem] text-[0.875rem]",
- "focus:outline focus:outline-2 focus:outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100",
+ "group flex flex-row items-center px-1.5 gap-1.5 h-8 rounded-lg text-[0.875rem]",
+ "focus:outline-solid focus:outline-2 focus:outline-offset-2 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100",
"disabled:opacity-50 disabled:text-gray-11",
],
{
@@ -333,7 +333,7 @@ const editorButtonLeftIconStyles = cva("transition-colors duration-100", {
primary:
"text-gray-12 enabled:group-hover:not-ui-group-disabled:text-gray-12 ui-group-expanded:text-gray-12",
danger:
- "text-gray-12 enabled:group-hover:text-gray-12 ui-group-expanded:text-gray-1 ui-group-pressed:text-gray-1",
+ "text-gray-12 group-hover:enabled:text-gray-12 ui-group-expanded:text-gray-1 ui-group-pressed:text-gray-1",
},
},
defaultVariants: { variant: "primary" },
@@ -420,7 +420,7 @@ export function EditorButton<T extends ValidComponent = "button">(
}
export const dropdownContainerClasses =
- "z-10 flex flex-col rounded-[0.75rem] border border-gray-3 bg-gray-1 shadow-s overflow-y-hidden outline-none";
+ "z-10 flex flex-col rounded-xl border border-gray-3 bg-gray-1 shadow-s overflow-y-hidden outline-hidden";
export const topLeftAnimateClasses =
"ui-expanded:animate-in ui-expanded:fade-in ui-expanded:zoom-in-95 ui-closed:animate-out ui-closed:fade-out ui-closed:zoom-out-95 origin-top-left";
@@ -444,7 +444,7 @@ export function ComingSoonTooltip(
{trigger.children}
</KTooltip.Trigger>
<KTooltip.Portal>
- <KTooltip.Content class="p-2 font-medium bg-gray-12 text-gray-1 ui-expanded:animate-in ui-expanded:slide-in-from-bottom-1 ui-expanded:fade-in ui-closed:animate-out ui-closed:slide-out-to-bottom-1 ui-closed:fade-out rounded-lg text-xs z-[1000]">
+ <KTooltip.Content class="p-2 font-medium bg-gray-12 text-gray-1 ui-expanded:animate-in ui-expanded:slide-in-from-bottom-1 ui-expanded:fade-in ui-closed:animate-out ui-closed:slide-out-to-bottom-1 ui-closed:fade-out rounded-lg text-xs z-1000">
Coming Soon
</KTooltip.Content>
</KTooltip.Portal>
diff --git a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
index 28c4c8ad7..f512096f9 100644
--- a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
+++ b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
@@ -146,7 +146,7 @@ export function useScreenshotExport() {
if (regionWidth <= 0 || regionHeight <= 0) continue;
const level = Math.max(1, ann.maskLevel ?? 16);
- const type = ann.maskType ?? "blur";
+ const type = ann.maskType ?? "blur-sm";
if (type === "pixelate") {
const blockSize = Math.max(2, Math.round(level));
diff --git a/apps/desktop/src/routes/target-select-overlay.tsx b/apps/desktop/src/routes/target-select-overlay.tsx
index 621772ab2..099a255df 100644
--- a/apps/desktop/src/routes/target-select-overlay.tsx
+++ b/apps/desktop/src/routes/target-select-overlay.tsx
@@ -1112,7 +1112,7 @@ function Inner() {
/>
</Show>
<Show when={!isValid()}>
- <div class="flex flex-col gap-1 items-center p-2.5 my-2 rounded-xl border min-w-fit w-fit bg-red-2 shadow-sm border-red-4 text-sm">
+ <div class="flex flex-col gap-1 items-center p-2.5 my-2 rounded-xl border min-w-fit w-fit bg-red-2 shadow-xs border-red-4 text-sm">
<p>
Minimum size is {minSize().width} x {minSize().height}
</p>
@@ -1679,7 +1679,7 @@ function RecordingControls(props: {
return (
<>
- <div class="flex flex-col gap-2.5 items-stretch my-2.5 w-[26rem] max-w-[90vw]">
+ <div class="flex flex-col gap-2.5 items-stretch my-2.5 w-104 max-w-[90vw]">
<div class="p-3 rounded-2xl border border-white/30 dark:border-white/10 bg-white/70 dark:bg-gray-2/70 shadow-lg backdrop-blur-xl">
<div class="flex gap-2.5 items-center">
<div
@@ -1698,7 +1698,7 @@ function RecordingControls(props: {
<div
data-inactive={rawOptions.mode === "instant" && !auth.data}
data-disabled={startDisabled()}
- class="flex flex-1 min-w-0 max-w-[18rem] overflow-hidden flex-row h-11 rounded-full text-white bg-gradient-to-r from-blue-10 via-blue-10 to-blue-11 dark:from-blue-9 dark:via-blue-9 dark:to-blue-10 group"
+ class="flex flex-1 min-w-0 max-w-[18rem] overflow-hidden flex-row h-11 rounded-full text-white bg-linear-to-r from-blue-10 via-blue-10 to-blue-11 dark:from-blue-9 dark:via-blue-9 dark:to-blue-10 group"
onClick={async () => {
if (rawOptions.mode === "instant" && !auth.data) {
emit("start-sign-in");
@@ -1767,13 +1767,13 @@ function RecordingControls(props: {
>
<Switch>
<Match when={rawOptions.mode === "studio"}>
- <IconCapFilmCut class="size-4 flex-shrink-0" />
+ <IconCapFilmCut class="size-4 shrink-0" />
</Match>
<Match when={rawOptions.mode === "instant"}>
- <IconCapInstant class="size-4 flex-shrink-0" />
+ <IconCapInstant class="size-4 shrink-0" />
</Match>
<Match when={(rawOptions.mode as string) === "screenshot"}>
- <IconCapCamera class="size-4 flex-shrink-0" />
+ <IconCapCamera class="size-4 shrink-0" />
</Match>
</Switch>
<div class="flex flex-col mr-2 ml-3 min-w-0">
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.ts
index c1f1153e3..29ababde8 100644
--- a/apps/desktop/src/utils/tauri.ts
+++ b/apps/desktop/src/utils/tauri.ts
@@ -466,7 +466,7 @@ export type ClickSpringConfig = { tension: number; mass: number; friction: numbe
export type ClipConfiguration = { index: number; offsets: ClipOffsets }
export type ClipOffsets = { camera?: number; mic?: number; system_audio?: number }
export type CommercialLicense = { licenseKey: string; expiryDate: number | null; refresh: number; activatedOn: number }
-export type CornerStyle = "squircle" | "rounded"
+export type CornerStyle = "squircle" | "rounded-sm"
export type Crop = { position: XY<number>; size: XY<number> }
export type CurrentRecording = { target: CurrentRecordingTarget; mode: RecordingMode; status: RecordingStatus }
export type CurrentRecordingChanged = null
@@ -526,7 +526,7 @@ export type MaskKeyframes = { position?: MaskVectorKeyframe[]; size?: MaskVector
export type MaskKind = "sensitive" | "highlight"
export type MaskScalarKeyframe = { time: number; value: number }
export type MaskSegment = { start: number; end: number; track?: number; enabled?: boolean; maskType: MaskKind; center: XY<number>; size: XY<number>; feather?: number; opacity?: number; pixelation?: number; darkness?: number; fadeDuration?: number; keyframes?: MaskKeyframes }
-export type MaskType = "blur" | "pixelate"
+export type MaskType = "blur-sm" | "pixelate"
export type MaskVectorKeyframe = { time: number; x: number; y: number }
export type MicrophoneInfo = { name: string; sampleRate: number; channels: number }
export type ModelIDType = string
diff --git a/packages/ui-solid/package.json b/packages/ui-solid/package.json
index c8dbd63d5..d447a468f 100644
--- a/packages/ui-solid/package.json
+++ b/packages/ui-solid/package.json
@@ -14,7 +14,7 @@
"@kobalte/core": "^0.13.7",
"cva": "npm:class-variance-authority@^0.7.0",
"solid-js": "^1.9.3",
- "tailwindcss": "^3.4.10",
+ "tailwindcss": "^4.2.2",
"zod": "^3"
},
"devDependencies": {
diff --git a/packages/ui-solid/src/Button.tsx b/packages/ui-solid/src/Button.tsx
index 0c9234ff1..3c27a407e 100644
--- a/packages/ui-solid/src/Button.tsx
+++ b/packages/ui-solid/src/Button.tsx
@@ -2,7 +2,7 @@ import { cva, type VariantProps } from "cva";
import type { ComponentProps } from "solid-js";
const styles = cva(
- "outline-offset-2 outline-2 flex justify-center items-center focus-visible:outline rounded-full transition-all will-change-transform duration-200",
+ "outline-offset-2 outline-2 flex justify-center items-center focus-visible:outline-solid rounded-full transition-all will-change-transform duration-200",
{
defaultVariants: {
variant: "primary",
@@ -20,18 +20,18 @@ const styles = cva(
white:
"bg-gray-1 border border-gray-6 text-gray-12 hover:bg-gray-3 disabled:bg-gray-8",
ghost: "hover:bg-white/20 hover:text-white",
- gray: "bg-gray-5 data-[selected=true]:!bg-gray-8 dark:data-[selected=true]:!bg-gray-9 hover:bg-gray-7 border gray-button-border gray-button-shadow text-gray-12 disabled:bg-gray-8 disabled:text-gray-9",
+ gray: "bg-gray-5 data-[selected=true]:bg-gray-8! dark:data-[selected=true]:bg-gray-9! hover:bg-gray-7 border gray-button-border gray-button-shadow text-gray-12 disabled:bg-gray-8 disabled:text-gray-9",
dark: "bg-gray-12 dark-button-border dark-button-shadow hover:bg-gray-11 border text-gray-1 disabled:cursor-not-allowed disabled:text-gray-10 disabled:bg-gray-7 disabled:border-gray-8",
darkgradient:
- "bg-gradient-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",
+ "bg-linear-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",
radialblue:
"text-gray-50 border button-gradient-border shadow-[0_0_0_1px] shadow-blue-400 disabled:bg-gray-1 border-0 [background:radial-gradient(90%_100%_at_15%_12%,#9BC4FF_0%,#3588FF_100%)] border-transparent hover:opacity-80",
},
size: {
- xs: "text-[0.75rem] px-[0.5rem] h-[1.25rem]",
- sm: "text-xs px-[0.75rem] h-[1.75rem]",
+ xs: "text-[0.75rem] px-2 h-5",
+ sm: "text-xs px-3 h-7",
md: "text-[13px] px-3 py-2",
- lg: "text-[0.875rem] px-[1rem] h-[2.25rem]",
+ lg: "text-[0.875rem] px-4 h-9",
},
},
},
diff --git a/packages/ui-solid/src/SwitchTab.tsx b/packages/ui-solid/src/SwitchTab.tsx
index f4962153c..9a753a138 100644
--- a/packages/ui-solid/src/SwitchTab.tsx
+++ b/packages/ui-solid/src/SwitchTab.tsx
@@ -12,12 +12,12 @@ function List(props: ComponentProps<typeof KTabs.List>) {
<KTabs.List
{...others}
class={cx(
- "flex flex-row items-center rounded-[0.5rem] relative border",
+ "flex flex-row items-center rounded-lg relative border",
local.class,
)}
>
{local.children}
- <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline outline-2 outline-blue-300 outline-offset-2 rounded-[0.6rem] overflow-hidden">
+ <KTabs.Indicator class="absolute flex p-px inset-0 transition-transform peer-focus-visible:outline-solid outline-2 outline-blue-300 outline-offset-2 rounded-[0.6rem] overflow-hidden">
<div class="bg-gray-1 flex-1" />
</KTabs.Indicator>
</KTabs.List>
@@ -35,7 +35,7 @@ function Trigger<T extends ValidComponent = "button">(
<KTabs.Trigger
{...others}
class={cx(
- "flex-1 text-gray-8 py-1 z-10 ui-selected:text-gray-1 peer outline-none transition-colors duration-100",
+ "flex-1 text-gray-8 py-1 z-10 ui-selected:text-gray-1 peer outline-hidden transition-colors duration-100",
local.class,
)}
/>
diff --git a/packages/ui-solid/src/main.css b/packages/ui-solid/src/main.css
index 1f0825835..5bf6ccb8a 100644
--- a/packages/ui-solid/src/main.css
+++ b/packages/ui-solid/src/main.css
@@ -1,6 +1,24 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@import 'tailwindcss';
+
+@config '../tailwind.config.js';
+
+/*
+ The default border color has changed to `currentcolor` in Tailwind CSS v4,
+ so we've added these compatibility styles to make sure everything still
+ looks the same as it did with Tailwind CSS v3.
+
+ If we ever want to remove these styles, we need to add an explicit border
+ color utility to any element that depends on these defaults.
+*/
+@layer base {
+ *,
+ ::after,
+ ::before,
+ ::backdrop,
+ ::file-selector-button {
+ border-color: var(--color-gray-200, currentcolor);
+ }
+}
body {
font-family: "Geist Sans", sans-serif;
diff --git a/packages/ui-solid/tailwind.config.js b/packages/ui-solid/tailwind.config.js
index 094a6bad6..cc01eb962 100644
--- a/packages/ui-solid/tailwind.config.js
+++ b/packages/ui-solid/tailwind.config.js
@@ -110,9 +110,9 @@ module.exports = {
},
},
plugins: [
- require("tailwindcss-animate"),
+ // require("tailwindcss-animate"),
require("@tailwindcss/typography"),
- require("@kobalte/tailwindcss"),
- require("tailwind-scrollbar"),
+ // require("@kobalte/tailwindcss"),
+ // require("tailwind-scrollbar"),
],
};
diff --git a/packages/ui/src/components/Button.tsx b/packages/ui/src/components/Button.tsx
index 3ace455df..099e9bd32 100644
--- a/packages/ui/src/components/Button.tsx
+++ b/packages/ui/src/components/Button.tsx
@@ -5,7 +5,7 @@ import * as React from "react";
import { LoadingSpinner } from "./LoadingSpinner";
const buttonVariants = cva(
- "flex items-center justify-center transition-colors duration-200 rounded-full disabled:cursor-not-allowed cursor-pointer font-medium px-[1.25rem] ring-offset-transparent relative gap-1",
+ "flex items-center justify-center transition-colors duration-200 rounded-full disabled:cursor-not-allowed cursor-pointer font-medium px-5 ring-offset-transparent relative gap-1",
{
defaultVariants: {
variant: "primary",
@@ -26,7 +26,7 @@ const buttonVariants = cva(
gray: "bg-gray-5 hover:bg-gray-7 border gray-button-border gray-button-shadow text-gray-12 disabled:border-gray-7 disabled:bg-gray-8 disabled:text-gray-11",
dark: "bg-gray-12 dark-button-shadow hover:bg-gray-11 border dark-button-border text-gray-1 disabled:cursor-not-allowed disabled:text-gray-10 disabled:bg-gray-7 disabled:border-gray-8",
darkgradient:
- "bg-gradient-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",
+ "bg-linear-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",
radialblue:
"text-gray-50 border button-gradient-border shadow-[0_0_0_1px] shadow-blue-400 disabled:bg-gray-1 border-0 [background:radial-gradient(90%_100%_at_15%_12%,#9BC4FF_0%,#3588FF_100%)] border-transparent hover:opacity-80",
transparent:
diff --git a/packages/ui/src/components/Card.tsx b/packages/ui/src/components/Card.tsx
index ef2db789b..309548cc4 100644
--- a/packages/ui/src/components/Card.tsx
+++ b/packages/ui/src/components/Card.tsx
@@ -51,7 +51,7 @@ const CardDescription = forwardRef<
<p
ref={ref}
className={classNames(
- "text-[0.875rem] text-gray-10 leading-[1.25rem]",
+ "text-[0.875rem] text-gray-10 leading-5",
className,
)}
{...props}
diff --git a/packages/ui/src/components/Cmdk.tsx b/packages/ui/src/components/Cmdk.tsx
index c8f1c63df..06d1b4d5d 100644
--- a/packages/ui/src/components/Cmdk.tsx
+++ b/packages/ui/src/components/Cmdk.tsx
@@ -67,7 +67,7 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
return (
<Dialog {...props}>
<DialogContent className="overflow-hidden p-0 shadow-lg">
- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
+ <Command className="**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
{children}
</Command>
</DialogContent>
@@ -87,7 +87,7 @@ const CommandInput: CommandInputComponent = React.forwardRef<
<CommandPrimitive.Input
ref={ref}
className={classNames(
- "flex py-3 w-full h-11 text-sm bg-transparent rounded-md outline-none text-gray-12 placeholder:text-gray-10 disabled:cursor-not-allowed disabled:opacity-50",
+ "flex py-3 w-full h-11 text-sm bg-transparent rounded-md outline-hidden text-gray-12 placeholder:text-gray-10 disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
@@ -133,7 +133,7 @@ const CommandGroup: CommandGroupComponent = React.forwardRef<
<CommandPrimitive.Group
ref={ref}
className={classNames(
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
+ "overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
className,
)}
{...props}
@@ -161,7 +161,7 @@ const CommandItem: CommandItemComponent = React.forwardRef<
<CommandPrimitive.Item
ref={ref}
className={classNames(
- "relative flex cursor-pointer text-gray-8 select-none items-center rounded-sm px-2 py-2 text-[0.875rem] outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ "relative flex cursor-pointer text-gray-8 select-none items-center rounded-xs px-2 py-2 text-[0.875rem] outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
className,
)}
{...props}
diff --git a/packages/ui/src/components/Dialog.tsx b/packages/ui/src/components/Dialog.tsx
index 0f7e818cd..0a67c8c61 100644
--- a/packages/ui/src/components/Dialog.tsx
+++ b/packages/ui/src/components/Dialog.tsx
@@ -15,7 +15,7 @@ const DialogOverlay = React.forwardRef<
>(({ className, ...props }, ref) => (
<DialogPrimitive.Overlay
ref={ref}
- className={classNames("fixed inset-0 z-[500] bg-black/60", className)}
+ className={classNames("fixed inset-0 z-500 bg-black/60", className)}
{...props}
/>
));
@@ -27,7 +27,7 @@ const DialogContent = React.forwardRef<
>(({ className, children, ...props }, ref) => (
<DialogPortal>
<DialogOverlay className="animate-fadeIn" />
- <div className="flex fixed inset-0 z-[501] justify-center items-center">
+ <div className="flex fixed inset-0 z-501 justify-center items-center">
<DialogPrimitive.Content
ref={ref}
className={classNames(
@@ -43,7 +43,7 @@ const DialogContent = React.forwardRef<
{...props}
>
{children}
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
<X className="w-5 h-5 text-gray-9" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
diff --git a/packages/ui/src/components/Dropdown.tsx b/packages/ui/src/components/Dropdown.tsx
index b764298b0..aa2669b0d 100644
--- a/packages/ui/src/components/Dropdown.tsx
+++ b/packages/ui/src/components/Dropdown.tsx
@@ -26,7 +26,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
<DropdownMenuPrimitive.SubTrigger
ref={ref}
className={classNames(
- "flex cursor-default select-none justify-between items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
+ "flex cursor-default select-none justify-between items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
inset && "pl-8",
className,
)}
@@ -46,7 +46,7 @@ const DropdownMenuSubContent = React.forwardRef<
<DropdownMenuPrimitive.SubContent
ref={ref}
className={classNames(
- "z-50 min-w-[8rem] overflow-hidden rounded-xl border bg-gray-1 p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "z-50 min-w-32 overflow-hidden rounded-xl border bg-gray-1 p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className,
)}
{...props}
@@ -68,7 +68,7 @@ const DropdownMenuContent = React.forwardRef<
ref={ref}
sideOffset={sideOffset}
className={classNames(
- "z-[1000000000] bg-gray-1 min-w-[8rem] overflow-hidden rounded-xl border border-gray-3 p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "z-1000000000 bg-gray-1 min-w-32 overflow-hidden rounded-xl border border-gray-3 p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className,
)}
{...props}
@@ -86,7 +86,7 @@ const DropdownMenuItem = React.forwardRef<
<DropdownMenuPrimitive.Item
ref={ref}
className={classNames(
- "relative flex cursor-pointer select-none text-gray-10 focus:text-gray-12 hover:text-gray-12 items-center rounded-xl px-2 py-1.5 text-sm outline-none transition-colors hover:bg-gray-3 focus:bg-gray-3 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ "relative flex cursor-pointer select-none text-gray-10 focus:text-gray-12 hover:text-gray-12 items-center rounded-xl px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-gray-3 focus:bg-gray-3 data-disabled:pointer-events-none data-disabled:opacity-50",
inset && "pl-8",
className,
)}
@@ -102,7 +102,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
className={classNames(
- "relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ "relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
className,
)}
checked={checked}
@@ -126,7 +126,7 @@ const DropdownMenuRadioItem = React.forwardRef<
<DropdownMenuPrimitive.RadioItem
ref={ref}
className={classNames(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
className,
)}
{...props}
diff --git a/packages/ui/src/components/NavigationMenu.tsx b/packages/ui/src/components/NavigationMenu.tsx
index 6f31a3aaa..eea3baf65 100644
--- a/packages/ui/src/components/NavigationMenu.tsx
+++ b/packages/ui/src/components/NavigationMenu.tsx
@@ -40,7 +40,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
const NavigationMenuItem = NavigationMenuPrimitive.Item;
const navigationMenuTriggerStyle = cva(
- "group inline-flex text-black h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",
+ "group inline-flex text-black h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",
);
const NavigationMenuTrigger = React.forwardRef<
@@ -57,7 +57,7 @@ const NavigationMenuTrigger = React.forwardRef<
{children}{" "}
{caret && (
<ChevronDown
- className="relative top-[-1px] ml-[3px] h-4 w-4 transition duration-200 group-data-[state=open]:rotate-180"
+ className="relative -top-px ml-[3px] h-4 w-4 transition duration-200 group-data-[state=open]:rotate-180"
aria-hidden="true"
/>
)}
@@ -89,7 +89,7 @@ const NavigationMenuViewport = React.forwardRef<
<div className={classNames("flex absolute left-0 top-full justify-center")}>
<NavigationMenuPrimitive.Viewport
className={classNames(
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-gray-5 bg-gray-1/80 backdrop-blur-md text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 md:w-[var(--radix-navigation-menu-viewport-width)]",
+ "origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg border border-gray-5 bg-gray-1/80 backdrop-blur-md text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 md:w-(--radix-navigation-menu-viewport-width)",
className,
)}
ref={ref}
@@ -107,7 +107,7 @@ const NavigationMenuIndicator = React.forwardRef<
<NavigationMenuPrimitive.Indicator
ref={ref}
className={classNames(
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
+ "top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
className,
)}
{...props}
@@ -128,7 +128,7 @@ const ListItem = React.forwardRef<
<a
ref={ref}
className={classNames(
- "block p-3 space-y-1 leading-none no-underline rounded-md transition-all duration-200 outline-none select-none hover:bg-gray-2 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ "block p-3 space-y-1 leading-none no-underline rounded-md transition-all duration-200 outline-hidden select-none hover:bg-gray-2 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
className,
)}
{...props}
diff --git a/packages/ui/src/components/Popover.tsx b/packages/ui/src/components/Popover.tsx
index 15ad75580..7742e6221 100644
--- a/packages/ui/src/components/Popover.tsx
+++ b/packages/ui/src/components/Popover.tsx
@@ -18,7 +18,7 @@ const PopoverContent = React.forwardRef<
align={align}
sideOffset={sideOffset}
className={classNames(
- "z-50 w-72 rounded-xl bg-gray-3 p-4 text-gray-12 shadow-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "z-50 w-72 rounded-xl bg-gray-3 p-4 text-gray-12 shadow-xs outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className,
)}
{...props}
diff --git a/packages/ui/src/components/Select.tsx b/packages/ui/src/components/Select.tsx
index 6b176400a..f45a8227f 100644
--- a/packages/ui/src/components/Select.tsx
+++ b/packages/ui/src/components/Select.tsx
@@ -13,11 +13,11 @@ const SelectVariantContext = React.createContext<SelectVariant>("default");
const selectTriggerVariants = cva(
cx(
"font-medium flex transition-all duration-200 text-[13px] outline-0",
- "border-[1px] items-center justify-between gap-2 whitespace-nowrap",
+ "border items-center justify-between gap-2 whitespace-nowrap",
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-gray-3 disabled:text-gray-9",
"ring-0 ring-gray-6 ring-offset-gray-6 data-[state=open]:border-gray-7 data-[state=open]:ring-gray-7 data-[state=open]:ring-1 data-[state=open]:ring-offset-0",
- "data-[placeholder]:text-gray-12",
- "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
+ "data-placeholder:text-gray-12",
+ "data-[slot=select-value]:*:line-clamp-1 data-[slot=select-value]:*:flex data-[slot=select-value]:*:items-center data-[slot=select-value]:*:gap-2",
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg]:transition-transform [&_svg]:duration-200",
"[&[data-state=open]_svg.caret-icon]:rotate-180",
),
@@ -50,7 +50,7 @@ const selectTriggerVariants = cva(
const selectContentVariants = cva(
cx(
- "rounded-xl border-[1px] overflow-hidden",
+ "rounded-xl border overflow-hidden",
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"data-[state=open]:animate-in data-[state=closed]:animate-out",
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -79,8 +79,8 @@ const selectContentVariants = cva(
const selectItemVariants = cva(
cx(
"relative flex w-full cursor-default items-center gap-2 py-2 pr-8 pl-3 text-[13px]",
- "rounded-lg outline-none select-none transition-colors duration-200",
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:text-gray-9",
+ "rounded-lg outline-hidden select-none transition-colors duration-200",
+ "data-disabled:pointer-events-none data-disabled:opacity-50 data-disabled:text-gray-9",
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
),
{
@@ -238,7 +238,7 @@ function SelectContent({
className={cx(
"p-1",
position === "popper" &&
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",
+ "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1",
)}
>
<SelectVariantContext.Provider value={variant}>
diff --git a/packages/ui/src/components/SkeletonRows.tsx b/packages/ui/src/components/SkeletonRows.tsx
index 621d9335c..5a6418d9b 100644
--- a/packages/ui/src/components/SkeletonRows.tsx
+++ b/packages/ui/src/components/SkeletonRows.tsx
@@ -15,13 +15,13 @@ export const SkeletonRows = () => {
.map((_, index) => (
<div
key={index}
- className="flex relative flex-col gap-4 w-full h-full bg-gray-3 rounded-2xl border-gray-4 border-[1px]"
+ className="flex relative flex-col gap-4 w-full h-full bg-gray-3 rounded-2xl border-gray-4 border"
>
{/* Thumbnail */}
<Skeleton
baseColor="var(--gray-4)"
highlightColor="var(--gray-5)"
- className="h-[150px] w-full aspect-video align-top !rounded-t-2xl !leading-none !rounded-b-none"
+ className="h-[150px] w-full aspect-video align-top rounded-t-2xl! leading-none! rounded-b-none!"
/>
<div className="px-4 pb-4">
{/* Title */}
diff --git a/packages/ui/src/components/Switch.tsx b/packages/ui/src/components/Switch.tsx
index 950853b91..3427ce1ba 100644
--- a/packages/ui/src/components/Switch.tsx
+++ b/packages/ui/src/components/Switch.tsx
@@ -11,9 +11,9 @@ const Switch = React.forwardRef<
<SwitchPrimitives.Root
className={classNames(
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-transparent transition-colors",
- "w-11 h-6 p-[0.125rem]",
+ "w-11 h-6 p-0.5",
"bg-gray-5 data-[state=checked]:bg-blue-500",
- "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500",
+ "focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500",
"disabled:cursor-not-allowed disabled:opacity-40 disabled:bg-gray-4",
className,
)}
diff --git a/packages/ui/src/components/Table.tsx b/packages/ui/src/components/Table.tsx
index 676d7e95d..c802742bd 100644
--- a/packages/ui/src/components/Table.tsx
+++ b/packages/ui/src/components/Table.tsx
@@ -48,7 +48,7 @@ const TableFooter = React.forwardRef<
<tfoot
ref={ref}
className={classNames(
- "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
+ "border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",
className,
)}
{...props}
@@ -78,7 +78,7 @@ const TableHead = React.forwardRef<
<th
ref={ref}
className={classNames(
- "h-10 px-2 text-left text-gray-12 align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ "h-10 px-2 text-left text-gray-12 align-middle font-medium [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
@@ -93,7 +93,7 @@ const TableCell = React.forwardRef<
<td
ref={ref}
className={classNames(
- "p-2 align-middle text-gray-10 selection:[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ "p-2 align-middle text-gray-10 [&:has([role=checkbox])]:selection:pr-0 *:[[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
diff --git a/packages/ui/src/components/input/Input.tsx b/packages/ui/src/components/input/Input.tsx
index fc52d730e..e804b8000 100644
--- a/packages/ui/src/components/input/Input.tsx
+++ b/packages/ui/src/components/input/Input.tsx
@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
type={type}
className={classNames(
"flex px-4 w-full font-thin transition-all duration-200 text-[16px] md:text-[13px] text-gray-12 bg-gray-1 border-gray-4 outline-0 focus:bg-gray-2",
- "rounded-xl hover:bg-gray-2 autofill:bg-gray-1 hover:border-gray-5 h-[44px] placeholder:text-gray-8 border-[1px] focus:border-gray-5",
+ "rounded-xl hover:bg-gray-2 autofill:bg-gray-1 hover:border-gray-5 h-[44px] placeholder:text-gray-8 border focus:border-gray-5",
"file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none",
"disabled:cursor-not-allowed disabled:bg-gray-2 disabled:text-gray-8 disabled:placeholder:text-gray-8 placeholder:transition-all",
"ring-0 ring-gray-2 focus:ring-1 focus:ring-gray-12 focus:ring-offset-2 ring-offset-gray-3 hover:placeholder:text-gray-12 placeholder:duration-200",