twitter-bootstrap – 用于rails app的Bootstrap 4 hex颜色

栏目: Ruby · 发布时间: 6年前

内容简介:我的问题是我试图将我网站上的一些颜色与引导4“bg-primary”,“btn-primary”等颜色相匹配.翻译自:https://stackoverflow.com/questions/47702879/bootstrap-4-hex-colors-for-rails-app

我的问题是我试图将我网站上的一些颜色与引导4“bg-primary”,“btn-primary”等颜色相匹配.

获取Bootstrap中使用的默认值的最简单方法是检查源中的scss变量.由于该软件包可以从Github公开获得,因此即使不安装它也可以执行此操作.变量在

bootstrap/scss/_variables.scss

文件中设置.

默认颜色如下:

// Colors
$blue:    #007bff !default; // primary
$indigo:  #6610f2 !default;
$purple:  #6f42c1 !default;
$pink:    #e83e8c !default;
$red:     #dc3545 !default; // danger
$orange:  #fd7e14 !default;
$yellow:  #ffc107 !default; // warning
$green:   #28a745 !default; // success
$teal:    #20c997 !default;
$cyan:    #17a2b8 !default; // info

// Grays
$white:    #fff !default;
$gray-100: #f8f9fa !default; // light
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #868e96 !default; // secondary
$gray-700: #495057 !default;
$gray-800: #343a40 !default; // dark
$gray-900: #212529 !default;
$black:    #000 !default;

翻译自:https://stackoverflow.com/questions/47702879/bootstrap-4-hex-colors-for-rails-app


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Getting Started with C++ Audio Programming for Game Development

Getting Started with C++ Audio Programming for Game Development

David Gouveia

Written specifically to help C++ developers add audio to their games from scratch, this book gives a clear introduction to the concepts and practical application of audio programming using the FMOD li......一起来看看 《Getting Started with C++ Audio Programming for Game Development》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具