Skip to content

Commit

Permalink
docs: add tabbed view and other updates
Browse files Browse the repository at this point in the history
- merging formatting fix from main
- add tabbed view
- remove individual pages
- content updates
  • Loading branch information
murrlipp committed Dec 23, 2024
1 parent 923c559 commit 1d316b3
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 256 deletions.
13 changes: 13 additions & 0 deletions docs/_includes/layouts/tabbed-content.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "./base.njk" %}

{% block content %}
<div class="app-layout__content">
<h1 class="govuk-heading-xl">
{% if not isIndex %}<span class="govuk-caption-xl">Components</span>{% endif %}
{{ title }}
</h1>

{{ content | safe }}

</div>
{% endblock %}
31 changes: 0 additions & 31 deletions docs/figma/about-the-figma-kits.md

This file was deleted.

18 changes: 0 additions & 18 deletions docs/figma/help-improve-the-figma-kits.md

This file was deleted.

42 changes: 0 additions & 42 deletions docs/figma/if-you-work-for-moj.md

This file was deleted.

29 changes: 0 additions & 29 deletions docs/figma/if-you-work-outside-moj.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/figma/index.md

This file was deleted.

104 changes: 0 additions & 104 deletions docs/figma/use-figma-kit.md

This file was deleted.

50 changes: 28 additions & 22 deletions docs/prototyping/use-figma-kit.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
---
layout: layouts/content.njk
layout: layouts/tabbed-content.njk
subsection: Prototyping
title: Using the Figma Kit
title: Using the Figma Kits
eleventyNavigation:
key: Using the Figma Kit
key: Using the Figma Kits
parent: Prototyping
order: 30
excerpt: "Using the MoJ Figma Kit."
excerpt: "Using the MoJ Figma Kits."
---

The [MoJ Figma Kit](https://www.figma.com/design/N2xqOFkyehXwcD9DxU1gEq/MoJ-Figma-Kit?node-id=20-17040) helps people use Figma to create designs that are consistent with one another. This guide explains how to access the Figma Kit and keep it up-to-date.
The MoJ Design System team maintains Figma Kits that help people use Figma to create designs that are consistent with one another.


[Where to find the Figma Kits](#where-to-find-the-figma-kits)
{% tabs "Contents" %}

[If you work for the Ministry of Justice](#if-you-work-for-the-ministry-of-justice)
{% tab "MoJ Staff" %}

[If you work outside of the Ministry of Justice](#if-you-work-outside-of-the-ministry-of-justice)

[Help improve the Figma Kits](#help-improve-the-figma-kits)

## Where to find the Figma Kits

The MoJ Design System team maintains 3 Figma Kits for the GOV.UK and MoJ Design Systems:

- [MoJ Figma Kit](https://www.figma.com/design/N2xqOFkyehXwcD9DxU1gEq/MoJ-Figma-Kit?node-id=20-17040)
- [GOV Figma Kit](https://www.figma.com/design/cdmqMa73kZBDEC42spSVba/GOV-Figma-Kit?m=auto&node-id=20-17040&t=ZG7js0TWe3yzv5CD-1)
- [GOV & MoJ Styles](https://www.figma.com/design/rbzFtXbYqItzqtfE3fdCQ4/GOV-%26-MoJ-Styles?m=auto&node-id=20-17040&t=u1P8phs3qyRxZ4FQ-1)
## If you work for the Ministry of Justice

3 Figma Kits are automatically added to all Figma files in the Ministry of Justice:

## If you work for the Ministry of Justice
- [MoJ Figma Kit](https://www.figma.com/design/N2xqOFkyehXwcD9DxU1gEq/MoJ-Figma-Kit?node-id=20-17040)
- [GOV Figma Kit](https://www.figma.com/design/cdmqMa73kZBDEC42spSVba/GOV-Figma-Kit?m=auto&node-id=20-17040&t=ZG7js0TWe3yzv5CD-1)
- [GOV & MoJ Styles](https://www.figma.com/design/rbzFtXbYqItzqtfE3fdCQ4/GOV-%26-MoJ-Styles?m=auto&node-id=20-17040&t=u1P8phs3qyRxZ4FQ-1)

All 3 Figma Kits are activated by default in all new Figma files. This enables Figma prototypes to benefit from centrally maintained updates.
This enables Figma prototypes to benefit from centrally maintained updates.

<div class="govuk-inset-text">
Do not use the <a href="https://www.figma.com/community/file/946837271092540314">GOV.UK Design System Figma community file</a>.<br/>It's not updated or maintained by anyone.
Expand Down Expand Up @@ -67,12 +60,18 @@ When the Figma Kits are updated, you’ll be notified in Figma. To check for upd

4. Either select the 'Update all' button, or select 'Update' for each component you want to update.

{% endtab %}

{% tab "Non-MoJ Staff" %}

## If you work outside of the Ministry of Justice

### Download and use the Figma Kits

1. Open the Figma Kit you want to download and use.
1. Open the Figma Kit you want to download and use:
- [MoJ Figma Kit](https://www.figma.com/design/N2xqOFkyehXwcD9DxU1gEq/MoJ-Figma-Kit?node-id=20-17040)
- [GOV Figma Kit](https://www.figma.com/design/cdmqMa73kZBDEC42spSVba/GOV-Figma-Kit?m=auto&node-id=20-17040&t=ZG7js0TWe3yzv5CD-1)
- [GOV & MoJ Styles](https://www.figma.com/design/rbzFtXbYqItzqtfE3fdCQ4/GOV-%26-MoJ-Styles?m=auto&node-id=20-17040&t=u1P8phs3qyRxZ4FQ-1)
2. Select the Figma logo at the top of the left-hand sidebar and go to File > Save local copy.
<p><img src="/assets/images/figma-guidance-download-kit.png" style="border:none" alt="A cropped view of the sidebar in the Figma app. The Figma logo has been selected and a menu has opened. The 'file' submenu has been opened and 'Save local copy...' is being hovered over."></p>

Expand All @@ -86,6 +85,9 @@ When the Figma Kits are updated, you’ll be notified in Figma. To check for upd
3. Reload it into your Figma workspace as a library.
4. Open your design files, and use the [swap libraries](https://help.figma.com/hc/en-us/articles/4404856784663-Swap-style-and-component-libraries) feature in Figma to replace all references to the outdated version of the MoJ Figma Kit. You can only use 'swap libraries' with a paid Figma licence. If you do not have one, [swap components](https://help.figma.com/hc/en-us/articles/360039150413-Swap-components-and-instances) individually instead.

{% endtab %}

{% tab "Help improve the Figma Kits" %}

## Help improve the Figma Kits

Expand All @@ -95,4 +97,8 @@ The MoJ Design System team would like to hear:
- if a Figma component isn't working properly
- if you find a mistake on a Figma component (for example, the wrong font weight or spacing)

You can [contact the MoJ Design System team](/help) to give us your feedback.
You can [contact the MoJ Design System team](/help) to give us your feedback.

{% endtab %}

{% endtabs %}

0 comments on commit 1d316b3

Please sign in to comment.