The original DOMKit logo

DOMKit - The Docs

In these docs, we talk about what DOMKit is, how it's used, and a description for each function.

Article Published 05/05/2025 (DD/MM/YYYY)


Introduction

DOMKit is an open-source, client-side, JS library used to simplify the creation of HTML elements and CSS styling options.

In the current version (V1.0), DOMKit provides 4 JS files: elements.js, displays.js, styles.js and animations.js.

DOMKit Testers Survey

At the current time of writing this, a DOMKit testers survey is currently in the works! Its purpose is to gather feedback from experienced devs in order to further develop DOMKit.

Want to know more about this survey? Read the Q&A here.

Adding DOMKit to Your Site

Download the src folder from the Github Repository into your code, then add the following line above any <script> tags, in the <body> tag.

<script src="/path/to/DOMKit/src/[scriptName].js"></script>

where [scriptName] is one of the source files, depending on what styling or elements you need. For instance, if you want animations on your webpage, you'd import the animations.js file.

Getting Started with DOMKit

If you are unsure where to begin with experimenting with DOMKit's range of functions, try out the scripts in the Repository's demo folder.

Quick Links

Get to each category quicker with these page links:


Elements

This section outlines all functions used to create various HTML elements. These elements have some default styling applied to them, such as the navigation bar.


Displays

This section outlines each of the display functions, used to create neater layouts.


Styles

This section outlines each of the styling functions, used to style HTML elements and text. All of these functions do not return the element, as the element's styling is changed directly.


Animations

This section outlines the functions used for adding animations onto elements, such as rotation.