|
1 | | -import { Style, css } from "hono/css"; |
2 | 1 | import { html } from "hono/html"; |
3 | 2 | import type { FC, PropsWithChildren } from "hono/jsx"; |
4 | 3 | import { basePath, originUrl, typstOfficialUrl } from "../../metadata"; |
@@ -133,58 +132,6 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({ |
133 | 132 | defer |
134 | 133 | src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js" |
135 | 134 | /> |
136 | | - <Style>{css` |
137 | | -/* Global font family */ |
138 | | -@font-face { |
139 | | - font-family: "HK Grotesk"; |
140 | | - src: url("${joinPath(basePath, "/fonts/hanken-grotesk/HKGrotesk-Regular.woff2")}") |
141 | | - format("woff2"); |
142 | | - font-weight: 400; |
143 | | - font-style: normal; |
144 | | - font-display: swap; |
145 | | -} |
146 | | -
|
147 | | -@font-face { |
148 | | - font-family: "HK Grotesk"; |
149 | | - src: url("${joinPath(basePath, "/fonts/hanken-grotesk/HKGrotesk-SemiBold.woff2")}") |
150 | | - format("woff2"); |
151 | | - font-weight: 600; |
152 | | - font-style: normal; |
153 | | - font-display: swap; |
154 | | -} |
155 | | -
|
156 | | -@font-face { |
157 | | - font-family: "HK Grotesk"; |
158 | | - src: url("${joinPath(basePath, "/fonts/hanken-grotesk/HKGrotesk-Bold.woff2")}") format("woff2"); |
159 | | - font-weight: 700; |
160 | | - font-style: normal; |
161 | | - font-display: swap; |
162 | | -} |
163 | | -
|
164 | | -@font-face { |
165 | | - font-family: "Cascadia Mono"; |
166 | | - src: url("${joinPath(basePath, "/fonts/cascadia-code/CascadiaMono-Regular-Sub.woff2")}") |
167 | | - format("woff2"); |
168 | | - font-weight: 400; |
169 | | - font-style: normal; |
170 | | - font-display: swap; |
171 | | -} |
172 | | -
|
173 | | -body { |
174 | | - font-family: |
175 | | - "HK Grotesk", Inter, "BIZ UDGothic", "BIZ UDPGothic", system-ui, |
176 | | - -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, |
177 | | - Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
178 | | -} |
179 | | -
|
180 | | -code, |
181 | | -pre, |
182 | | -kbd, |
183 | | -samp { |
184 | | - font-family: "Cascadia Mono", SFMono-Regular, Menlo, Monaco, Consolas, |
185 | | - "Liberation Mono", "Courier New", monospace; |
186 | | -} |
187 | | -`}</Style> |
188 | 135 | {/* NOTE: @hono/vite-dev-server does not respect the base setting in the Vite configuration. */} |
189 | 136 | {import.meta.env.DEV && |
190 | 137 | html` |
|
0 commit comments