@salifbiaye/create-boutique 0.1.2 → 0.1.3
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/package.json +1 -1
- package/templates/storefront/src/lib/boutique/fonts/LICENSE.txt +3 -0
- package/templates/storefront/src/lib/boutique/fonts/inter.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/oswald.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/outfit.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/plus-jakarta-sans.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/poppins-400.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/poppins-500.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/poppins-600.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/poppins-700.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/sora.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts/space-grotesk.woff2 +0 -0
- package/templates/storefront/src/lib/boutique/fonts.ts +19 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salifbiaye/create-boutique",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Usine à Boutiques : génère un projet complet (backend Medusa + une boutique Next.js par campagne) prêt pour docker compose",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/salifbiaye/create-boutique.git" },
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Polices auto-hébergées (sous-ensemble latin), sous licence SIL Open Font License 1.1 :
|
|
2
|
+
Inter, Plus Jakarta Sans, Oswald, Outfit, Sora, Space Grotesk (versions variables), Poppins.
|
|
3
|
+
Source : paquets Fontsource (@fontsource-variable/*, @fontsource/poppins). https://openfontlicense.org
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import localFont from "next/font/local"
|
|
2
2
|
import type { FontId, Theme } from "./schema"
|
|
3
3
|
|
|
4
|
-
// Polices des presets (design/bundle.css)
|
|
5
|
-
//
|
|
4
|
+
// Polices des presets (design/bundle.css), fichiers woff2 dans ./fonts (licence OFL, voir fonts/LICENSE.txt) :
|
|
5
|
+
// aucun accès à Google Fonts au build ni à l'exécution. Seules les 2 polices du thème de l'instance sont appliquées.
|
|
6
6
|
// Chaque police expose --nf-<id>, repris par --font-<id> dans styles/ub/fonts.css.
|
|
7
|
-
const inter =
|
|
8
|
-
const jakarta =
|
|
9
|
-
const oswald =
|
|
10
|
-
const outfit =
|
|
11
|
-
const poppins =
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const inter = localFont({ src: "./fonts/inter.woff2", weight: "100 900", variable: "--nf-inter", preload: false })
|
|
8
|
+
const jakarta = localFont({ src: "./fonts/plus-jakarta-sans.woff2", weight: "200 800", variable: "--nf-jakarta", preload: false })
|
|
9
|
+
const oswald = localFont({ src: "./fonts/oswald.woff2", weight: "200 700", variable: "--nf-oswald", preload: false })
|
|
10
|
+
const outfit = localFont({ src: "./fonts/outfit.woff2", weight: "100 900", variable: "--nf-outfit", preload: false })
|
|
11
|
+
const poppins = localFont({
|
|
12
|
+
src: [
|
|
13
|
+
{ path: "./fonts/poppins-400.woff2", weight: "400" },
|
|
14
|
+
{ path: "./fonts/poppins-500.woff2", weight: "500" },
|
|
15
|
+
{ path: "./fonts/poppins-600.woff2", weight: "600" },
|
|
16
|
+
{ path: "./fonts/poppins-700.woff2", weight: "700" },
|
|
17
|
+
],
|
|
18
|
+
variable: "--nf-poppins",
|
|
19
|
+
preload: false,
|
|
20
|
+
})
|
|
21
|
+
const sora = localFont({ src: "./fonts/sora.woff2", weight: "100 800", variable: "--nf-sora", preload: false })
|
|
22
|
+
const spaceGrotesk = localFont({ src: "./fonts/space-grotesk.woff2", weight: "300 700", variable: "--nf-space-grotesk", preload: false })
|
|
14
23
|
|
|
15
24
|
const fonts: Partial<Record<FontId, { variable: string }>> = {
|
|
16
25
|
inter,
|