8000 Can't define custom theme with feature/vite branch · Issue #3736 · hakimel/reveal.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't define custom theme with feature/vite branch #3736

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

Open
kruton opened this issue Jan 16, 2025 · 1 comment
Open

Can't define custom theme with feature/vite branch #3736

kruton opened this issue Jan 16, 2025 · 1 comment

Comments

@kruton
Copy link
kruton commented Jan 16, 2025

Since exports was added to package.json, you can't define your own theme outside of the reveal.js package. For instance, using the mixins as they're specified in the themes files:

@use "reveal.js/css/theme/template/mixins" as mixins;

results in this error:

[plugin:vite:css] [sass] Missing "./css/theme/template/mixins" specifier in "reveal.js" package
   ╷
12 │ @use "reveal.js/css/theme/template/mixins" as mixins;
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  src/reveal-theme.scss 12:1  @use
  src/index.scss 2:1          root stylesheet
@kruton
Copy link
Author
kruton commented Jan 16, 2025

You can workaround this by using a relative path to reveal.js:

@use "../node_module/reveal.js/css/theme/template/mixins" as mixins;

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

1 participant
0