Skip to content

Commit 2acb2ac

Browse files
[Style] Increase template card elevation in dark mode (#3946)
1 parent 37a583e commit 2acb2ac

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/templates/TemplateWorkflowCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Card
33
ref="cardRef"
44
:data-testid="`template-workflow-${template.name}`"
5-
class="w-64 template-card rounded-2xl overflow-hidden cursor-pointer shadow-elevation-2 dark-theme:bg-dark-elevation-1 h-full"
5+
class="w-64 template-card rounded-2xl overflow-hidden cursor-pointer shadow-elevation-2 dark-theme:bg-dark-elevation-1.5 h-full"
66
:pt="{
77
body: { class: 'p-0 h-full flex flex-col' }
88
}"

tailwind.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ export default {
189189
'elevation-0': 'none',
190190
'elevation-1':
191191
'0 0 2px 0px rgb(0 0 0 / 0.01), 0 1px 2px -1px rgb(0 0 0 / 0.03), 0 1px 1px -1px rgb(0 0 0 / 0.01)',
192+
'elevation-1.5':
193+
'0 0 2px 0px rgb(0 0 0 / 0.025), 0 1px 2px -1px rgb(0 0 0 / 0.03), 0 1px 1px -1px rgb(0 0 0 / 0.01)',
192194
'elevation-2':
193195
'0 0 10px 0px rgb(0 0 0 / 0.06), 0 6px 8px -2px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.04)',
194196
'elevation-3':
@@ -206,10 +208,11 @@ export default {
206208
backgroundColor: {
207209
'dark-elevation-0': 'rgba(255, 255, 255, 0)',
208210
'dark-elevation-1': 'rgba(255, 255, 255, 0.01)',
211+
'dark-elevation-1.5': 'rgba(255, 255, 255, 0.015)',
209212
'dark-elevation-2': 'rgba(255, 255, 255, 0.03)',
210213
'dark-elevation-3': 'rgba(255, 255, 255, 0.04)',
211214
'dark-elevation-4': 'rgba(255, 255, 255, 0.08)',
212-
'dark-elevation-5': 'rgba(255, 255, 255, 0.12)'
215+
'dark-elevation-5': 'rgba(2 55, 255, 255, 0.12)'
213216
}
214217
}
215218
},

0 commit comments

Comments
 (0)