JQUERY-CONFIRM

Themes - Use one, or make your own.

back to Main Docs

Themes

The Light & Dark themes that suit any website design,

  1. $.confirm({
  2. theme: 'light'
  3. });
  4. $.confirm({
  5. theme: 'dark'
  6. });
  7. $.confirm({
  8. theme: 'supervan' // 'material', 'bootstrap'
  9. });

Make your own themes

Why not? A unique design must have a unique confirm box

This is a CSS boilerplate for defining a theme.

  1. .jconfirm.jconfirm-my-theme {
  2. .jconfirm-bg {
  3. }
  4. .jconfirm-box {
  5. &.loading {
  6. &:before {
  7. }
  8. &:after {
  9. }
  10. }
  11. div.jconfirm-closeIcon {
  12. }
  13. div.jconfirm-title-c {
  14. }
  15. div.jconfirm-content-pane {
  16. }
  17. div.jconfirm-content {
  18. &:empty {
  19. }
  20. }
  21. .jconfirm-buttons {
  22. button {
  23. }
  24. button + button {
  25. }
  26. }
  27. &.hilight {
  28. }
  29. }
  30. }

JS part of it

  1. $.confirm({
  2. theme: 'my-theme'
  3. });