This tutorial will guide you through the steps of adding CSS styling to a custom Drupal 10 theme.
- Start with a Drupal 10 base theme (you’ll need to rename the theme)
- Add a css folder to the theme’s folder
- Add a style.css file in the css folder
- Add a d10_custom_theme_add_css.libraries.yml file to the theme’s folder
- Add the libraries: mapping scalar and sequence to the d10_custom_theme_add_css.info.yml file
- Congratulations! You now have a custom theme with custom css.