Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@ministryofjustice/frontend
Advanced tools
The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.
@ministryofjustice/frontend is a frontend toolkit designed to help developers build consistent and accessible web applications for the Ministry of Justice. It provides a set of reusable components, styles, and patterns that adhere to the Ministry's design guidelines.
Form Elements
This feature provides styled form elements such as input fields, labels, and form groups to ensure consistency and accessibility in form design.
<form>
<div class="moj-form-group">
<label class="moj-label" for="input-example">Example label</label>
<input class="moj-input" id="input-example" name="input-example" type="text">
</div>
</form>
Buttons
This feature offers pre-styled buttons that can be used to maintain a consistent look and feel across different web applications.
<button class="moj-button">Submit</button>
Navigation
This feature provides navigation components that help in creating consistent and accessible navigation menus.
<nav class="moj-navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
govuk-frontend is a frontend toolkit for building user interfaces that are consistent with the GOV.UK design system. It offers a wide range of components, styles, and patterns similar to @ministryofjustice/frontend but is tailored for general use across all UK government services.
The United States Web Design System (uswds) provides a set of design guidelines and reusable components for building accessible and consistent web applications for U.S. government services. It is similar to @ministryofjustice/frontend but is tailored for U.S. government use.
Bootstrap is a popular open-source frontend framework that provides a wide range of components, styles, and utilities for building responsive and mobile-first web applications. While it is not specifically tailored for government use, it offers similar functionalities to @ministryofjustice/frontend.
MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.
See live examples of MOJ Frontend components, and guidance on when to use them in your service, in the MOJ Pattern Library documentation.
If you want to help us build MOJ Frontend, view our contribution guidelines. This covers all areas from semvar commit messages to release process.
MOJ Frontend is maintained by staff in the Ministry of Justice. If you need support, you can use GitHub discussions or one of our Slack channels:
We recommend installing MOJ Frontend using node package manager (npm).
Once installed, you will be able to use the code from the examples in the MOJ Pattern Library in your service.
MOJ Frontend will allow you to build services that comply with the guidance in the Service Manual.
MOJ Frontend no longer supports Internet Explorer 8. If you need IE8 support, then you must use an old version or provide your own support.
MOJ Frontend will allow you to build services that comply with the guidance in the Service Manual.
In addition, we test that all content is accessible with keyboard only.
We aim to support users who adjust or override the colours of websites they visit. We test this by changing colours in Firefox, by enabling 'High Contrast' mode in Windows and by using the High Contrast plugin for Chrome.
FAQs
The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.
The npm package @ministryofjustice/frontend receives a total of 188,199 weekly downloads. As such, @ministryofjustice/frontend popularity was classified as popular.
We found that @ministryofjustice/frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.