refactor: centralize action/icon button styles across all tools
Extract shared actionBtn and iconBtn constants into lib/utils/styles.ts and replace all 11 local definitions across tool components. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
lib/utils/styles.ts
Normal file
11
lib/utils/styles.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Shared Tailwind class strings for consistent UI patterns across tools.
|
||||
*/
|
||||
|
||||
/** Standard action button used throughout all tools (copy, download, share, apply…) */
|
||||
export const actionBtn =
|
||||
'flex items-center gap-1.5 px-3 py-1.5 text-xs font-mono glass rounded-lg border border-border/30 text-muted-foreground hover:text-primary hover:border-primary/30 hover:bg-primary/10 transition-all disabled:opacity-40 disabled:cursor-not-allowed';
|
||||
|
||||
/** Small square icon-only button (animate preview controls, timeline actions) */
|
||||
export const iconBtn =
|
||||
'flex items-center justify-center glass rounded-lg border border-border/30 text-muted-foreground hover:text-primary hover:border-primary/30 hover:bg-primary/10 transition-all disabled:opacity-40 disabled:cursor-not-allowed';
|
||||
Reference in New Issue
Block a user