The Intelligence Community Design System helps the United Kingdom's Intelligence Community (MI6, GCHQ, MI5, and partners) to quickly build powerful capabilities that are accessible and easy to use.
This is a joint project led by MI6, working with GCHQ and MI5.
This repo holds the UI Kit components. Find the guidance and content of design.sis.gov.uk
in the IC Design System guidance site repo.
We build a lot of stuff that needs to be quick-to-build, usable and always accessible. We build using a lot of different tech, so creating something that can be consistently accessible and usable across different stacks is critical for us.
The Design System is being used to build our powerful, flexible and complex capabilities that help keep the UK safe and prosperous.
📖 Read our story to learn more on why we've created our own design system.
We track many sources of accessibility expertise, as well as using our internal experts and communities. For example, many of our patterns and components are based on awesome work from the Government Digital Service (GDS) Design System. Where we can, we'll contribute back!
If you think we could improve something, please do raise an issue.
To install the components, no additional configuration is needed for internal systems. Choose a package depending on which framework you're building with:
- Install the web component package for use standalone, or with Svelte, Vue and other web component-compatible frameworks.
- Install the React component package for React-based projects.
This is a monorepo using lerna
. To get started is simple:
npm install
npm run bootstrap
npm run build
Storybook is used during development; this command will launch separate web components and React Storybooks.
npm run storybook
Developers are able to build and install components locally, enabling effective testing of apps and IC UI kit components in a local environment.
To get started make sure you are in the top-level directory of ic-ui-kit
:
npm run build
cd packages/docs
npm pack
cd ../fonts
npm pack
cd ../react
npm pack
cd ../web-components
npm pack
Alternatively, you can use the build-tar.sh
script to do the same.
In the package.json
of your project replace the value of @ukic/docs
, @ukic/fonts
, @ukic/react
and @ukic/web-components
with the full filepath to the .tgz file in each respective directory, for example:
"dependencies": {
"@ukic/docs": "../ic-ui-kit/packages/docs/ukic-docs-2.1.0-beta.17.tgz"
"@ukic/fonts": "../ic-ui-kit/packages/fonts/ukic-fonts-2.1.0-beta.17.tgz",
"@ukic/react": "../ic-ui-kit/packages/react/ukic-react-2.1.0-beta.17.tgz",
"@ukic/web-components": "../ic-ui-kit/packages/web-components/ukic-web-components-2.1.0-beta.17.tgz",
}
Finally, install the dependencies:
npm install
If you want to build the components in this repository and use them in ic-design-system
, you can use npm link
. This will speed up development because you do not have to generate a compressed npm package, but rather directly use the package after building it locally.
First, build the monorepo packages in the top-level directory of ic-ui-kit
:
npm run build
Then, to use the package, make sure you are in the top-level directory of ic-design-system
. You will need to link the generated build from ic-ui-kit
, e.g.:
npm link ../path/to/ic-ui-kit/packages/react
Note
Now you can develop and debug faster with ic-ui-kit
in ic-design-system
.
We have a couple of resources to help you with contributing.
- To find out more about the different types of contributions, the criteria, raising issues or our release roadmap, read how to contribute to the Design System and UI Kit.
- Make sure to also read our coding standards and technical instructions.
- IC Design System guidance site repository contains the code and content for the Design System guidance site.
- IC UI Kit repository contains the code and content for the web components.
If you've found a vulnerability, we want to know so that we can fix it. Our security policy tells you how to do this.
The team is only able to talk about the projects we've put on GitHub 🕵️. We unfortunately can't talk about the work of our departments 😢.
Visit our websites to learn more about:
- The Secret Intelligence Service (MI6).
- The Government Communications Headquarters (GCHQ).
- The Security Service (MI5).
Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. The documentation is and available under the terms of the Open Government License v3.0.
© Crown copyright 2022