The fastest way. Just paste the link into your HTML — no installation, no build step.
<!DOCTYPE html>
<html data-theme="dark" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Landing</title>
<!-- njX UI -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/njbSaab/njx-css-ui@main/css/style.min.css">
</head>
<body>
<button class="btn btn-primary">Hello njX</button>
<script src="https://cdn.jsdelivr.net/gh/njbSaab/njx-css-ui@main/js/njx.js"></script>
</body>
</html>For a stable pinned version (won't break when the library updates):
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/njbSaab/njx-css-ui@1.0.0/css/style.min.css">
<script src="https://cdn.jsdelivr.net/gh/njbSaab/njx-css-ui@1.0.0/js/njx.js"></script>- Go to github.com/njbSaab/njx-css-ui
- Click Code → Download ZIP
- Unzip and copy the
css/andjs/folders into your project - Connect in HTML:
<link rel="stylesheet" href="css/style.min.css">
<script src="js/njx.js"></script>git clone https://github.com/njbSaab/njx-css-ui.git
cd njx-css-uiThen copy css/ and js/ into your project.
npm install njx-ui<link rel="stylesheet" href="node_modules/njx-ui/css/style.min.css">Forking creates your own copy of njX under your GitHub account — useful if you want to customize the library or contribute back.
- Open github.com/njbSaab/njx-css-ui
- Click Fork (top right)
- Choose your GitHub account
- GitHub creates
your-username/njx-css-ui
git clone https://github.com/YOUR_USERNAME/njx-css-ui.git
cd njx-css-uiThis lets you pull in future updates from the original:
git remote add upstream https://github.com/njbSaab/njx-css-ui.gitCheck remotes:
git remote -v
# origin https://github.com/YOUR_USERNAME/njx-css-ui.git
# upstream https://github.com/njbSaab/njx-css-ui.gitgit fetch upstream
git merge upstream/main
git push origin mainAfter forking, you can use your own version via jsDelivr:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/YOUR_USERNAME/njx-css-ui@main/css/style.min.css">This way you can modify the library and serve your custom version from CDN.