Replies: 2 comments 1 reply
-
I've got a PR for this feature: #2738. Should land pretty soon |
Beta Was this translation helpful? Give feedback.
0 replies
-
@azu This is now released. https://panda-css.com/docs/guides/fonts#global-font-face |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I want to define multiple
@font-face
inpanda.config.ts
for alias with custom font weight.Currently, Hiragino Font has a Weight problem in Japanese, so I define the following normalized font with adjusted weight in
global.css
and use it.Example my
global.css
and refer it from panda.config.ts
However, defining
@font-face
inglobal.css
is not ideal.Because I would like to share this
fonts
token setting among multiple web applications in monorepo, but I feel that global.css is difficult to share.If possible, I would like to define
@font-face
in panda.config.ts.Problem Statement/Justification
I want to share my design token between applications.
I would like to share everything including font-face with panda preset etc.
global.css
However,
global.css
requires copy and paste…Proposed Solution or API
I would like to have an API that allows me to define font-face in panda.config.ts like the following
defineFontFace([/* font-face definitions */])
defineGlobalCss("/* css string */")
Alternatives
global.css
Additional Information
globalCss
global.css
for workaroundBeta Was this translation helpful? Give feedback.
All reactions