Better button highlight border

This commit is contained in:
Gregory Schier
2024-02-15 15:55:32 -08:00
parent 239ffa174a
commit 71d3c9acd1
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ export function GlobalHooks() {
// if no component references them // if no component references them
useRecentWorkspaces(); useRecentWorkspaces();
useRecentEnvironments(); useRecentEnvironments();
console.log(useRecentRequests()); useRecentRequests();
useSyncAppearance(); useSyncAppearance();

View File

@@ -61,13 +61,13 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
size === 'sm' && 'h-sm px-2.5 text-sm', size === 'sm' && 'h-sm px-2.5 text-sm',
size === 'xs' && 'h-xs px-2 text-sm', size === 'xs' && 'h-xs px-2 text-sm',
// Solids // Solids
variant === 'solid' && color === 'custom' && 'ring-blue-500/50', variant === 'solid' && color === 'custom' && 'ring-blue-400',
variant === 'solid' && variant === 'solid' &&
color === 'default' && color === 'default' &&
'text-gray-700 enabled:hocus:bg-gray-700/10 enabled:hocus:text-gray-800 ring-blue-500/50', 'text-gray-700 enabled:hocus:bg-gray-700/10 enabled:hocus:text-gray-800 ring-blue-400',
variant === 'solid' && variant === 'solid' &&
color === 'gray' && color === 'gray' &&
'text-gray-800 bg-highlight enabled:hocus:text-gray-1000 ring-gray-400', 'text-gray-800 bg-highlight enabled:hocus:text-gray-1000 ring-blue-400',
variant === 'solid' && color === 'primary' && 'bg-blue-400 text-white ring-blue-700', variant === 'solid' && color === 'primary' && 'bg-blue-400 text-white ring-blue-700',
variant === 'solid' && color === 'secondary' && 'bg-violet-400 text-white ring-violet-700', variant === 'solid' && color === 'secondary' && 'bg-violet-400 text-white ring-violet-700',
variant === 'solid' && color === 'warning' && 'bg-orange-400 text-white ring-orange-700', variant === 'solid' && color === 'warning' && 'bg-orange-400 text-white ring-orange-700',

View File

@@ -133,7 +133,6 @@ export const baseExtensions = [
return (a.boost ?? 0) - (b.boost ?? 0); return (a.boost ?? 0) - (b.boost ?? 0);
}, },
}), }),
keymap.of([indentWithTab]),
syntaxHighlighting(myHighlightStyle), syntaxHighlighting(myHighlightStyle),
myTheme, myTheme,
EditorState.allowMultipleSelections.of(true), EditorState.allowMultipleSelections.of(true),
@@ -160,6 +159,7 @@ export const multiLineExtensions = [
highlightActiveLineGutter(), highlightActiveLineGutter(),
highlightSelectionMatches({ minSelectionLength: 2 }), highlightSelectionMatches({ minSelectionLength: 2 }),
keymap.of([ keymap.of([
indentWithTab,
...closeBracketsKeymap, ...closeBracketsKeymap,
...defaultKeymap, ...defaultKeymap,
...searchKeymap, ...searchKeymap,