Themes for @bndynet/dialog
<html>
<head>
<!-- required -->
<link href="https://unpkg.com/@bndynet/dialog/dist/dialog.css" rel="stylesheet" type="text/css" />
<script src="https://unpkg.com/@bndynet/dialog/dist/dialog.umd.js"></script>
<!-- themes -->
<link href="https://unpkg.com/@bndynet/dialog-themes/dist/dialog-dark.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
dialog.setup({
theme: 'dialog-dark',
//...
});
</script>
</body>
</html>
- Clone this repo.
npm install
in root directory.- Add new theme file in src folder and the file name MUST be same with classname.
- Add theme name(classname) to demo site in ./docs/config.json file.
npm start
to open demo site.