Package Exports
- asyncdesign-webui
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (asyncdesign-webui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

WebUI
Web design made easy
WebUI is a little different to most other CSS frameworks due to an emphasis on flexibility and creativity. Although most frameworks do attempt to provide flexibility, they often enforce a particular approach or style, and come with too many limitations. WebUI has been build from the ground up with flexibility as the primary goal - even the components are made that way. WebUI is a system that allows you to invent new designs, and provides simple building blocks to construct much larger CSS components. Complex data entry forms can be created in a precise layout using the built-in grid system that doesn't throw any surprises. Add responsive behaviour exactly where you want it, with the flexibility to create fixed non-responsive layouts or layout sections.
Check out the full documentation to learn more about WebUI
Installation
Simple Method
- Download the latest release
- Extract the CSS and JavaScript files from the dist folder to your project folders.
- WebUI has no dependencies, so you don't need to include jQuery.
- In your web page add a link to the CSS in the head section of your page and links to the JavaScript files at the bottom of the body section, for example:
<html>
<head>
<link rel="stylesheet" href="css/webui-standard.min.css">
</head>
<body>
<script src="js/webui-standard.min.js"></script>
</body>
</html>
NPM
This is the recommended way to install WebUI if you are building websites using popular frameworks such as Angular, React, or Vue.
npm install asyncdesign-webui
NuGet
If you are using Visual Studio to develop websites, then this is the preferred way to install WebUI.
Install-Package asyncdesign-webui
Bower
Alternatively, you can use Bower to install the WebUI packages.
bower install asyncdesign-webui
That's it. You are ready to start developing with WebUI.
Be sure to look at the static DEMO pages at the root of the download, containing many examples that demonstrate a good selection of components.
What's Included
NPM
The NPM package includes the WebUI source files, the minified and development distribution files, and a set of WebUI demo pages.
NuGet
The NuGet package includes only the minified and development distribution files.
Bower
The Bower package includes the WebUI source files, the minified and development distribution files, and a set of WebUI demo pages.
GitHub Download
The GitHub download includes all WebUI files for the framework, docs website, demo pages, and build files.
Components Available
- Alerts
- Carousel
- Menus
- Modals
- Positioning
- Scrollspy
- Shapes
- Radial
- Tabs
- Toggle Container
- Transitions
- Tooltips
- Upload
- Validation
Useage
CSS and JavaScript Files
WebUI comes with a range of pre-built CSS and JavaScript files. The following table shows the combinations that can be used and what is included in each.
CSS | JS | Includes |
---|---|---|
webui-all.min.css | webui-all.min.js | Includes everything, with advanced styles, flexbox, the traditional grid system, and all components. |
webui-all-flexbox.min.css | webui-all.min.js | Includes everything apart from the traditional grid system. |
webui-all-grid.min.css | webui-all.min.js | Includes everything apart from flexbox styles. |
webui-standard.min.css | webui-standard.min.js | Includes standard styles, flexbox, the traditional grid system, and most components. Does not include advanced styles or the shapes component. |
webui-standard-flexbox.min.css | webui-standard.min.js | Includes standard styles, flexbox, and most components. Does not include the traditional grid system, advanced styles or the shapes component. |
webui-standard-grid.min.css | webui-standard.min.js | Includes standard styles, the traditional grid system, and most components. Does not include flexbox styles, advanced styles or the shapes component. |
webui-basic.min.css | webui-basic.min.js | Includes only basic styles, flexbox, and the traditional grid system. Does not include any components. |
webui-basic-flexbox.min.css | webui-basic.min.js | Includes only basic styles and flexbox. Does not include any components. |
webui-basic-grid.min.css | webui-basic.min.js | Includes only basic styles and the traditional grid system. Does not include any components. |
Styles Without JavaScript
WebUI can be used without javascript files if you only need the CSS, so a set of style only files are provided. The filenames for these begin with "webui-styles-" and follow the same pattern as in the above table, but none includes WebUI components which rely on javascript.
JavaScript Document Load Event
All WebUI JavaScript should be enclosed in the document load event callback, as shown in the following example.
NOTE: This event is does not need to be used if you are using a framework lifecycle load event.
webui.ready(function() {
// Call WebUI functions here...
});
Angular
- From the command line, navigate to your Angular CLI project folder.
- Type npm install asyncdesign-webui and wait for the install to finish.
- In tsconfig.json add "allowJs": true to the "compilerOptions" object.
- In .angular-cli.json add "../node_modules/asyncdesign-webui/dist/css/webui-standard.min.css" to the styles array.
- In .angular-cli.json add "../node_modules/asyncdesign-webui/dist/js/webui-standard.min.js" to the scripts array.
- In typings.d.ts add declare var webui: any
- In your app.components.ts add import * as webui from '../../node_modules/asyncdesign-webui/dist/js/webui-standard.min.js'; at the top of your file.
React
- From the command line, navigate to your React project folder.
- Type npm install asyncdesign-webui and wait for the install to finish.
- In your React component js file such as App.js add import webui from '../node_modules/asyncdesign-webui/dist/js/webui-standard.min.js'
- Then add import '../node_modules/asyncdesign-webui/dist/css/webui-standard.min.css'
- Don't forget to use className="" instead of class="" on your html elements.
- If you need to use WebUI javascript functions, this should be done in the componentDidMount() lifecycle method.
Vue
- From the command line, navigate to your Vue CLI project folder.
- Type npm install asyncdesign-webui and wait for the install to finish.
- In webpack.base.conf.js under resolve: alias: add 'webui': resolve('node_modules/asyncdesign-webui/dist/js/webui-standard.min.js')
- In main.js add import webui from 'webui';
- In main.js add import '../node_modules/asyncdesign-webui/dist/css/webui-standard.min.css';
- Then finally, add Vue.use(webui) directly below your imports.
Check out the full documentation to learn more about WebUI