Add more tokens to ColorPicker
parent
af230a824a
commit
cebbfd3ab4
|
@ -16,7 +16,7 @@ const theme = ({ dt }) => `
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
border-radius: ${dt('colorpicker.preview.border.radius')};
|
border-radius: ${dt('colorpicker.preview.border.radius')};
|
||||||
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')};
|
||||||
outline-color: transparent;
|
outline-color: transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ const theme = ({ dt }) => `
|
||||||
.p-colorpicker-panel {
|
.p-colorpicker-panel {
|
||||||
background: ${dt('colorpicker.panel.background')};
|
background: ${dt('colorpicker.panel.background')};
|
||||||
border: 1px solid ${dt('colorpicker.panel.border.color')};
|
border: 1px solid ${dt('colorpicker.panel.border.color')};
|
||||||
border-radius: ${dt('border.radius.md')};
|
border-radius: ${dt('colorpicker.panel.border.radius')};
|
||||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
box-shadow: ${dt('colorpicker.panel.shadow')};
|
||||||
width: 193px;
|
width: 193px;
|
||||||
height: 166px;
|
height: 166px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -11,6 +11,10 @@ export default {
|
||||||
shadow: '{focus.ring.shadow}'
|
shadow: '{focus.ring.shadow}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
panel: {
|
||||||
|
shadow: '{overlay.popover.shadow}',
|
||||||
|
borderRadius: '{overlay.popover.borderRadius}'
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
panel: {
|
panel: {
|
||||||
|
|
|
@ -247,7 +247,6 @@ export default {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
borderColor: '{surface.200}',
|
borderColor: '{surface.200}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)'
|
|
||||||
},
|
},
|
||||||
popover: {
|
popover: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
|
|
|
@ -11,6 +11,10 @@ export default {
|
||||||
shadow: '{form.field.focus.ring.shadow}'
|
shadow: '{form.field.focus.ring.shadow}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
panel: {
|
||||||
|
shadow: '{overlay.popover.shadow}',
|
||||||
|
borderRadius: '{overlay.popover.borderRadius}'
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
panel: {
|
panel: {
|
||||||
|
|
Loading…
Reference in New Issue