@hanzo/ui 0.5.21 → 0.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/footer.tsx +1 -1
- package/common/header/index.tsx +1 -1
- package/next/fonts/DrukWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukWide-Medium-Trial.otf +0 -0
- package/next/load-and-return-lux-next-fonts-on-import.ts +27 -1
- package/package.json +1 -1
- package/primitives/button.tsx +3 -3
- package/tailwind/lux-tw-fonts.ts +5 -0
package/common/footer.tsx
CHANGED
|
@@ -50,7 +50,7 @@ const Footer: React.FC<{
|
|
|
50
50
|
)}
|
|
51
51
|
key={index + 1}
|
|
52
52
|
itemClx={(def: LinkDef) => ((def.variant === 'linkFG') ?
|
|
53
|
-
'font-
|
|
53
|
+
'font-nav text-[15px]/[1.3] font-medium text-foreground tracking-normal'
|
|
54
54
|
:
|
|
55
55
|
'text-[15px]/[1.1] font-normal tracking-[0.2px] text-muted-1'
|
|
56
56
|
)}
|
package/common/header/index.tsx
CHANGED
|
@@ -19,7 +19,7 @@ const Header: React.FC<{
|
|
|
19
19
|
const allElements = (featured) ? [...common, ...featured] : common
|
|
20
20
|
// TODO move 13px into a size class and configure twMerge to recognize say, 'text-size-nav'
|
|
21
21
|
// (vs be beat out by 'text-color-nav')
|
|
22
|
-
const navItemClx = 'font-
|
|
22
|
+
const navItemClx = 'font-nav h-8 tracking-[-0.3px] !text-[13px]/[13px]'
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<header className={cn('bg-background sticky z-10 top-0 ', className)} >
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -37,6 +37,28 @@ const drukTextWide = localFont({
|
|
|
37
37
|
variable: '--font-druk-text-wide' ,
|
|
38
38
|
})
|
|
39
39
|
|
|
40
|
+
const drukWide = localFont({
|
|
41
|
+
src: [
|
|
42
|
+
{
|
|
43
|
+
path: './fonts/DrukWide-Medium-Trial.otf',
|
|
44
|
+
weight: '500',
|
|
45
|
+
style: 'normal'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
path: './fonts/DrukWide-Bold-Trial.otf',
|
|
49
|
+
weight: '700',
|
|
50
|
+
style: 'normal'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: './fonts/DrukWide-Heavy-Trial.otf',
|
|
54
|
+
weight: '500',
|
|
55
|
+
style: 'normal',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
display: 'swap',
|
|
59
|
+
variable: '--font-druk-wide' ,
|
|
60
|
+
})
|
|
61
|
+
|
|
40
62
|
const inter = Inter({
|
|
41
63
|
subsets: ["latin"],
|
|
42
64
|
variable: "--font-inter",
|
|
@@ -46,9 +68,13 @@ export default [
|
|
|
46
68
|
{
|
|
47
69
|
font: inter,
|
|
48
70
|
twName: 'sans'
|
|
49
|
-
},
|
|
71
|
+
},
|
|
50
72
|
{
|
|
51
73
|
font: drukTextWide,
|
|
74
|
+
twName: 'nav'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
font: drukWide,
|
|
52
78
|
twName: 'heading'
|
|
53
79
|
}
|
|
54
80
|
].map (
|
package/package.json
CHANGED
package/primitives/button.tsx
CHANGED
|
@@ -5,9 +5,9 @@ import { cva, type VariantProps } from "class-variance-authority"
|
|
|
5
5
|
import { cn } from "../util"
|
|
6
6
|
|
|
7
7
|
const variant = {
|
|
8
|
-
primary: "bg-primary text-primary-fg hover:bg-primary-hover font-
|
|
9
|
-
secondary: "bg-secondary text-secondary-fg hover:bg-secondary/80 font-
|
|
10
|
-
outline: "text-foreground bg-background border border-muted-4 hover:bg-level-1 hover:text-accent hover:border-accent font-
|
|
8
|
+
primary: "bg-primary text-primary-fg hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
|
|
9
|
+
secondary: "bg-secondary text-secondary-fg hover:bg-secondary/80 font-nav whitespace-nowrap not-typography",
|
|
10
|
+
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",
|
|
11
11
|
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap hover:bg-destructive-hover",
|
|
12
12
|
ghost: "text-foreground hover:bg-level-1 hover:text-accent whitespace-nowrap font-sans ",
|
|
13
13
|
link: "text-foreground hover:text-muted-1 font-sans ",
|
package/tailwind/lux-tw-fonts.ts
CHANGED
|
@@ -9,6 +9,11 @@ export default [
|
|
|
9
9
|
{
|
|
10
10
|
fontFamily: ['var(--font-druk-text-wide)'], // do not provide fall-backs due to next bug
|
|
11
11
|
cssVar: '--font-druk-text-wide',
|
|
12
|
+
twName: 'nav'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
fontFamily: ['var(--font-druk-wide)'], // do not provide fall-backs due to next bug
|
|
16
|
+
cssVar: '--font-druk-wide',
|
|
12
17
|
twName: 'heading'
|
|
13
18
|
},
|
|
14
19
|
{
|