Skip to content

Commit

Permalink
renamed font-subheading to font-nav
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrakuscek committed Feb 26, 2024
1 parent e8f99c3 commit a5c8b97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/hanzo-ui/common/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Footer: React.FC<{
)}
key={index + 1}
itemClx={(def: LinkDef) => ((def.variant === 'linkFG') ?
'font-subheading text-[15px]/[1.3] font-medium text-foreground tracking-normal'
'font-nav text-[15px]/[1.3] font-medium text-foreground tracking-normal'
:
'text-[15px]/[1.1] font-normal tracking-[0.2px] text-muted-1'
)}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/hanzo-ui/common/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Header: React.FC<{
const allElements = (featured) ? [...common, ...featured] : common
// TODO move 13px into a size class and configure twMerge to recognize say, 'text-size-nav'
// (vs be beat out by 'text-color-nav')
const navItemClx = 'font-subheading h-8 tracking-[-0.3px] !text-[13px]/[13px]'
const navItemClx = 'font-nav h-8 tracking-[-0.3px] !text-[13px]/[13px]'

return (
<header className={cn('bg-background sticky z-10 top-0 ', className)} >
Expand Down
6 changes: 3 additions & 3 deletions pkgs/hanzo-ui/primitives/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "../util"

const variant = {
primary: "bg-primary text-primary-fg hover:bg-primary-hover font-subheading whitespace-nowrap not-typography",
secondary: "bg-secondary text-secondary-fg hover:bg-secondary/80 font-subheading whitespace-nowrap not-typography",
outline: "text-foreground bg-background border border-muted-4 hover:bg-level-1 hover:text-accent hover:border-accent font-subheading whitespace-nowrap not-typography",
primary: "bg-primary text-primary-fg hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
secondary: "bg-secondary text-secondary-fg hover:bg-secondary/80 font-nav whitespace-nowrap not-typography",
outline: "text-foreground bg-background border border-muted-4 hover:bg-level-1 hover:text-accent hover:border-accent font-nav whitespace-nowrap not-typography",
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap hover:bg-destructive-hover",
ghost: "text-foreground hover:bg-level-1 hover:text-accent whitespace-nowrap font-sans ",
link: "text-foreground hover:text-muted-1 font-sans ",
Expand Down

0 comments on commit a5c8b97

Please sign in to comment.