v l1 compatibility
This commit is contained in:
parent
a69723badf
commit
c752f56d0b
2 changed files with 3 additions and 3 deletions
|
@ -590,7 +590,7 @@ export default {
|
||||||
const shadows = input.shadows || {}
|
const shadows = input.shadows || {}
|
||||||
const fonts = input.fonts || {}
|
const fonts = input.fonts || {}
|
||||||
const colors = !input.themeEngineVersion
|
const colors = !input.themeEngineVersion
|
||||||
? colors2to3(input.colors)
|
? colors2to3(input.colors || input)
|
||||||
: input.colors || input
|
: input.colors || input
|
||||||
|
|
||||||
if (version === 0) {
|
if (version === 0) {
|
||||||
|
|
|
@ -111,7 +111,7 @@ const getCssShadowFilter = (input) => {
|
||||||
|
|
||||||
export const generateColors = (themeData) => {
|
export const generateColors = (themeData) => {
|
||||||
const sourceColors = !themeData.themeEngineVersion
|
const sourceColors = !themeData.themeEngineVersion
|
||||||
? colors2to3(themeData.colors)
|
? colors2to3(themeData.colors || themeData)
|
||||||
: themeData.colors || themeData
|
: themeData.colors || themeData
|
||||||
|
|
||||||
const isLightOnDark = convert(sourceColors.bg).hsl.l < convert(sourceColors.text).hsl.l
|
const isLightOnDark = convert(sourceColors.bg).hsl.l < convert(sourceColors.text).hsl.l
|
||||||
|
@ -285,7 +285,7 @@ export const DEFAULT_SHADOWS = {
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
export const generateShadows = (input, colors, mod) => {
|
export const generateShadows = (input, colors, mod) => {
|
||||||
const inputShadows = !input.themeEngineVersion
|
const inputShadows = input.shadows && !input.themeEngineVersion
|
||||||
? shadows2to3(input.shadows)
|
? shadows2to3(input.shadows)
|
||||||
: input.shadows || {}
|
: input.shadows || {}
|
||||||
const shadows = Object.entries({
|
const shadows = Object.entries({
|
||||||
|
|
Loading…
Reference in a new issue