I added bootstrap 4 to my site, but it overwrites many magento 2 core css.
So I added a new file THEME\web\css\bootstrap.less where I try to fix these problems, and added it to my THEME\Magento_Theme\layout\default_head_blocks.xml.
THEME\web\css\bootstrap.less:
body {
font-family: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif !important;
font-size: @font-size__base;
line-height: 1.42857143;
}
.nav { display: block; }
But if I compile then I get NameError: variable @font-size__base is undefined in pub/static/frontend/company/fresh/de_DE/css/bootstrap.less on line 3, column 16:, because I am using the variable @font-size__base
which is defined in lib\web\css\source\lib\variables\_typography.less
How can I use magento less core variables in my custom css file?
My theme inherits from magento luma.