Migrate UI theme variables to react-zen tokens and update dependency package
This commit is contained in:
1 parent
af542569bf
commit
eea124bbf8
17 files changed
+129
-93
No files matched your search
@@ -47,12 +47,12 @@
|
||||
}
|
||||
|
||||
.gray {
|
||||
color: var(--text-muted);
|
||||
background: var(--surface-sunken);
|
||||
color: var(--zen-text-muted);
|
||||
background: var(--zen-surface-sunken);
|
||||
}
|
||||
|
||||
.gray .dot {
|
||||
background: var(--text-muted);
|
||||
background: var(--zen-text-muted);
|
||||
}
|
||||
|
||||
:global([data-theme="dark"]) .good {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.root {
|
||||
--overlay-scrollbar-track: var(--gray-50);
|
||||
--overlay-scrollbar-thumb: var(--gray-300);
|
||||
--overlay-scrollbar-thumb-hover: var(--gray-400);
|
||||
--overlay-scrollbar-track: var(--zen-gray-50);
|
||||
--overlay-scrollbar-thumb: var(--zen-gray-300);
|
||||
--overlay-scrollbar-thumb-hover: var(--zen-gray-400);
|
||||
--overlay-scrollbar-viewport-padding-right: 0px;
|
||||
--overlay-scrollbar-vertical-margin-right: 2px;
|
||||
}
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
|
||||
[data-theme='dark'] .root {
|
||||
--overlay-scrollbar-track: var(--gray-800);
|
||||
--overlay-scrollbar-thumb: var(--gray-600);
|
||||
--overlay-scrollbar-thumb-hover: var(--gray-500);
|
||||
--overlay-scrollbar-track: var(--zen-gray-800);
|
||||
--overlay-scrollbar-thumb: var(--zen-gray-600);
|
||||
--overlay-scrollbar-thumb-hover: var(--zen-gray-500);
|
||||
}
|
||||
@@ -18,7 +18,7 @@ export function SortableLabel({ label, sortKey, defaultDirection = 'asc' }: Sort
|
||||
const isActive = query.orderBy === sortKey;
|
||||
const isDescending = query.sortDescending === 'true';
|
||||
const direction = isActive ? (isDescending ? 'desc' : 'asc') : undefined;
|
||||
const activeColor = 'var(--text-primary)';
|
||||
const activeColor = 'var(--zen-text-primary)';
|
||||
|
||||
const getNextDirection = (): SortDirection => {
|
||||
if (!isActive) {
|
||||
@@ -55,7 +55,7 @@ export function SortableLabel({ label, sortKey, defaultDirection = 'asc' }: Sort
|
||||
flexDirection: 'column',
|
||||
gap: 0,
|
||||
lineHeight: 0,
|
||||
color: 'var(--text-muted)',
|
||||
color: 'var(--zen-text-muted)',
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -4,16 +4,16 @@ import { ArrowRight } from '@/components/icons';
|
||||
|
||||
const STYLES = {
|
||||
positive: {
|
||||
color: `var(--status-success)`,
|
||||
background: `var(--status-success-bg)`,
|
||||
color: `var(--zen-status-success)`,
|
||||
background: `var(--zen-status-success-bg)`,
|
||||
},
|
||||
negative: {
|
||||
color: `var(--status-error)`,
|
||||
background: `var(--status-error-bg)`,
|
||||
color: `var(--zen-status-error)`,
|
||||
background: `var(--zen-status-error-bg)`,
|
||||
},
|
||||
neutral: {
|
||||
color: `var(--text-muted)`,
|
||||
background: `var(--surface-raised)`,
|
||||
color: `var(--zen-text-muted)`,
|
||||
background: `var(--zen-surface-raised)`,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
box-shadow: 0 0 0 1px var(--text-primary);
|
||||
box-shadow: 0 0 0 1px var(--zen-text-primary);
|
||||
}
|
||||
|
||||
.card.selected {
|
||||
box-shadow: 0 0 0 1px var(--text-primary);
|
||||
box-shadow: 0 0 0 1px var(--zen-text-primary);
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
background: var(--surface-sunken);
|
||||
background: var(--zen-surface-sunken);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useConfig, useMessages, useMobile } from '@/components/hooks';
|
||||
import { ExternalLink } from '@/components/icons';
|
||||
|
||||
const desktopGridTemplateColumns = 'minmax(180px, 1fr) minmax(0, 2fr) auto';
|
||||
const rowBorder = '1px solid var(--border-default)';
|
||||
const rowBorder = '1px solid var(--zen-border-default)';
|
||||
|
||||
export interface ShareRow {
|
||||
id: string;
|
||||
|
||||
Reference in new issue
Block a user