-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Brandon Jordan edited this page Aug 29, 2022
·
14 revisions
Welcome to the jsUI wiki!
import * as jsUI from 'jsUI';
jsUI.view([
// components...
]);To use the built-in components, simply import them.
import {Section, Text} from 'jsUI';jsUI has built in functions to apply an accent color to the outlines, selection highlighting, and text cursor. It also has a function to apply an icon to the apple-touch-icon and icon <link> tags. The idea with jsUI, is that you touch as little CSS and HTML as possible.
jsUI.accentColor('#924ff0');
jsUI.icon('icon.png');This is the minimum HTML required for a jsUI app:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Initial Title</title>
<!-- Import jsUI -->
</head>
<body>
</body>
</html>