> For the complete documentation index, see [llms.txt](https://promet-source.gitbook.io/provus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://promet-source.gitbook.io/provus/getting-started/theming/create-subtheme-manually.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
