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

Request #3688 Add dark theme for JsPDF #3689

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,416 changes: 1,735 additions & 1,681 deletions dist/jspdf.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.es.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/jspdf.es.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.es.min.js.map

Large diffs are not rendered by default.

29,728 changes: 14,892 additions & 14,836 deletions dist/jspdf.node.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.node.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/jspdf.node.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.node.min.js.map

Large diffs are not rendered by default.

3,416 changes: 1,735 additions & 1,681 deletions dist/jspdf.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.umd.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/jspdf.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/polyfills.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/polyfills.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions examples/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,28 @@ footer {
.controls .alert {
float: left;
}

:root {
--background-color: #ffffff;
--text-color: #000000;
}

[data-theme="dark"] {
--background-color: #181818;
--text-color: #ffffff;
}

body {
background-color: var(--background-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
}


#theme-toggle{
vertical-align: top;
height: 28px;
border-radius: 9999px;
padding: 1px 12px 1px 12px;
color: #000000;
}
15 changes: 15 additions & 0 deletions examples/js/editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<a href="https://twitter.com/MrRio" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @MrRio</a>
<a class="btn btn-primary btn-sm" style="vertical-align:top;" href="https://github.com/MrRio/jsPDF">Download Now</a>
<button id="theme-toggle">Switch to dark theme</button>
<br/><span class="muted" id="dversion"></span>
</span>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Expand Down
Loading