Skip to main content

These components are for prototyping the GOV.UK app, not for use in production.

<govuk-app-number-plate>

Number plate

Shows a vehicle's registration number as it looks on the vehicle: on a yellow number plate, in the DVLA's own typeface. Small on a vehicle's card, large on its detail screen. A white front plate, blank, stands for any vehicle, such as on a search for one.

GOV.UK app component

The typeface

Plates are drawn in DVLA-VRM, the app’s own typeface, copied unchanged from the iOS app. It’s copyright Myles Stevens and licensed under the SIL Open Font License 1.1, with “DVLA - VRM” as a Reserved Font Name. The licence is in DVLA-VRM-OFL.txt, beside the font, and must stay with it. It allows the font to be shared with software, but not changed and keep its name, so it isn’t converted or subsetted.

Examples

Small

AB71 CDE AB71 CDE

HTML

<govuk-app-number-plate>AB71 CDE</govuk-app-number-plate>

Large

AB71 CDE AB71 CDE

HTML

<govuk-app-number-plate size="large">AB71 CDE</govuk-app-number-plate>

Front, blank, as on a vehicle search

ABC ABC

HTML

<govuk-app-number-plate variant="front">ABC</govuk-app-number-plate>

Inputs

Attributes
Attribute Type Default Description
size "small" | "large" small small, as on a vehicle's card, growing with the text size; large, as on a vehicle's detail screen.
variant "rear" | "front" rear rear: yellow, as the app shows a vehicle's registration. front: white, with a thicker stroke, as the app draws the blank ABC plate on its vehicle search.

Content

The registration number, as it's written on the plate, such as AB71 CDE.

Outputs

None.

Rules

  • Use it only for a vehicle's registration number.
  • Write the registration as it's shown on the plate, in capitals, with its space, such as AB71 CDE.
  • Use small beside a vehicle's name, such as on its card, and large on its own on the vehicle's detail screen.
  • Use the rear plate for a vehicle's registration. Use the front plate for a blank one, ABC, that stands for any vehicle, such as on a search for one.

When not to use it

When Use instead
For any other number or reference, such as a driving licence number govuk-app-grouped-list-row type="information"
For the user to type in a registration govuk-app-search-box
For a vehicle's other facts, such as its year or fuel govuk-app-labelled-icon

Sources

The iOS, Android and Figma sources it was built from
  • iOS: button, the blank front plate in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/VehicleCheckSectionView.swift at 8f1fe5da
  • iOS: headerView, the small plate in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/VehicleSummaryView.swift at 8f1fe5da
  • iOS: the large plate in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/VehicleDetailView.swift at 8f1fe5da
  • iOS: vehicleRegistrationMarkBody, vehicleRegistrationMarkExtraLarge in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Extensions/GovKit/GOVUKFontBuilder+DVLA.swift at 8f1fe5da
  • iOS: DVLA-VRM, the typeface in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Resources/Fonts/DVLA-VRM.ttf at 8f1fe5da
  • Figma: none linked yet
  • The app prototyping system's number plate, which this follows (app-prototyping-system, exploration-2/components/number-plate)
  • SIL Open Font License 1.1, the typeface's licence

In the app

Screenshots of the app's own component, to compare the examples with

iOS

iOS app: Small, on a vehicle's card
Small, on a vehicle's card
iOS app: Large, on a vehicle's detail screen, cut off by the screenshot's edge
Large, on a vehicle's detail screen, cut off by the screenshot's edge
iOS app: Front, blank, on the vehicle search, in light mode
Front, blank, on the vehicle search, in light mode
iOS app: The same, in dark mode
The same, in dark mode