Using custom bootstrap.min.css


I try to use a custom bootstrap.css file instead of the original. I love this cyborgbootstrap.

So I have decided I will replace the original bootstrap with this.

I created a frontend/web/css/dark.bootstrap.min.css file. This file contains this css codes.

I have seen some stackoverflow question and answer about it. So I tried some, but I do not have luck.

I added this in the frontend/config/main.php:

'components' => [

        'assetManager' => [

            'bundles' => [

                'yii\bootstrap\BootstrapAsset' => [

                    'css' => [

                        'bootstrap.css' => 'dark.bootstrap.min.css'







But this throws the following error:

Request URL:

Request Method:GET

Status Code:404 Not Found

Does somebody know how can I replace the original bootstrap with this cyborg bootstrap file?

Simply download a CSS file (from and replace the one in Bootstrap css file.

This solution has a big disadvantage. If the asset regenerate then I have to replace again the file.