EN, Change language
Englishالعربية
Criterion 6 · FoundationsMachine-measured

Ensure usage of approved icons as per the Unified Design System (Code of Platforms)

Icons come from the Platforms Code library without substitution and without changes to size or colour, and the alert palette is reserved for alerts. An icon coloured like a warning because it suits a section teaches users to ignore the colour when it means one. In practice the library draws icons at 12, 14, 16, 20 and 24px, with 32, 40 and 56px reserved for the featured style; the Hugeicons naming pattern is what identifies the approved library, since the official icon file itself is currently an empty placeholder.

It is one of the primary criteria in the foundations group of the Saudi Platforms Code, issued by the Digital Government Authority.

How xfix gov measures this criterion

The applied value is read from the page and compared with the value approved in the Platforms Code, so the verdict comes from a measurement rather than an estimate, and the observed and expected values are attached together. For this criterion each icon’s library is identified from its class names and font, its size and colour are measured, and the container of icons larger than 24 pixels is checked. Requesting approval for a missing icon stays with your team.

The official text and its checkpoints

This criterion rests on 4 checkpoints published in the Platforms Code, and they are the reference when judging it.

This criterion on the official Platforms Code site

The checkpoints, one by one

Each checkpoint below has its own answer: what it requires, what passes and what fails, how it is measured or verified, and how it is repaired. Each has a direct link.

  1. The icon library, without substitution or resizing and recolouring

    Machine-measuredDGA-006-a

    This checkpoint requires icons from the two sources the Platforms Code names, its own icon library and the Hugeicons library, without replacing them with another set and without changing their size or colour. A set from any other source is the deviation, even when it resembles the original.

    xfix gov measures this checkpoint automatically, and attaches the observed value and the expected value together.

    What passes: Every icon on the page comes from the Platforms Code library or Hugeicons, at the library’s sizes and colours.

    What fails: An icon set from another source, such as Font Awesome, covering the page, or a library icon recoloured to suit one section.

    How it is measured or verified: Each icon’s library is identified from its class names and font (hgi-* for Hugeicons), and its drawn size is compared with the library’s sizes. An inline SVG icon whose source cannot be read from the markup is not judged.

    How it is repaired: Replace the external set with library icons, and return modified sizes and colours to their approved variables.

  2. Icon colour: the alert palette for alerts only

    Machine-measuredDGA-006-b

    This checkpoint separates two uses of an icon: an alert use that takes the approved success, error, warning and information colours exclusively, and a general use for categorising content that takes neutral or primary colours. Using an alert colour for anything but an alert is forbidden.

    xfix gov measures this checkpoint automatically, and attaches the observed value and the expected value together.

    What passes: The error icon is red inside an error message and nowhere else, and category icons are grey or green.

    What fails: A section icon in the warning colour because it suits the section visually, which teaches users to ignore the colour when it means a real warning.

    How it is measured or verified: The icon’s colour is matched against the status colours (error, warning, success and information), and whether it sits in a message or alert is checked, separating alert context from categorising context.

    How it is repaired: Confine alert colours to notifications and status messages, and move category icons to the neutral or primary colour.

  3. The Featured icon above 24 pixels

    Machine-measuredDGA-006-c

    This checkpoint requires the Featured icon component whenever an icon larger than 24 pixels is needed, rather than enlarging the ordinary icon. Changing the Featured icon’s own variant colours and sizes is likewise forbidden.

    xfix gov measures this checkpoint automatically, and attaches the observed value and the expected value together.

    What passes: Every icon above 24 pixels is called as a Featured icon with its approved variants.

    What fails: An ordinary icon scaled to 48 pixels in a features section, where its edges coarsen and it falls out of the Featured icon’s visual system.

    How it is measured or verified: Observed icon sizes are measured, and an icon larger than 24 pixels is checked for a coloured square or round container like the Featured icon’s.

    How it is repaired: Replace enlarged icons with the Featured icon component from the library, without modifying its variants.

  4. Requesting approval for an icon the library lacks

    Verified by your teamDGA-006-d

    This checkpoint requires an icon the library does not carry to be designed to the Platforms Code icon guidance and submitted for approval through the channel the official reference points to. A gap in the library does not license importing an external set.

    This checkpoint is not measured automatically: judging it needs interaction with the page, and crawl ethics forbid interacting with an entity’s platform.

    What passes: One or two icons designed to the library’s guidance for a need it does not cover, with an approval request submitted.

    What fails: Importing a whole external set on the strength of one missing icon.

    How it is measured or verified: Whether a request exists and its status are outside what can be measured from a public page, so this checkpoint is verified by the entity’s own team.

    How it is repaired: Design what is missing to the library’s guidance and submit the approval request; return everything else to library icons.

Related criteria

xfix gov is an independent tool, not part of the Digital Government Authority, and what it produces is an indicative estimate, not the Platforms Code Application Certificate. The limits of this tool.

Icons: Platforms Code criterion 6 | xfix