Refactored editor tokens

pull/5701/head
Cagatay Civici 2024-05-05 19:14:09 +03:00
parent 3920dc14f5
commit 41307e7062
3 changed files with 26 additions and 65 deletions

View File

@ -9,7 +9,7 @@ const theme = ({ dt }) => `
position: absolute; position: absolute;
top: 50%; top: 50%;
margin-top: -.5rem; margin-top: -.5rem;
color: ${dt('iconfield.color')}; color: ${dt('iconfield.icon.color')};
} }
.p-iconfield .p-inputicon:first-child { .p-iconfield .p-inputicon:first-child {

View File

@ -1,56 +1,26 @@
export default { export default {
colorScheme: { toolbar: {
light: { background: '{content.background}',
toolbar: { borderColor: '{content.border.color}'
background: '{surface.0}', },
borderColor: '{surface.200}' toolbarItem: {
}, color: '{text.muted.color}',
toolbarItem: { hoverColor: '{text.color}',
color: '{surface.500}', activeColor: '{primary.color}'
hoverColor: '{surface.700}', },
activeColor: '{primary.color}' overlay: {
}, background: '{content.background}',
overlay: { borderColor: '{content.border.color}',
background: '{surface.0}', color: '{content.color}'
borderColor: '{surface.200}', },
color: '{surface.700}' overlayItem: {
}, hoverBackground: '{content.hover.background}',
overlayItem: { color: '{content.color}',
hoverBackground: '{surface.100}', hoverColor: '{content.hover.color}'
color: '{surface.700}', },
hoverColor: '{surface.800}' content: {
}, background: '{content.background}',
content: { borderColor: '{content.border.color}',
background: '{surface.0}', color: '{content.color}'
borderColor: '{surface.200}',
color: '{surface.700}'
}
},
dark: {
toolbar: {
background: '{surface.900}',
borderColor: '{surface.700}'
},
toolbarItem: {
color: '{surface.400}',
hoverColor: '{surface.0}',
activeColor: '{primary.color}'
},
overlay: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
overlayItem: {
hoverBackground: '{surface.800}',
color: '{surface.400}',
hoverColor: '{surface.0}'
},
content: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
}
}
} }
}; };

View File

@ -1,14 +1,5 @@
export default { export default {
colorScheme: { icon: {
light: { color: '{form.field.icon.color}'
root: {
color: '{surface.400}'
}
},
dark: {
root: {
color: '{surface.400}'
}
}
} }
}; };