create-pb-app 1.0.9 → 1.1.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/templates.js +7 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pb-app",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-pb-app": "./src/cli.js"
package/src/templates.js CHANGED
@@ -60,13 +60,6 @@ export default defineConfig({});
60
60
  <meta charset="UTF-8">
61
61
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
62
62
  <title>${projectName}</title>
63
- <style>
64
- @font-face {
65
- font-family: 'Neue Montreal';
66
- src: url('/fonts/NeueMontreal.woff2') format('woff2');
67
- font-display: swap;
68
- }
69
- </style>
70
63
  </head>
71
64
 
72
65
  <body>
@@ -102,10 +95,15 @@ import { Main } from '../layouts';
102
95
  import { makeStaticStyles } from 'css-engine-test-pb';
103
96
 
104
97
  const useStaticStyles = makeStaticStyles({
98
+ '@font-face': {
99
+ fontFamily: 'Neue Montreal',
100
+ src: 'url("../../public/fonts/NeueMontreal.woff2") format("woff2")',
101
+ fontWeight: '1 999',
102
+ fontDisplay: 'block'
103
+ },
105
104
  body: {
106
105
  margin: 0,
107
- fontFamily: 'system-ui, -apple-system, sans-serif',
108
- boxSizing: 'border-box'
106
+ fontFamily: 'Neue Montreal'
109
107
  }
110
108
  });
111
109