Skip to content

Commit e291931

Browse files
committed
feat: update styles to use primary color scheme across components
1 parent 882b2e2 commit e291931

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

src/client/utils/modules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const defaultClass = "flex items-center gap-3 px-3 py-2 text-slate-500 hover:bg-slate-100 rounded-lg transition-colors"
2-
const activeClass = "flex items-center gap-3 px-3 py-2 bg-blue-50 text-blue-600 rounded-lg font-medium"
2+
const activeClass = "flex items-center gap-3 px-3 py-2 bg-primary/5 text-primary rounded-lg font-medium"
33

44
export const modules = [
55
{

src/client/views/components/header.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
77
</svg>
88
</span>
9-
<input type="text" placeholder="Search files, folders..." class="w-full pl-10 pr-4 py-2 bg-slate-50 border border-transparent rounded-lg focus:outline-none focus:bg-white focus:border-blue-500 transition-all text-sm">
9+
<input type="text" placeholder="Search files, folders..." class="w-full pl-10 pr-4 py-2 bg-slate-50 border border-transparent rounded-lg focus:outline-none focus:bg-white focus:border-primary transition-all text-sm">
1010
</div>
1111
<div class="flex items-center gap-4">
12-
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm font-semibold transition-all shadow-blue-200">
12+
<button class="bg-primary hover:bg-primary/70 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm font-semibold transition-all shadow-primary-200">
1313
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1414
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path>
1515
</svg>

src/client/views/components/quick-access-item.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Quick Access Item Component -->
2-
<div class="p-4 rounded-2xl hover:border-blue-200 transition-all cursor-pointer bg-white group">
2+
<div class="p-4 rounded-2xl hover:border-primary/20 transition-all cursor-pointer bg-white group">
33
<div class="flex items-center gap-4 mb-4">
4-
<div class="p-2.5 bg-<%= iconBg %> rounded-lg text-<%= iconColor %> group-hover:bg-blue-600 group-hover:text-white transition-all">
4+
<div class="p-2.5 bg-<%= iconBg %> rounded-lg text-<%= iconColor %> group-hover:bg-primary group-hover:text-white transition-all">
55
<%- icon %>
66
</div>
77
<div class="flex-1 overflow-hidden">

src/client/views/layouts/sidebar.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<aside class="w-64 bg-sidebar border-r border-slate-200 flex flex-col p-6 px-4 overflow-y-auto">
2-
<div class="flex items-center gap-2 mb-10 text-blue-600">
3-
<div class="bg-blue-600 p-1.5 rounded-lg">
2+
<div class="flex items-center gap-2 mb-10 text-primary">
3+
<div class="bg-primary p-1.5 rounded-lg">
44
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>
55
</div>
66
<span class="text-xl font-bold text-slate-900">StackDev</span>
@@ -36,7 +36,7 @@
3636
<span class="text-xs font-bold text-slate-500">75%</span>
3737
</div>
3838
<div class="w-full bg-slate-100 h-1.5 rounded-full mb-2 overflow-hidden">
39-
<div class="bg-blue-600 h-full w-[75%] rounded-full"></div>
39+
<div class="bg-primary h-full w-[75%] rounded-full"></div>
4040
</div>
4141
<p class="text-[10px] text-slate-400 mb-4">150 GB of 200 GB used</p>
4242
<button class="w-full py-2 bg-slate-50 border border-slate-200 rounded-lg text-sm font-semibold hover:bg-slate-100 transition-colors">Upgrade Plan</button>

src/client/views/pages/dashboard.ejs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<span class="text-slate-400 text-sm">used of 200 GB</span>
1717
</div>
1818
</div>
19-
<span class="px-2 py-1 bg-blue-50 text-blue-600 text-[10px] font-bold rounded uppercase tracking-wider">200 GB Plan</span>
19+
<span class="px-2 py-1 bg-primary/5 text-primary text-[10px] font-bold rounded uppercase tracking-wider">200 GB Plan</span>
2020
</div>
2121
<div class="w-full h-3 bg-slate-100 rounded-full overflow-hidden mb-4">
2222
<div class="h-full bg-linear-to-r from-green-500 via-orange-500 to-red-400 rounded-full" style="width: 75%"></div>
@@ -55,7 +55,7 @@
5555
<span class="text-slate-400">60 GB</span>
5656
</div>
5757
<div class="w-full h-1.5 bg-slate-100 rounded-full overflow-hidden">
58-
<div class="bg-blue-600 h-full rounded-full" style="width: 70%"></div>
58+
<div class="bg-primary h-full rounded-full" style="width: 70%"></div>
5959
</div>
6060
</div>
6161
<div class="space-y-1">
@@ -88,7 +88,7 @@
8888
</div>
8989
<div class="space-y-2">
9090
<div class="flex items-center gap-2 text-xs text-slate-500">
91-
<span class="w-2 h-2 rounded-full bg-blue-600"></span> Images <span class="ml-auto font-bold">40%</span>
91+
<span class="w-2 h-2 rounded-full bg-primary"></span> Images <span class="ml-auto font-bold">40%</span>
9292
</div>
9393
<div class="flex items-center gap-2 text-xs text-slate-500">
9494
<span class="w-2 h-2 rounded-full bg-orange-500"></span> Documents <span class="ml-auto font-bold">30%</span>
@@ -110,7 +110,7 @@
110110
<div class="flex justify-between items-center mb-6">
111111
<h2 class="text-xl font-bold text-slate-900">Quick Access</h2>
112112
<div class="flex gap-4">
113-
<button class="text-blue-600 text-sm font-semibold hover:underline">View all</button>
113+
<button class="text-primary text-sm font-semibold hover:underline">View all</button>
114114
</div>
115115
</div>
116116
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
@@ -123,8 +123,8 @@
123123
size: '4.7 GB',
124124
fileCount: '21 files',
125125
updated: 'Updated 2h ago',
126-
iconBg: 'blue-50',
127-
iconColor: 'blue-600'
126+
iconBg: 'primary-50',
127+
iconColor: 'primary'
128128
},
129129
{
130130
icon: '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>',
@@ -133,8 +133,8 @@
133133
size: '12.8 GB',
134134
fileCount: '340 files',
135135
updated: 'Updated yesterday',
136-
iconBg: 'blue-50',
137-
iconColor: 'blue-600'
136+
iconBg: 'primary-50',
137+
iconColor: 'primary'
138138
},
139139
{
140140
icon: '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>',
@@ -143,8 +143,8 @@
143143
size: '3.1 GB',
144144
fileCount: '96 files',
145145
updated: 'Updated 5d ago',
146-
iconBg: 'blue-50',
147-
iconColor: 'blue-600'
146+
iconBg: 'primary-50',
147+
iconColor: 'primary'
148148
},
149149
{
150150
icon: '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path></svg>',
@@ -153,8 +153,8 @@
153153
size: '8.6 GB',
154154
fileCount: '58 items',
155155
updated: 'Updated 1h ago',
156-
iconBg: 'blue-50',
157-
iconColor: 'blue-600'
156+
iconBg: 'primary-50',
157+
iconColor: 'primary'
158158
}
159159
];
160160
%>
@@ -172,8 +172,8 @@
172172
const tableRows = [
173173
{
174174
icon: '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>',
175-
iconBg: 'blue-50',
176-
iconColor: 'blue-600',
175+
iconBg: 'primary-50',
176+
iconColor: 'primary',
177177
name: 'Images (JPG, PNG, SVG)',
178178
totalFiles: '8,420',
179179
storageUsed: '60 GB',
@@ -202,8 +202,8 @@
202202
},
203203
{
204204
icon: '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>',
205-
iconBg: 'blue-50',
206-
iconColor: 'blue-600',
205+
iconBg: 'primary-50',
206+
iconColor: 'primary',
207207
name: 'Archives (ZIP, RAR)',
208208
totalFiles: '210',
209209
storageUsed: '10 GB',

0 commit comments

Comments
 (0)