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

Changing stylesheet doesnt change theme #69

Open
dukesx opened this issue May 11, 2019 · 3 comments
Open

Changing stylesheet doesnt change theme #69

dukesx opened this issue May 11, 2019 · 3 comments

Comments

@dukesx
Copy link

dukesx commented May 11, 2019

Hi , i try to change the style sheet in html file of create-react-app , but it seems that only one dark theme is being applied for highlight. I tried Github and monokai sublime style sheets , it doesnt seem to work. Please help !

@CrispyBacon1999
Copy link

If you're doing webpack based, the easiest way to do it would be to actually import the style in the javascript. That's how I do it and it works perfectly fine. All you need to do is import "highlight.js/styles/atom-one-dark.css"

@dukesx
Copy link
Author

dukesx commented May 13, 2019 via email

@MatteoGioioso
Copy link

MatteoGioioso commented Jun 18, 2019

I have tried to import that way but nothing has changed. I am using nextjs

EDIT: Ok, I have solved by importing directly the theme with link tag

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

3 participants