Code Monkey home page Code Monkey logo

sweetalert2-themes's Introduction

@sweetalert2/themes - Official Themes for SweetAlert2

npm version semantic-release Greenkeeper badge

Available themes

Installation

You can install all themes at once:

npm install --save sweetalert2 @sweetalert2/themes

Or just a single theme @sweetalert2/theme-<theme_name>, e.g.

npm install --save sweetalert2 @sweetalert2/theme-dark

Or grab them both from jsdelivr CDN, for example:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@1/dark.css">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8/dist/sweetalert2.min.js"></script>

Usage

With CSS:

<!-- Include a required theme -->
<link rel="stylesheet" href="@sweetalert2/themes/dark/dark.css">

<script src="sweetalert2/dist/sweetalert2.min.js"></script>

With SASS:

your-app.js:

import Swal from 'sweetalert2/src/sweetalert2.js'

your-app.scss:

@import '~@sweetalert2/themes/dark/dark.scss';

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the sweetalert2-themes repository and clone it locally.

  2. Make sure you have npm or yarn installed.

  3. When in the sweetalert2-themes directory, run npm install or yarn install to install dependencies.

  4. To begin active development, run npm start or yarn start. If you want to start with a specific theme preselected, use: npm|yarn start --start-path <theme-name>

  5. Or, if you want to quickly start a new theme, run npm run create-new-theme my-awesome-theme. This will automatically start the server after creating the theme's default files. If you interrupt the server and want to restart it, use npm|yarn start --start-path <theme-name>

Donations

Has SweetAlert2 helped you create an amazing application? You can show your support by making a donation:

  • GitHub Sponsors โค๏ธ
  • PayPal
  • Bitcoin: 12BxefvPMtHePgfPRDL1SaZYSG4GwQmWoP
  • Ether: 0x36e2b10666e2c0dc343901895ba3697b5d3214d1
  • Bitcoin Cash: qqxs402qszgwuue00gwxw996lzhpa8up2unqm0y46g
  • Stellar: GBRS5KGFJO4OBUGW3TRQBIVXTM5YDS53DOSHGA3LKVE2YXKVKNVDONBP

sweetalert2-themes's People

Contributors

limonte avatar semantic-release-bot avatar gverni avatar greenkeeper[bot] avatar kalvisan avatar rejack avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.