Add theme-aware styling for Vue node tooltips (#5786)

Adds light theme colors from the
[designs](https://www.figma.com/design/31uH3r4x3xbIctuRWYW6NM/V3---Nodes?node-id=6267-16837&m=dev).

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5786-Add-theme-aware-styling-for-Vue-node-tooltips-27a6d73d36508167979fe797efcbe3c0)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-09-25 19:08:22 -07:00
committed by GitHub
parent ac93a6ba3f
commit c033e9e4d7
2 changed files with 3 additions and 1 deletions

View File

@@ -89,6 +89,8 @@
--color-sand-200: #d6cfc2;
--color-sand-300: #888682;
--color-pure-white: #ffffff;
--color-slate-100: #9c9eab;
--color-slate-200: #9fa2bd;
--color-slate-300: #5b5e7d;

View File

@@ -93,7 +93,7 @@ export function useNodeTooltips(
pt: {
text: {
class:
'bg-charcoal-800 border border-slate-300 rounded-md px-4 py-2 text-white text-sm font-normal leading-tight max-w-75 shadow-none'
'bg-pure-white dark-theme:bg-charcoal-800 border dark-theme:border-slate-300 rounded-md px-4 py-2 text-charcoal-700 dark-theme:text-pure-white text-sm font-normal leading-tight max-w-75 shadow-none'
},
arrow: {
class: 'before:border-slate-300'