-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Themes & Skins for pdf.js #3528
Comments
@milkovsky As of now, there is no support for other themes than the default dark theme. However, since all styling is done in |
ok. I've got the idea. thank you |
I'll open this issue again for developing patch for themming support. |
ah. thanks. should I close this issue here? |
nope. will your solution solve only pdf.js extension theme or for web viewer as well? |
I don't have a solution yet. |
Should just style with bootstrap and fontawesome (replace bulky images). Any bootstrap skin would work then and there would be no need to build theming support. |
For those looking for skinning inspiration, here is one I know of based on PDF.js: |
It would be awesome if there is other theme. I am currently using the pdf viewer Chrome extension to view pdfs and found it hard to change the theme by change the code which is installed directly from chrome web store. |
Or we could at least provide a dynamic CSS file, such as SCSS, Sass etc; so everybody can quickly implement their own small customizations such as colors and fonts. |
I'm fine with official skin, however documentation says that it should not be used in unmodified form. Therefore it'll be great to be provided with at least single skin that can be openly used without license issues. Does anyone know one? |
I'm going to link #6706 here as it is also a bit relevant for this issue. If anyone would like to work on making the CSS more generic and easier to adjust, we can review PRs that do so. |
I didn't find this issue at first, so i had opened another already. What is your status @milkovsky ? |
@LordTaifleh My status: I am not doing any development here. In the end I used the default theme because of lack of project budget. The issue remains open for future contribution by community, |
Alright,
Note that it does not work for anchored pdf's eg.: xyz.pdf#5 |
Is there any update? This issue is over 5 years old. |
I think |
Hello! As far as I understand, I can just edit viewer.html, viewer.css and viewer.js to remove / change stuff. Is it a correct assumption? |
Yes, that's correct. In fact, we even ask users to modify the default viewer for third-party deployments (see https://github.com/mozilla/pdf.js/wiki/Third-party-viewer-usage). |
Fixed by #11077. There is now a light and dark theme in the Photon (Firefox) style, and the colors/icons are now CSS variables so they can be tweaked much more easily for third-party usage. |
Are there any developed themes or skins for pdf.js exept Dark theme? I tried to find any opened issue for it. Then I googled but I haven't find any developed theme for pdf.js.
The text was updated successfully, but these errors were encountered: