forked from AkkomaGang/akkoma-fe
fixed another problem with p's broken theme causing theme editor to
become unusable
This commit is contained in:
parent
8a590f9269
commit
4baa397ed0
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ export const colors2to3 = (colors) => {
|
||||||
*/
|
*/
|
||||||
export const shadows2to3 = (shadows, opacity) => {
|
export const shadows2to3 = (shadows, opacity) => {
|
||||||
return Object.entries(shadows).reduce((shadowsAcc, [slotName, shadowDefs]) => {
|
return Object.entries(shadows).reduce((shadowsAcc, [slotName, shadowDefs]) => {
|
||||||
const isDynamic = ({ color }) => color.startsWith('--')
|
const isDynamic = ({ color = '#000000' }) => color.startsWith('--')
|
||||||
const getOpacity = ({ color }) => opacity[getOpacitySlot(color.substring(2).split(',')[0])]
|
const getOpacity = ({ color }) => opacity[getOpacitySlot(color.substring(2).split(',')[0])]
|
||||||
const newShadow = shadowDefs.reduce((shadowAcc, def) => [
|
const newShadow = shadowDefs.reduce((shadowAcc, def) => [
|
||||||
...shadowAcc,
|
...shadowAcc,
|
||||||
|
|
Loading…
Reference in a new issue