To use custom styles in Drupal 8, follow these steps:
1. Create a new custom stylesheet: Create a new stylesheet by creating a new file with the extension “.css” in your Drupal theme folder. The name of the file should be something like style-custom.css.
1. Attach the custom stylesheet to Drupal: Open the .info.yml file in your Drupal theme folder and add the following code at the end:
```
stylesheets:
– css/style-custom.css
```
This code will attach the custom stylesheet to Drupal.
1. Write your custom styles: Open the custom stylesheet you created and write your custom styles using CSS. Make sure your CSS rules are properly formatted and use appropriate selectors.
1. Clear Drupal cache: Clear the Drupal cache so that Drupal can pick up the new custom stylesheet.
Now you can preview your Drupal site and see the new styles applied.