elements
Health Warn
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Warn
- fs module — File system access in .claude/hooks/stop.sh
- fs module — File system access in .claude/hooks/worktree-create.sh
Permissions Pass
- Permissions — No dangerous permissions requested
This is a UI design language and component library (NVIDIA Elements) designed for building web interfaces in AI/ML factory environments. It primarily provides curated UI components, themes, and CSS utilities.
Security Assessment
Overall Risk: Low. The core library does not request dangerous permissions, access sensitive user data, or contain hardcoded secrets. The two minor security flags involve file system access, but this is strictly limited to automated `.claude/` developer hook scripts (stop.sh and worktree-create.sh), which are local development tools rather than part of the distributed library code. The setup instructions do require piping a remote script to bash via `curl` to install Node dependencies, which is standard but always warrants a quick visual inspection before executing.
Quality Assessment
This is a very new or highly niche project, resulting in low community visibility with only 7 GitHub stars. However, it is actively maintained, with repository updates pushed as recently as today. It benefits from strong organizational backing and clear contribution guidelines. Furthermore, it uses the highly permissive and standard Apache-2.0 license, making it legally safe for integration and modification.
Verdict
Use with caution: The codebase itself appears safe and well-licensed, but the tool is in its early stages with minimal community validation.
The Design Language for AI/ML Factories Building at the Speed of Light
Elements
The Design Language for AI/ML Factories Building at the Speed of Light
Requests and Contributions
Organization
The repository is organized as a top-level overall repository and, inside that, libraries are broken up into individual project directories.
Project directories have their own package.json and commands. But all setup for the CI and development needs to happen at the root repository level.
Examples of projects include:
/projects/starters- Suite of standardized starter apps for Elements and Patterns/projects/core- Elements library: curated UI maintained by the Elements team/projects/themes- Elements Theme library: provides a set of supported themes for Element based projects/projects/styles- Elements Styles library: provides a set of CSS utilities for layout and typography
Development
Setup
To setup repository dependencies and run the full build, run the following commands at the root of the repository:
# install required dependencies
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
. ~/.nvm/nvm.sh
nvm install
npm install -g [email protected]
corepack enable
corepack prepare --activate
pnpm i --frozen-lockfile --prefer-offline
# run ci pipeline locally (lint, build, test)
pnpm run ci
Troubleshooting
If you are coming from development from a different repository, you may need to install a new version of node in nvm. If you see an error message to this effect, refer to the nvm docs for installing the missing node version and for directions on switching between versions of node using nvm. Once nvm is installed you can switch to the repository defined node and pnpm versions by re-running the setup/install step above.
If you actively work/switch between different repositories run nvm use && corepack prepare --activate in the root of the project to ensure use of the correct node/pnpm version.
Building
Both the top-level repository and each project has a set of standardized npm scripts. To build and test all projects run pnpm run ci at the root of repository.
Top-Level Repository
ci: run full build/lint/testci:all: entire CI process: build, lint, unit/lighthouse/visual testsci:reset: clear all caches/dependencies then reinstall dependencies
Individual Projects
dev: run in watch modebuild: run project/library buildtest: run unit teststest:lighthouse: run lighthouse performance teststest:visual: run playwright visual regression teststest:axe: run axe tests for a11y
To learn in detail how the repo is built and run see our build README.md.
Workflow
Before creating a branch or pull request be sure to make a new issue or feature request first for the team to evaluate. This will help ensure that your work aligns with the goals of the project and that you are not duplicating effort.
Create a Branch
Use a descriptive branch name with a prefix. Example feature/bug-fix.
git checkout -b topic/bug-fix
Once your branch is created, make your source code changes. Once your changes are complete run pnpm run ci in the root of the repo to run all the builds and tests. If all tests pass, you are ready to create a PR.
Commit Messages
The repo uses Semantic Release to manage package changes. Commit messages determine the type of release on merge. Commit Lint will enforce and catch any formatting issues in commits.
git commit -a -m "fix(core): disabled multi-select"
| Types | Description |
|---|---|
fix |
bug fixes, performance fixes |
feat |
new features, components, APIs |
chore |
non production code modifications, build tooling, documentation |
| Scopes | Description |
|---|---|
ci |
/projects/internals |
starters |
/projects/starters |
elements |
/projects/core |
themes |
/projects/themes |
monaco |
/projects/monaco |
labs-cli |
/cli |
labs-code |
/code |
forms |
/projects/forms |
Keep commit names focused on the changes you are making as the commit message is what is used to determine the next release and generated changelog notes.
Opening a Pull Request
Once you have committed your changes to your branch locally, push them to the remote GitHub repository.
git push --set-upstream origin topic/bug-fix
Open a new Pull Request in GitHub. Request review from the team members and apply the appropriate labels it the GitHub UI for example, type:fix and scope:elements.
Amending Commit
If there are changes requested, make the requested changes locally and amend the commit.
git commit -a --amend --no-edit
This will add the changes to your existing commit. Then push the updated commit back to the remote branch for review.
git push --force origin topic/bug-fix
Rebasing Commit
Sometimes changes are merged to main before your PR is approved. To update your local branch to contain the latest changes from main you will need to rebase.
git checkout main # Switch to main branch
git pull # Pull down any new changes
git checkout topic/bug-fix # Switch back to your topic branch
git rebase main # Rebase your branch onto the latest main
You may have to resolve any merge conflicts that arise from this process. Once complete, push the updated branch back to the remote repository for review.
New Project
When creating a new project, ex: ./projects/code, make sure to add the project to the pnpm-workspace.yaml located at the root directory.
Release
Once your Pull Request is approved, you can merge it into main via the GitHub UI. This will trigger a new release of the package automatically. The version number will be bumped based on the type of commit (see above). The changelog will also be updated with the changes from the commits in the PR.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found