Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): add shared timeline track color tokens

Richie McIlroy7dc67a91ed75
diff --git a/apps/desktop/src/styles/theme.css b/apps/desktop/src/styles/theme.css
index ad0d8d988..ca485802f 100644
--- a/apps/desktop/src/styles/theme.css
+++ b/apps/desktop/src/styles/theme.css
@@ -11,12 +11,27 @@
@import "@radix-ui/colors/indigo-dark.css";
@import "@radix-ui/colors/yellow.css";
@import "@radix-ui/colors/yellow-dark.css";
+@import "@radix-ui/colors/jade.css";
+@import "@radix-ui/colors/jade-dark.css";
@plugin "@tailwindcss/typography";
@plugin "tailwind-scrollbar";
@tailwind utilities;
+/* Single source of truth for timeline track colours. Both the timeline
+ * segments and the "Add track" picker read these, so they always match. */
+:root {
+ --track-clip: #3f8ae0; /* blue */
+ --track-zoom: #4a4f5c; /* slate */
+ --track-caption: #c44fa6; /* magenta */
+ --track-keyboard: #d4742c; /* orange */
+ --track-text: #2898ac; /* teal */
+ --track-mask: #d2444b; /* red */
+ --track-scene: #975cfa; /* purple */
+ --track-audio: var(--jade-9); /* green */
+}
+
:root {
/* Light theme variables */
--gray-50: #ffffff; /* Pure white background */
@@ -1205,6 +1220,16 @@
);
}
+@keyframes cap-audio-eq {
+ 0%,
+ 100% {
+ transform: scaleY(0.3);
+ }
+ 50% {
+ transform: scaleY(1);
+ }
+}
+
@layer utilities {
.platform-windows .overflow-y-auto {
@apply scrollbar-thin scrollbar-track-transparent scrollbar-thumb-black-transparent-40;