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

global styles and themes #63

Open
2 of 5 tasks
thescientist13 opened this issue Dec 4, 2022 · 0 comments
Open
2 of 5 tasks

global styles and themes #63

thescientist13 opened this issue Dec 4, 2022 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@thescientist13
Copy link
Owner

thescientist13 commented Dec 4, 2022

Type of Change

  • New Feature Request
  • Documentation
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Not sure if a limitation with Greenwood or this plugin, but how would we support global styles and themes? Say we wanted to add PrismJS syntax highlighting and make it available to all pages?

Details

To that point, currently one way is to just add inline <style> to each markdown file, e.g.

<style>
  @import url('/node_modules/prismjs/themes/prism-coy.css')
</style>

```html
<h1>hello world</h1>
```

```js
class Header extends HTMLElement {
  connectedCallback() {
    console.log('it works!');
  }
}
```

But even after the Greenwood v0.27.0 upgrade that handles <style> tags even outside of the <head> it looks like the paths are 404. Had to use Copy Plugin for the meantime.

@thescientist13 thescientist13 added bug Something isn't working enhancement New feature or request labels Dec 4, 2022
@thescientist13 thescientist13 added question Further information is requested and removed bug Something isn't working labels Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant