Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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 Design System.
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 the MOJ Design System team. If you need support contact the Design System team.
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 Design System in your service.
MOJ Frontend will allow you to build services that comply with the guidance in the Service Manual.
If you are including MOJ Frontend as part of a stylesheet that you are generating in your application's build pipeline, you will need to generate and include a separate stylesheet in order to support Internet Explorer 8.
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 112,604 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.