Tokens for Image

This commit is contained in:
Cagatay Civici 2024-05-13 12:10:09 +03:00
parent fdfed1d9ac
commit 0f6f5736d6
6 changed files with 112 additions and 37 deletions

View file

@ -1,14 +1,41 @@
export default {
previewMask: {
background: '{mask.background}',
color: '{surface.200}'
preview: {
icon: {
size: '1.5rem'
},
mask: {
background: '{mask.background}',
color: '{mask.color}'
}
},
mask: {
background: 'rgba(0,0,0,0.9)'
toolbar: {
position: {
left: 'auto',
right: '1rem',
top: '1rem',
bottom: 'auto'
},
blur: '8px',
background: 'rgba(255,255,255,0.1)',
borderColor: 'rgba(255,255,255,0.2)',
borderWidth: '1px',
borderRadius: '{content.border.radius}',
padding: '.5rem',
gap: '0.5rem'
},
action: {
hoverBackground: 'rgba(255,255,255,0.1)',
color: '{surface.50}',
hoverColor: '{surface.0}'
hoverColor: '{surface.0}',
size: '3rem',
iconSize: '1.5rem',
borderRadius: '{content.border.radius}',
focusRing: {
width: '{focus.ring.width}',
style: '{focus.ring.style}',
color: '{focus.ring.color}',
offset: '{focus.ring.offset}',
shadow: '{focus.ring.shadow}'
}
}
};

View file

@ -238,7 +238,10 @@ export default {
focusRing: {
shadow: '0 0 0 0.2rem {primary.200}'
},
maskBackground: 'rgba(0,0,0,0.4)',
mask: {
background: 'rgba(0,0,0,0.4)',
color: '{surface.200}'
},
formField: {
background: '{surface.0}',
disabledBackground: '{surface.200}',
@ -360,7 +363,10 @@ export default {
focusRing: {
shadow: '0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)'
},
maskBackground: 'rgba(0,0,0,0.4)',
mask: {
background: 'rgba(0,0,0,0.4)',
color: '{surface.200}'
},
formField: {
background: '{surface.950}',
disabledBackground: '{surface.700}',