@luxfi/core 4.3.13 → 4.3.14
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/next/font/load-and-return-lux-next-fonts-on-import.ts +18 -11
- package/next/font/local/GeistMonoVF.ttf +0 -0
- package/next/font/local/GeistMonoVF.woff +0 -0
- package/next/font/local/GeistMonoVF.woff2 +0 -0
- package/next/font/local/GeistVF.ttf +0 -0
- package/next/font/local/GeistVF.woff +0 -0
- package/next/font/local/GeistVF.woff2 +0 -0
- package/next/font/local/InterVariable-Italic.ttf +0 -0
- package/next/font/local/InterVariable-Italic.woff2 +0 -0
- package/next/font/local/InterVariable.ttf +0 -0
- package/next/font/local/InterVariable.woff2 +0 -0
- package/package.json +1 -1
@@ -1,15 +1,15 @@
|
|
1
|
-
import { Inter } from 'next/font/google'
|
1
|
+
// import { Inter } from 'next/font/google'
|
2
2
|
import localFont from 'next/font/local'
|
3
3
|
|
4
4
|
import type { TwFontDesc } from '@hanzo/ui/tailwind' // TODO
|
5
5
|
import type NextFontDesc from './next-font-desc'
|
6
6
|
|
7
|
-
import twFonts from '../../tailwind/lux-tw-fonts'
|
7
|
+
import twFonts from '../../tailwind/lux-tw-fonts'
|
8
8
|
|
9
9
|
/*
|
10
|
-
Creating NextFontDesc's and TwFontDesc's has to be seperated because they are needed
|
11
|
-
at different times during the next compile / build. Otherwise a nasty
|
12
|
-
race condition happens!
|
10
|
+
Creating NextFontDesc's and TwFontDesc's has to be seperated because they are needed
|
11
|
+
at different times during the next compile / build. Otherwise a nasty
|
12
|
+
race condition happens!
|
13
13
|
|
14
14
|
Also, requires that "Font loaders must be called and assigned to a const in the module scope"
|
15
15
|
|
@@ -29,14 +29,21 @@ const drukWide = localFont({
|
|
29
29
|
},
|
30
30
|
],
|
31
31
|
display: 'swap',
|
32
|
-
variable: '--font-druk-wide'
|
32
|
+
variable: '--font-druk-wide',
|
33
33
|
})
|
34
34
|
|
35
|
-
const inter =
|
36
|
-
|
37
|
-
|
35
|
+
const inter = localFont({
|
36
|
+
src: './local/GeistVF.ttf',
|
37
|
+
display: 'swap',
|
38
|
+
variable: '--font-inter',
|
38
39
|
})
|
39
|
-
|
40
|
+
|
41
|
+
//const inter = localFont({
|
42
|
+
// src: './local/InterVariable.ttf',
|
43
|
+
// display: 'swap',
|
44
|
+
// variable: '--font-inter',
|
45
|
+
//})
|
46
|
+
|
40
47
|
export default [
|
41
48
|
{
|
42
49
|
font: inter,
|
@@ -49,7 +56,7 @@ export default [
|
|
49
56
|
{
|
50
57
|
font: drukWide,
|
51
58
|
twName: 'heading'
|
52
|
-
}
|
59
|
+
}
|
53
60
|
].map (
|
54
61
|
(el) => {
|
55
62
|
const twFont: TwFontDesc | undefined = twFonts.find((twf: TwFontDesc) => (el.twName === twf.twName))
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luxfi/core",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.14",
|
4
4
|
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/",
|