Skip to content

Commit cd15b65

Browse files
[style] complete semantic token migration for remaining components
Complete the semantic token migration by updating final hard-coded colors in widget components to use design system tokens: - MultiSelect.vue: text-neutral-400 → text-secondary - Ensure consistent text-primary/text-secondary usage across all widgets - Remove hard-coded zinc, neutral, and other color values 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 20a1a9e commit cd15b65

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

src/components/input/MultiSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
<!-- Trigger value (keep text scale identical) -->
6464
<template #value>
65-
<span class="text-sm text-zinc-700 dark-theme:text-gray-200">
65+
<span class="text-sm text-primary">
6666
{{ label }}
6767
</span>
6868
<span
@@ -208,7 +208,7 @@ const pt = computed(() => ({
208208
root: ({ props }: MultiSelectPassThroughMethodOptions) => ({
209209
class: cn(
210210
'h-10 relative inline-flex cursor-pointer select-none',
211-
'rounded-lg bg-white dark-theme:bg-zinc-800 text-neutral dark-theme:text-white',
211+
'rounded-lg bg-white dark-theme:bg-zinc-800 text-primary',
212212
'transition-all duration-200 ease-in-out',
213213
'border-[2.5px] border-solid',
214214
selectedCount.value > 0

src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
v-if="!hidden"
55
:class="
66
cn(
7-
'bg-zinc-500/10 dark-theme:bg-charcoal-600 box-border flex gap-4 items-center justify-start relative rounded-lg w-full h-16 px-4 py-0',
7+
'bg-node-component-widget-input-surface box-border flex gap-4 items-center justify-start relative rounded-lg w-full h-16 px-4 py-0',
88
{ hidden: hideWhenEmpty && !hasAudio }
99
)
1010
"
@@ -24,33 +24,33 @@
2424
role="button"
2525
:tabindex="0"
2626
aria-label="Play/Pause"
27-
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-black/10 dark-theme:hover:bg-white/10"
27+
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
2828
@click="togglePlayPause"
2929
>
3030
<i
3131
v-if="!isPlaying"
32-
class="icon-[lucide--play] size-4 text-gray-600 dark-theme:text-gray-800"
32+
class="icon-[lucide--play] size-4 text-secondary"
3333
/>
3434
<i
3535
v-else
36-
class="icon-[lucide--pause] size-4 text-gray-600 dark-theme:text-gray-800"
36+
class="icon-[lucide--pause] size-4 text-secondary"
3737
/>
3838
</div>
3939

4040
<!-- Time Display -->
4141
<div
42-
class="text-sm font-normal text-nowrap text-black dark-theme:text-white"
42+
class="text-sm font-normal text-nowrap text-primary"
4343
>
4444
{{ formatTime(currentTime) }} / {{ formatTime(duration) }}
4545
</div>
4646
</div>
4747

4848
<!-- Progress Bar -->
4949
<div
50-
class="relative h-0.5 flex-1 rounded-full bg-gray-300 dark-theme:bg-stone-200"
50+
class="relative h-0.5 flex-1 rounded-full bg-interface-stroke"
5151
>
5252
<div
53-
class="absolute top-0 left-0 h-full rounded-full bg-gray-600 transition-all dark-theme:bg-white/50"
53+
class="absolute top-0 left-0 h-full rounded-full bg-button-icon transition-all"
5454
:style="{ width: `${progressPercentage}%` }"
5555
/>
5656
<input
@@ -72,20 +72,20 @@
7272
role="button"
7373
:tabindex="0"
7474
aria-label="Volume"
75-
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-black/10 dark-theme:hover:bg-white/10"
75+
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
7676
@click="toggleMute"
7777
>
7878
<i
7979
v-if="showVolumeTwo"
80-
class="icon-[lucide--volume-2] size-4 text-gray-600 dark-theme:text-gray-800"
80+
class="icon-[lucide--volume-2] size-4 text-secondary"
8181
/>
8282
<i
8383
v-else-if="showVolumeOne"
84-
class="icon-[lucide--volume-1] size-4 text-gray-600 dark-theme:text-gray-800"
84+
class="icon-[lucide--volume-1] size-4 text-secondary"
8585
/>
8686
<i
8787
v-else
88-
class="icon-[lucide--volume-x] size-4 text-gray-600 dark-theme:text-gray-800"
88+
class="icon-[lucide--volume-x] size-4 text-secondary"
8989
/>
9090
</div>
9191

@@ -96,11 +96,11 @@
9696
role="button"
9797
:tabindex="0"
9898
aria-label="More Options"
99-
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-black/10 dark-theme:hover:bg-white/10"
99+
class="flex size-6 cursor-pointer items-center justify-center rounded hover:bg-interface-menu-component-surface-hovered"
100100
@click="toggleOptionsMenu"
101101
>
102102
<i
103-
class="icon-[lucide--more-vertical] size-4 text-gray-600 dark-theme:text-gray-800"
103+
class="icon-[lucide--more-vertical] size-4 text-secondary"
104104
/>
105105
</div>
106106
</div>

src/renderer/extensions/vueNodes/widgets/components/form/FormSelectButton.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
'bg-transparent border-none',
1717
'text-center text-xs font-normal',
1818
{
19-
'bg-white': isSelected(option) && !disabled,
20-
'hover:bg-zinc-200/50': !isSelected(option) && !disabled,
19+
'bg-interface-menu-component-surface-selected': isSelected(option) && !disabled,
20+
'hover:bg-interface-menu-component-surface-hovered': !isSelected(option) && !disabled,
2121
'opacity-50 cursor-not-allowed': disabled,
2222
'cursor-pointer': !disabled
2323
},
2424
isSelected(option) && !disabled
25-
? 'text-neutral-900'
25+
? 'text-primary'
2626
: 'text-secondary'
2727
)
2828
"

src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuFilter.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ const filterSelected = defineModel<OptionId>('filterSelected')
1111
</script>
1212

1313
<template>
14-
<div class="mb-4 flex gap-1 px-4 text-zinc-400">
14+
<div class="mb-4 flex gap-1 px-4 text-secondary">
1515
<div
1616
v-for="option in filterOptions"
1717
:key="option.id"
1818
:class="
1919
cn(
2020
'px-4 py-2 rounded-md inline-flex justify-center items-center cursor-pointer select-none',
2121
'transition-all duration-150',
22-
'hover:text-black hover:dark-theme:text-white hover:bg-zinc-500/10',
22+
'hover:text-primary hover:bg-interface-menu-component-surface-hovered',
2323
'active:scale-95',
2424
filterSelected === option.id
25-
? '!bg-zinc-500/20 text-black dark-theme:text-white'
25+
? '!bg-interface-menu-component-surface-selected text-primary'
2626
: 'bg-transparent'
2727
)
2828
"

src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuItem.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function handleVideoLoad(event: Event) {
6060
'transition-all duration-150',
6161
{
6262
'flex-col text-center': layout === 'grid',
63-
'flex-row text-left max-h-16 bg-zinc-500/20 rounded-lg hover:scale-102 active:scale-98':
63+
'flex-row text-left max-h-16 bg-interface-menu-component-surface-hovered rounded-lg hover:scale-102 active:scale-98':
6464
layout === 'list',
65-
'flex-row text-left hover:bg-zinc-500/20 rounded-lg':
65+
'flex-row text-left hover:bg-interface-menu-component-surface-hovered rounded-lg':
6666
layout === 'list-small',
6767
// selection
6868
'ring-2 ring-blue-500': layout === 'list' && selected
@@ -77,7 +77,7 @@ function handleVideoLoad(event: Event) {
7777
:class="
7878
cn(
7979
'relative',
80-
'w-full aspect-square overflow-hidden outline-1 outline-offset-[-1px] outline-zinc-300/10',
80+
'w-full aspect-square overflow-hidden outline-1 outline-offset-[-1px] outline-interface-stroke',
8181
'transition-all duration-150',
8282
{
8383
'min-w-16 max-w-16 rounded-l-lg': layout === 'list',
@@ -142,7 +142,7 @@ function handleVideoLoad(event: Event) {
142142
{{ name }}
143143
</span>
144144
<!-- Meta Data -->
145-
<span class="block text-xs text-slate-400">{{
145+
<span class="block text-xs text-secondary">{{
146146
metadata || actualDimensions
147147
}}</span>
148148
</div>

0 commit comments

Comments
 (0)