Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Pass F part 4: btn primitive sweep across header, sidebar, and upload-view (the components on every screen) — New Recording button, sidebar +New button, sidebar search/sort buttons, upload submit, all converted to btn variants; standardizes paddings, hover states, and focus rings so the chrome surrounding every screen reads as one product

Murtaza Nasir824d1bc2449f
diff --git a/templates/components/header.html b/templates/components/header.html
index 00555960..3d8d6531 100644
--- a/templates/components/header.html
+++ b/templates/components/header.html
@@ -39,7 +39,7 @@
<!-- New Recording Button -->
<button @click="switchToUploadView"
- class="px-3 py-1.5 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm sm:px-4 sm:py-2 sm:min-w-[120px] sm:flex sm:items-center sm:gap-2 sm:justify-center">
+ class="btn btn--sm btn--primary">
<i class="fas fa-plus mr-1"></i><span v-text="t('nav.newRecording')"></span>
</button>
diff --git a/templates/components/sidebar.html b/templates/components/sidebar.html
index 7ba3fe35..996dbc63 100644
--- a/templates/components/sidebar.html
+++ b/templates/components/sidebar.html
@@ -35,20 +35,20 @@
</button>
<button v-if="selectionMode"
@click="exitSelectionMode"
- class="h-9 px-3 flex items-center bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:opacity-80 transition-opacity text-sm"
+ class="btn btn--primary"
title="Exit selection mode">
<i class="fas fa-times mr-1"></i>Done
</button>
<!-- New button - compact when folders enabled -->
<button v-if="!selectionMode && foldersEnabled && availableFolders.length > 0"
@click="switchToUploadView"
- class="w-9 h-9 flex items-center justify-center bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] transition-colors"
+ class="btn btn--primary btn--icon"
title="New Recording">
<i class="fas fa-plus"></i>
</button>
<button v-else-if="!selectionMode"
@click="switchToUploadView"
- class="h-9 px-3 flex items-center bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] transition-colors text-sm">
+ class="btn btn--primary">
<i class="fas fa-plus mr-1"></i><span v-text="t('common.new')"></span>
</button>
</div>
diff --git a/templates/components/upload-view.html b/templates/components/upload-view.html
index 07f98532..1355f70a 100644
--- a/templates/components/upload-view.html
+++ b/templates/components/upload-view.html
@@ -167,7 +167,7 @@
<!-- Normal Upload Button (when not in incognito mode or feature disabled) -->
<button v-if="!incognitoMode || !enableIncognitoMode"
@click="startUpload"
- class="w-full px-4 py-2.5 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors flex items-center justify-center gap-2 font-medium text-sm">
+ class="btn btn--lg btn--primary w-full">
<i class="fas fa-cloud-upload-alt"></i>
<span v-text="t('upload.uploadNFiles', { count: pendingQueueFiles.length })"></span>
</button>