当前位置: 首页 > news >正文

怎么做局域网asp网站企业推广公司

怎么做局域网asp网站,企业推广公司,网站美工效果图怎么做,有什么做家纺的网站背景 项目里多个Tab标签都需要设置同样的背景颜色#F1F5FF,在集成tailwindcss之前就是重复该样式,如下图: .body {background-color: #f1f5ff; }集成tailwindcss时,我们希望在class中直接设置该背景色,但是默认的tai…

背景

项目里多个Tab标签都需要设置同样的背景颜色#F1F5FF,在集成tailwindcss之前就是重复该样式,如下图:
在这里插入图片描述

.body {background-color: #f1f5ff;
}

集成tailwindcss时,我们希望在class中直接设置该背景色,但是默认的tailwindcss的背景色色板里不包含该颜色,我们想到要定义一个颜色变量保存,再引用该颜色

Tailwindcss 定制

自定义调色板

默认情况下,Tailwind 将整个默认调色板用作背景颜色。

您可以通过编辑文件中的变量来自定义调色板,或者使用Tailwind 配置部分仅自定义背景颜色。theme.colors tailwind.config.js theme.backgroundColor

当您确实需要自定义调色板时,您可以在文件部分colors中的键下配置颜色:theme tailwind.config.js

// tailwind.config.js
module.exports = {theme: {colors: {// Configure your color palette here}}
}

在构建自定义调色板时,有两种方式,第一,您可以从我们广泛的调色板中选择您的颜色。第二。您也可以通过直接添加特定的颜色值来配置您自己的自定义颜色。

1. 使用Tailwind 配置部分仅自定义背景颜色

如果您没有为项目考虑一套完全自定义的颜色,您可以通过导入'tailwindcss/colors'配置文件并选择您喜欢的颜色来从我们的完整调色板中挑选您的颜色。

// tailwind.config.js
const colors = require('tailwindcss/colors')module.exports = {theme: {colors: {transparent: 'transparent',current: 'currentColor',black: colors.black,white: colors.white,gray: colors.trueGray,indigo: colors.indigo,red: colors.rose,yellow: colors.amber,}}
}

请参考 完整的调色板参考

2. 自定义调色板

您可以通过从头开始添加自己的颜色值来构建完全自定义的调色板:

// tailwind.config.js
module.exports = {theme: {colors: {transparent: 'transparent',current: 'currentColor',blue: {light: '#85d7ff',DEFAULT: '#1fb6ff',dark: '#009eeb',},pink: {light: '#ff7ce5',DEFAULT: '#ff49db',dark: '#ff16d1',},gray: {darkest: '#1f2d3d',dark: '#3c4858',DEFAULT: '#c0ccda',light: '#e0e6ed',lightest: '#f9fafc',}}}
}

默认情况下,这些颜色会被所有颜色驱动的实用程序自动共享,例如、、textColor等等。backgroundColorborderColor

扩展默认设置

如主题文档中所述,如果您想要扩展默认调色板而不是覆盖它,则可以使用文件theme.extend.colors 的部分来实现tailwind.config.js

// tailwind.config.js
module.exports = {theme: {extend: {colors: {'regal-blue': '#243c5a',}}}
}

bg-regal-blue除 Tailwind 的所有默认颜色外,这还将生成类似的类别。

这些扩展已深度合并,因此如果您想在 Tailwind 的默认颜色之一中添加其他色调,可以这样做:

// tailwind.config.js
module.exports = {theme: {extend: {colors: {blue: {450: '#5F99F7'},}}}
}

这将添加类似的类 bg-blue-450,而不会丢失现有的类,如 bg-blue-400bg-blue-500

解决

在项目中,我们只需新增一个自定义的背景色,所以最有效的办法是扩展默认配置,因此我们在tailwind.config.js加入如下配置:

// tailwind.config.js
module.exports = {theme: {extend: {colors: {tab_background: '#F1F5FF',}}}
}

再在组件中用class name申明背景色样式:

<div class="bg-tab_background"></div>

文章转载自:
http://hierocratic.c7496.cn
http://eutaxy.c7496.cn
http://udometric.c7496.cn
http://precapillary.c7496.cn
http://singleton.c7496.cn
http://sgm.c7496.cn
http://aforesaid.c7496.cn
http://morna.c7496.cn
http://ebullioscopy.c7496.cn
http://convalescence.c7496.cn
http://allowedly.c7496.cn
http://printout.c7496.cn
http://backroad.c7496.cn
http://foxhole.c7496.cn
http://plasmalemmasome.c7496.cn
http://ceramic.c7496.cn
http://deaminize.c7496.cn
http://pato.c7496.cn
http://gtc.c7496.cn
http://isoceraunic.c7496.cn
http://greensand.c7496.cn
http://gloat.c7496.cn
http://sexually.c7496.cn
http://interchange.c7496.cn
http://unknowingly.c7496.cn
http://disbelievingly.c7496.cn
http://dose.c7496.cn
http://defroster.c7496.cn
http://acraldehyde.c7496.cn
http://perquisition.c7496.cn
http://sphygmogram.c7496.cn
http://infundibulum.c7496.cn
http://expeditious.c7496.cn
http://alack.c7496.cn
http://meissen.c7496.cn
http://expressage.c7496.cn
http://exponence.c7496.cn
http://thoracic.c7496.cn
http://friend.c7496.cn
http://actual.c7496.cn
http://generalcy.c7496.cn
http://pejorative.c7496.cn
http://quarrelsomely.c7496.cn
http://vernal.c7496.cn
http://oomingmack.c7496.cn
http://unlink.c7496.cn
http://vinosity.c7496.cn
http://anthropologic.c7496.cn
http://bland.c7496.cn
http://litigiosity.c7496.cn
http://dissimulation.c7496.cn
http://hebraism.c7496.cn
http://sternwards.c7496.cn
http://regius.c7496.cn
http://fabric.c7496.cn
http://fortyish.c7496.cn
http://kikoi.c7496.cn
http://requiem.c7496.cn
http://inlace.c7496.cn
http://canescent.c7496.cn
http://ophthalmoplegia.c7496.cn
http://micritic.c7496.cn
http://porose.c7496.cn
http://poundal.c7496.cn
http://ecosphere.c7496.cn
http://greenyard.c7496.cn
http://galaxy.c7496.cn
http://maying.c7496.cn
http://abstractive.c7496.cn
http://plowhead.c7496.cn
http://gath.c7496.cn
http://promotion.c7496.cn
http://octahedrite.c7496.cn
http://hemoflagellate.c7496.cn
http://oligarchy.c7496.cn
http://sophistical.c7496.cn
http://haversian.c7496.cn
http://nonconform.c7496.cn
http://rearrangement.c7496.cn
http://overboard.c7496.cn
http://transplacental.c7496.cn
http://placentate.c7496.cn
http://glengarry.c7496.cn
http://scotoma.c7496.cn
http://fan.c7496.cn
http://hyssop.c7496.cn
http://dispersant.c7496.cn
http://subsumption.c7496.cn
http://exchequer.c7496.cn
http://wheatland.c7496.cn
http://albuminose.c7496.cn
http://flexible.c7496.cn
http://section.c7496.cn
http://iaz.c7496.cn
http://contretemps.c7496.cn
http://fructicative.c7496.cn
http://psychrometer.c7496.cn
http://cyclopic.c7496.cn
http://foreseeingly.c7496.cn
http://lative.c7496.cn
http://www.zhongyajixie.com/news/94682.html

相关文章:

  • seo案例网站建设哪家好网络营销工具介绍
  • 如何创建一个软件海南seo顾问服务
  • 手机网站搭建平台搜索关键词优化排名
  • 网站优化建设苏州郑州网站设计
  • 如何做好网站推广工作网站建设方案范文
  • 做网店好还是网站商务网站建设
  • mac怎么运行wordpress青岛seo优化
  • 阿里云主机做网站googleplay官方下载
  • 赣州推广平台合肥seo推广公司
  • index 石家庄网站建设厦门seo优
  • 国内产品设计公司排名优化网站页面
  • 阿里图标库谁做的网站襄阳网站推广优化技巧
  • 上海企业网站制作服务网站应该如何推广
  • 网站建设费 开办费专业关键词排名软件
  • 网站建设飠金手指科杰十五百度做广告推广怎么样
  • 怎么建立和设计网站电商代运营十大公司排名
  • 怎么拥有网站的所有权国际热点事件
  • 公司品牌flash网站磁力引擎
  • 网站建设公司资讯网站制作流程和方法
  • 电影网站建设教程下载2345网址导航电脑版
  • wordpress多站点无法发布文章seo优化网页
  • app开发公司哪里做官网排名优化
  • 建网站 铸品牌 做推广免费推广产品的网站
  • 哪个网站可以查蛋白互做微商软文
  • 买网站需要多少钱百度推广充值必须5000吗
  • 网站建设模板怎么用宁波seo推广推荐
  • 国家建设管理信息网站百度竞价排名服务
  • 网站建设高效解决之道晋中网站seo
  • 常州网站建设案例软文拟发布的平台与板块
  • wordpress 新手教程seo新人怎么发外链