# Create subtheme manually

Copy the `provus_bootstrap` folder on your `/themes/custom` directory.

Rename the `provus_bootstrap` folder to your custom theme name, for example `yourname`

Rename the following files from `provus_bootstrap` to `yourname`:\
`provus_bootstrap.theme` to `yourname.theme`\
`provus_bootstrap.info.yml` to `yourname.info.yml`\
`provus_bootstrap.libraries.yml`to `yourname.libraries.yml`\
`/config/install/provus_bootstrap.settings.yml`to `/config/install/yourname.settings.yml`\
`/config/schema/provus_bootstrap.schema.yml`to `/config/schema/yourname.schema.yml`

**Edit the file yourname.info.yml**

```php
name: YourName
type: theme
description: 'Your Description.'
version: VERSION
core: 8.x
base theme: bootstrap_barrio
libraries:
- yourname/global-styling
```

Make sure that `yourname/bootstrap_cdn` is the [Bootstrap library you want](https://www.drupal.org/docs/8/themes/barrio-bootstrap-4-drupal-89-theme/bootstrap-libraries-load) (CDN or local).

**Delete the following:**

```php
# Text here
version: '8.x-4.17'
core: '8.x'
project: 'bootstrap_barrio'
datestamp: 1533828192
```

**Edit /config/schema/yourname.schema.yml**

```php
# Schema for the configuration files of the Bootstrap Barrio Subtheme.

yourname.settings:
type: theme_settings
label: 'Yourname settings'
```

**Edit yourname.theme**

Rename the function from:

`function provus_bootstrap_form_system_theme_settings_alter(&$form, FormStateInterface $form_state)`

to:

`function yourname_form_system_theme_settings_alter(&$form, FormStateInterface $form_state)`

For a complete explanation on how to write sub-themes on Drupal 8 please refer to the [Creating a Drupal 8 sub-theme Guide](https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-theme-or-sub-theme-of-sub-theme)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://promet-source.gitbook.io/provus/getting-started/theming/create-subtheme-manually.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
