Skip to content

Commit 392b454

Browse files
committed
Fix: Migrating to tailwind theming
1 parent 04a0d7e commit 392b454

File tree

6 files changed

+267
-11
lines changed

6 files changed

+267
-11
lines changed

package-lock.json

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/layout/TopBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const TopBar: React.FC<TopBarProps> = ({ onSelectModel, onOpenSettingsDialog })
8484
};
8585

8686
return (
87-
<div className="flex items-center justify-between h-16 bg-white app-region-drag">
87+
<div className="flex items-center justify-between h-16 bg-main-background app-region-drag">
8888
{/* Logo area */}
8989
<div className="w-[68px] aspect-square flex items-center justify-center h-16">
9090
<div className="flex items-center justify-center w-10 h-10">

src/components/settings/ApiManagement.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export const ApiManagement: React.FC<ApiManagementProps> = ({
5454
setCurrentProviderSettings({ ...currentProviderSettings, apiKey: value });
5555
}
5656

57-
const handleApiVersionChange = (value: string) => {
58-
setCurrentProviderSettings({ ...currentProviderSettings, apiVersion: value });
59-
}
57+
// const handleApiVersionChange = (value: string) => {
58+
// setCurrentProviderSettings({ ...currentProviderSettings, apiVersion: value });
59+
// }
6060

6161
const handleBaseUrlChange = (value: string) => {
6262
setCurrentProviderSettings({ ...currentProviderSettings, baseUrl: value });

src/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
@theme{
6-
7-
}
8-
95
/* Add these styles for Electron window dragging */
106
.app-region-drag {
117
-webkit-app-region: drag;

src/tensorblock-light.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:root{
2+
--primary-50: #F8F7F3;
3+
}
4+
5+
@theme{
6+
--color-main-background: var(--primary-50);
7+
}

vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [react()],
6+
plugins: [
7+
react()
8+
],
79
optimizeDeps: {
810
exclude: ['lucide-react'],
911
},

0 commit comments

Comments
 (0)