Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Configuration = ({ previewBox, activeLightSource = 1 }) => {
const { maxSize, size } = getSizes()
setMaxSize(maxSize)
setSize(size)
}, [])
}, [color])

useEffect(() => {
if (!isValidColor(color)) {
Expand Down Expand Up @@ -173,7 +173,19 @@ background: ${background};
box-shadow: ${firstBoxShadow},
${secondBoxShadow}`
)
})
}, [
color,
colorDifference,
gradient,
shape,
activeLightSource,
blur,
size,
radius,
maxRadius,
distance,
previewBox
])
return (
<div className="configuration soft-shadow">
<div className="row">
Expand Down Expand Up @@ -256,7 +268,7 @@ box-shadow: ${firstBoxShadow},
href="https://uxdesign.cc/neumorphism-in-user-interfaces-b47cef3bf3a6"
className="link"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
onclick="getOutboundLink('https://uxdesign.cc/neumorphism-in-user-interfaces-b47cef3bf3a6'); return true;"
>
Read more about <b>Neumorphism</b>
Expand Down