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:
- #moj-pattern-library-support on Justice Digital Slack
- #moj-design-system channel on UK Government Digital Slack
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.