You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the token fontFamily: 'mono' anywhere
Example react code:
import{css}from'styled-system/css';exportconstApp=()=>{return(<divclassName={css({fontFamily: 'mono'})}>
Hello from Panda
</div>);};
Run command panda to generate the style.css file
Find the variable --fonts-mono in style.css
Expected result:
The css variable should be like this --fonts-mono: my-mono1, my-mono-2
Got wrong result:
The css variable was --fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, my-mono1, my-mono-2 => If this is the expected result, it should be documented somewhere
Prepare to reproduce:
fontFamily: 'mono'
anywhereExample react code:
panda
to generate thestyle.css
file--fonts-mono
instyle.css
Expected result:
The css variable should be like this
--fonts-mono: my-mono1, my-mono-2
Got wrong result:
The css variable was
--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, my-mono1, my-mono-2
=> If this is the expected result, it should be documented somewhere
Quick sample on playground:
https://play.panda-css.com/uvAlpYzKCk
JS Framework
React
Panda CSS Version
0.51.1
Browser
Chrome
Operating System
The text was updated successfully, but these errors were encountered: