Sto provando l'uso dei CSS in un modulo personalizzato.
Ho letto vari articoli su Drupal.org e fatto ricerche.
Ho seguito le indicazioni ma non mi funziona.
Di seguito quello che ho fatto
In module/custom/udf oltre ai vari file ho scritto il file udf.libraries.yml

udf:
  version: 1.x
  css:
    base:
      css/udf.css: {}

In module/custom/udf creata cartella css ed al suo interno scritto il file udf.css

h1 {
  color: red;
  text-align: center;
}

p {
  color: green;
  text-align: center;
}

#linkHomePage {
  color: orange;
  text-align: center;
}

Nella cartella controller ho il file HomeController.php

<?php

/**
* @return
* Contains \Drupal\udf\Controller\FirstPageController.
*/

namespace Drupal\udf\Controller;

use Drupal\Core\Controller\ControllerBase;


/**
* Provides route responses for the DrupalBook module.
*/
class HomeController extends ControllerBase {

  /**
   * Returns a simple page.
   *
   * @return array
   *   A simple renderable array.
   */
  public function content() {
    $Pagina = '<center>' .
                '<h1>PROVA</h1>' .
                '<p>&nbsp;</p>' .
                '<hr />' .
                '<p>&nbsp;</p>' .
                "<p>Procedure&nbsp; &nbsp; utilizzabili&nbsp; &nbsp;dall'Utente</p>" .
                  '<p><em><strong><a href="/prova">Prova</a></strong></em></p>' .
              '</center>'  ;


    return [
      '#type' => 'markup',
      '#markup' => $this->t( $Pagina ),
    ];
  }

}Non ho capito se devo caricare il css e dove

Gaetano