Next.js developer in Milan

Next.js for businesses in Milan, delivered remotely by one developer.

Next.js developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.
  • Local WordPress meetup: WordPress Meetup Milano

My WordPress.org profile

Italian public websites follow published design rules, and a tool exists that measures a built site against them. That makes the Designers Italia material unusual for a front-end developer: it reads like a test plan. I am Mariusz Szatkowski, a developer based in Gdynia, and the work is done remotely. This page covers what the official documentation asks of the code, and where a Next.js app has to take care. I am not a lawyer. Procurement and funding questions belong with the contracting authority.

Piazza Gae Aulenti and the Porta Nuova district in Milan

Buildings on Piazza Gae Aulenti, Porta Nuova, Milan. Image by DaveM93 under CC BY-SA 3.0 from Wikimedia Commons.

#What is Designers Italia?

Designers Italia describes itself as the reference point for designing digital services of the Italian public administration. Its site is organised around legal references, models, a design system, design resources, training and a community. Its guidelines page lists the Linee guida di design for websites and digital services of the public administration, the accessibility guidelines and the Manuale operativo di design.

The Linee guida di design were issued under article 53, paragraph 1 ter of the Codice dell’amministrazione digitale, the provision on websites of public administrations. They came out of joint work by AGID and the Dipartimento per la trasformazione digitale, with a public consultation and talks with the Conferenza Unificata and ANCI. The page was last updated on 8 October 2025. Its requirement chapters cover accessibility, reliability and security, ease of use, service monitoring, the user interface, integration of enabling platforms, licences and implementation.

#What does the Comuni model contain?

The model for municipal websites bundles an information architecture document, 90 HTML templates, 2 CMS themes, 26 supported services, 2 component libraries and 21 prototypes. The page states a CC BY-SA 4.0 licence. The technical documentation, a separate book on Docs Italia, adds the font rules, high-definition mockups, a guide to migrating content and WordPress and Drupal themes. Its table of contents covers page types, homepage, list and topic pages, the service information sheet (“scheda informativa di servizio”) and the “Amministrazione trasparente” section.

#Which rules are binding for a municipal site?

Two layers are easy to confuse:

  • The Linee guida di design apply to digital services of the public administration in general.
  • The conformity criteria with identifiers starting C.SI belong to the Comuni model. The documentation says meeting them is necessary to join measure 1.4.1 of the PNRR, “Esperienza del cittadino nei servizi pubblici”, and to obtain its incentives.

The criteria are grouped as user experience, functions, regulation, performance and security. The rest of this page follows those that touch front-end code. The wording quoted comes from the documentation, which is Italian; the translations are mine.

#Can a Next.js app use Bootstrap Italia?

The design system’s developer page names Bootstrap Italia 2 as the current version and the official resource of the design system. It also lists Bootstrap Italia 3 in beta, with design tokens as CSS custom properties, a React Kit and an Angular Kit described as community driven, and Dev Kit Italia, a beta set of web components built with Lit on Bootstrap Italia 3. The system page shows the version number 1.14.0.

Criterion C.SI.1.2 says what the municipal site must do:

  • Use Bootstrap Italia on every page, in version 2.0 or later.
  • Load the library in the <head> of the pages.
  • Use its visual foundations, at least grids, spacing and typography.
  • Use only components from the library where they exist. The documentation gives the example of forms: a form must use the form components of the library.

The evaluation app verifies it by looking for the CSS property --bootstrap-italia-version in the :root selector, or for the global variable window.BOOTSTRAP_ITALIA_VERSION. It also checks that at least 30 percent of the unique CSS classes found on a page belong to Bootstrap Italia.

Next.js can import a package stylesheet anywhere in the app directory, as its CSS documentation says for external stylesheets, and the usual place is the root layout. Two caveats come from the sources. The Next.js CSS page notes that production builds merge and chunk stylesheets and that the order follows the order of imports, so check the final HTML of a production build. The React Kit README targets Bootstrap Italia 2.x, says it does not ship CSS or fonts, and does not mention server-side rendering or Next.js. I would not promise that any combination passes. The route is to build, run the evaluation app against the build and read the report.

#Which fonts do the criteria require?

Criterion C.SI.1.1 requires that all headings and all paragraphs of the Italian-language pages use only Titillium Web, Lora or Roboto Mono as the default font. A single non-conforming heading or paragraph fails the criterion, with a lower tolerance level if other fonts appear only inside elements. The evaluation app checks the headings and paragraphs of the homepage, first, second and third-level pages and the login page, through specific data attributes.

For fonts, Next.js has an answer in its own documentation: next/font downloads Google fonts at build time and self-hosts them with the rest of the static assets, so the browser sends no request to Google. Two details matter here. Multi-word names are imported with an underscore, so Roboto Mono becomes Roboto_Mono. And a font that is not variable needs an explicit weight. According to the Google Fonts metadata, Lora and Roboto Mono are variable fonts, while Titillium Web is not and comes in weights 200, 300, 400, 600, 700 and 900.

// app/fonts.ts
import { Titillium_Web, Lora, Roboto_Mono } from 'next/font/google'

export const titillium = Titillium_Web({
  weight: ['400', '600', '700'],
  subsets: ['latin', 'latin-ext'],
  variable: '--font-titillium',
})

export const lora = Lora({
  subsets: ['latin'],
  variable: '--font-lora',
})

export const robotoMono = Roboto_Mono({
  subsets: ['latin'],
  variable: '--font-roboto-mono',
})

The documentation scopes a font to the component it is used in and says to add it to the root layout to apply it to the whole app. Applying the variable classes to the <html> element and setting font-family on headings and paragraphs from a global stylesheet is the CSS-variable method the docs describe.

#What are data-element attributes for?

The evaluation app finds things by data attributes, and this is where front-end code has to cooperate. Its documentation lists the attributes per criterion. For the main navigation, the first-level links in the menu need these values: management for “Amministrazione”, news for “Novità”, all-services for “Servizi”, and live for “Vivere il Comune”. If one of them is missing, the audit cannot run, because the app cannot recover the link. Category pages carry values such as management-category-link, news-category-link and service-category-link on their landing links, and service sheets are reached through service-link.

In JSX that is plain markup:

// app/ui/main-navigation.tsx
import Link from 'next/link'

export function MainNavigation() {
  return (
    <ul data-element="main-navigation">
      <li><Link href="/amministrazione" data-element="management">Amministrazione</Link></li>
      <li><Link href="/novita" data-element="news">Novità</Link></li>
      <li><Link href="/servizi" data-element="all-services">Servizi</Link></li>
      <li><Link href="/vivere-il-comune" data-element="live">Vivere il Comune</Link></li>
    </ul>
  )
}

Confirm in the rendered HTML that each attribute reaches the anchor. Criterion C.SI.1.6 constrains the same menu: the mandatory first-level entries “Amministrazione”, “Novità”, “Servizi” and “Vivere il Comune” (or “Vivere” followed by the municipality name) in that order, with no extra entries in the success case, and page titles matching the breadcrumbs.

Three criteria shape the runtime behaviour:

  • Cookies, C.SI.3.1. Cookies present on a page before any preference has been expressed must carry the domain of the municipal website. The evaluation app checks this on the homepage, the login page, the appointment booking page and sampled pages of each level. The criterion cites the Garante’s cookie guidelines of 10 June 2021. In practice a third-party tag that sets its own cookie has to wait for a choice.
  • Performance, C.SI.4.1. Every page should reach a Lighthouse mobile performance score of at least 50. If every page scores below 50, the municipality must publish a “Piano di miglioramento del sito”, reachable from the footer, naming for each failed metric the planned actions and timing. The six metrics are First Contentful Paint, Speed Index, Largest Contentful Paint, Time to Interactive, Total Blocking Time and Cumulative Layout Shift. The evaluation app tests the homepage in mobile mode.
  • Security, C.SI.5.1 and C.SI.5.2. All pages use HTTPS with a valid certificate that meets the AgID TLS recommendations. The site lives on a “comune.” subdomain of an approved domain, for example the documentation’s own example of comune.anzio.rm.it, and is reachable without “www”.

Two further criteria are content-led but need front-end work: C.SI.3.2 asks for a link in the footer to an accessibility declaration that follows AgID’s model and WCAG 2.1, and C.SI.3.4 asks for the open-licence statement on the legal notes page.

#What does the evaluation app check?

The App di valutazione dell’adesione ai modelli is a desktop application for Windows, macOS and Linux, based on Lighthouse and Puppeteer. According to its documentation it helps developers verify requirements during and after development, and it also supports the Dipartimento per la trasformazione digitale in assessing sites for the funds of measure 1.4.1, together with manual and semi-automatic checks. It is marked beta.

For a delivery workflow that means the criteria are testable in CI-like fashion: run the app against a staging build, keep the report with the release, and fix criterion by criterion. The report shows the app’s reading; the formal assessment is the contracting authority’s.

#Is the model only for municipalities?

The model pages exist for municipalities, schools, civic museums and local health authorities, and the Designers Italia site groups them under “Modelli”. The C.SI criteria I describe are those of the Comuni model. A different body may be bound by other documents. If your client is a public body other than a municipality, ask which model and which criteria its tender names before writing any code.

#How does a project run?

  1. You send the tender or model documents, the target domain, and the current stack if there is one. Within 24 hours on working days, an email reply comes back with questions or a plan.
  2. I list the criteria that apply and mark the ones the front end owns: fonts, Bootstrap Italia, data attributes, cookies, performance and footer links.
  3. I build on a staging deployment and run the evaluation app against it, then send you the report next to my notes.
  4. The release follows once you confirm the staging build by email. Design comes from your side or from me, as agreed in advance.

What I do in Next.js beyond this topic is on the Next.js developer page.

#Write to me about your tender

If your Milan agency or in-house team has an Italian public-sector tender with a Next.js front end, put the model documents and the target domain into a message through the contact form. The opening estimate, written, carries no fee. Whether the build counts as compliant stays with the authority that assesses it.

Need this service: Next.js developer in Milan?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Explore other WordPress services and knowledge base