SAP Spartacus 自定义 theme 实现思路
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus 自定义 theme 实现思路
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
StackOverflow 討論
一個例子。
/* You can add global styles to this file, and also import other style files */$styleVersion: 3.2;// change theme-colors here $primary: #38a8ae !default; $secondary: #148181 !default; $success: #5dac06 !default; $danger: #e51f34 !default; $warning: #ffc107 !default; $info: #17a2b8 !default; $light: #d3d6db !default; $dark: #161C23 !default; $background: #f4f4f4 !default; $inverse: #ffffff !default; $text: #000000 !default; $transparent: transparent !default; $visual-focus: #6d9df7 !default; $background-focus: rgba(80, 176, 244, 0.1);$theme-colors: ('primary': $primary,'secondary': $secondary,'success': $success,'danger': $danger,'warning': $warning,'info': $info,'light': $light,'dark': $dark,'background': $background,'inverse': $inverse,'text': $text,'transparent': $transparent,'visual-focus': $visual-focus,'background-focus': $background-focus, );@import '~@spartacus/styles/index';需要添加變量 $theme-colors,賦以自定義顏色值。
I needed to add the variable with the updated colours.
總結
以上是生活随笔為你收集整理的SAP Spartacus 自定义 theme 实现思路的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 天龙八部手游玩什么职业(《新天龙八部》)
- 下一篇: 梦见出家人是什么意思 梦到出家人是什么预