Customizing Bootstrap CSS template

前端 未结 9 1160
面向向阳花
面向向阳花 2020-11-22 09:03

I am just getting started with Bootstrap from Twitter and am wondering what the ‘best practices’ is for customization. I want to develop a system that will take advantage of

9条回答
  •  悲哀的现实
    2020-11-22 09:34

    you can start with this tool, https://themestr.app/theme , seeing how it overwrites the scss variables, you would get an idea what variable impacts what. its the simplest way I think.

    example scss genearation:

    @import url(https://fonts.googleapis.com/css?family=Montserrat:200,300,400,700);
    $font-family-base:Montserrat;
    @import url(https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,700);
    $headings-font-family:Open Sans;
    
    $enable-grid-classes:false;
    $primary:#222222;
    $secondary:#666666;
    $success:#333333;
    $danger:#434343;
    $info:#515151;
    $warning:#5f5f5f;
    $light:#eceeec;
    $dark:#111111;
    @import "bootstrap";
    

提交回复
热议问题