Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve import "uno.css" #29

Open
AllenLi-01 opened this issue Nov 14, 2022 · 2 comments
Open

Failed to resolve import "uno.css" #29

AllenLi-01 opened this issue Nov 14, 2022 · 2 comments

Comments

@AllenLi-01
Copy link

I used yarn gloally add this theme.And Slidev run fine and 'theme' shows slidev-theme-penguin correctly。
But Slidev doesn't render my slides properly,and Terminal prompts me that the uno.css file is missing.
How can I fix it?
image
P.S. I try to find this file in my computer by everything,however,I can't find it.

@alvarosabu
Copy link
Owner

I think I might need to add it as a peer dependency, if you install it locally unocss it works? npm i unocss

@AllenLi-01
Copy link
Author

I think I might need to add it as a peer dependency, if you install it locally unocss it works? npm i unocss

Thanks for your answer!Yes it worked when I install unocss.But it comes another problem:the color of sildes is just BLACK and WHITE.Do I need to do any other configuration if I want my slides colorful likes your example?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants