颜色在Bootstrap自定义下载? [英] Colors in Bootstrap custom download?

查看:163
本文介绍了颜色在Bootstrap自定义下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用Bootstrap >>自定义和下载页面以生成具有自定义颜色的Bootstrap文件的版本。我想到,我想添加一些其他颜色(例如@purpleLight),以保持网站设计更容易,所以我看看网站生成的下载内容,我的自定义似乎没有任何地方,更不用说在某处为我添加其他人。
这里是在bootstrap.zip网站吐出的内容:

So I'm using the Bootstrap Customize and Download page to generate a version of the Bootstrap files with custom colors. I got the idea that I wanted to add some other colors (e.g. @purpleLight) to make upkeep of the site design easier, so I look through the downloaded contents the site generates, and my customizations don't appear to be anywhere, let alone somewhere for me to add others. Here's what comes in the bootstrap.zip the site spits out:


  • css

    • bootstrap.css

    • bootstrap.min.css


    • glyphicons-halflings.png

    • glyphicons-halflings-white.png


    • bootstrap.js

    • bootstrap.min.js

    ...就是这样。
    所以,只要我能告诉这些文件中的任何地方没有颜色。没有LESS文件包含在下载中。我做错了什么?是网站做错了什么吗?我只是看不到事实上有什么?尽管我的差异能力,下载看起来是相同的,无论我选择的自定义选项...

    ...and that's it. So, no colors anywhere in these files as far as I can tell. No LESS files included in the download. Am I doing something wrong? Is the site doing something wrong? Am I just not seeing something that is in fact there? To the best of my diffing abilities, the downloads seem identical regardless of the customization options I choose...

    并且,等待他们在这里,什么将是替代最好的方式为我自定义调色板为我的Bootstrap网站?

    And, pending whose messing up here, what would be the alternative best way for me to customize a color palette for my Bootstrap site?

    推荐答案

    您无法使用自定义下载工具添加更多LESS变量。您只能重新定义现有变量的值。下载后,该工具将编译这些设置变量,但由于您没有获得LESS文件,您将无法添加更多的变量,如你提到的@purpleLight。

    You can't add more LESS variables with the custom download tool. You can only redefine the values of the existing variables. Upon download, the tool compiles with those set variables but since you don't get the LESS files, you won't be able to add more variables afterwards, like @purpleLight you mentioned.

    如果要使用更多LESS变量来扩展Bootstrap,则必须下载完整源代码并从包含的LESS文件中编译css。在 less / 文件夹中有一个文件 variables.less ,可以添加您的@purpleLight。

    If you want to extend Bootstrap with more LESS variables, you have to download the full source and compile your css from the included LESS files. There's a file variables.less in the less/ folder where can add your @purpleLight.

    这篇关于颜色在Bootstrap自定义下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆