Skip to content
Brandon Jordan edited this page Aug 29, 2022 · 14 revisions

Welcome to the jsUI wiki!

Getting Started

import * as jsUI from 'jsUI';

jsUI.view([
	// components...
]);

To use the built-in components, simply import them.

import {Section, Text} from 'jsUI';

Set Accent and Icon

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');

Minimum HTML

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>

Clone this wiki locally