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
Create a default CSS that can get people up and running #258
Comments
@rowanc1 I am in this exact scenario. I am using Would you be open to expanding on how I can use the default styles? |
Adding this line to your tailwind config should pull in all the relevant styles: https://github.com/executablebooks/myst-theme/blob/feat/updates/themes/book/tailwind.config.js#L5 That is coming from here: This is telling the tailwind css compiler to look at the packages and pull in their styles directly. There are also theme extensions, primarily used for the grids: These can be included in your config with: Finally, you will also have to import some other specific styles in your base tailwind css: Hopefully that helps, if you are using tailwind already, figuring out this approach is probably the way to go. The outcome of this issue is hopefully a better readme, which I would love help on! :) |
@rowanc1. Hello. I am trying to use
Hoping that it makes sense. Thanks for any advice or help. |
Hi @HaudinFlorence, you might find it useful to look at jupyterlab-myst, which uses Tailwind builds |
@agoose77 Thanks for the advice. I manage to get the admonition component with the proper style. I am now encountering troubles with the math component rendering and most particularly the use of |
@HaudinFlorence do you perhaps have a GitHub repo that I could take a look at? |
@agoose77 Thanks for proposing to have a look. Here is my repo https://github.com/HaudinFlorence/simple-myst-react-app (the github pages is not updated with respect to the last changes using myst-to-react). The repo is at a early stage and I may have missed lots of crucial points. I also took the jupyter lab tailwind configuration as it was. And not directly related, I am also wondering why is myst-demo package archived ? Many thanks. |
@HaudinFlorence the myst-demo you're referring to is probably https://github.com/executablebooks/myst-demo, which was associated with our older markdown-it based MyST JS tools. The new JS development work has its own demo here |
Right now the CSS is generated through tailwind, which allows you to have a single bundle as well as configure it from your own application. This is a lot for folks who are new to the JS ecosystem and just want a css file on page.
We could auto generate/build the css when we release
@myst-theme/styles
and then people can throw that on the page and have a good onboarding experience.See also: jupyter/papyri#314
The text was updated successfully, but these errors were encountered: