Refactored tokens of Misc

pull/5701/head
Cagatay Civici 2024-05-04 15:12:43 +03:00
parent 4bdc38e892
commit a20948c218
11 changed files with 39 additions and 126 deletions

View File

@ -63,7 +63,7 @@ const theme = ({ dt }) => `
}
.p-avatar-group .p-avatar {
border: 2px solid ${dt('avatar.grouped.border.color')};
border: 2px solid ${dt('avatar.group.border.color')};
}
`;

View File

@ -31,7 +31,7 @@ const theme = ({ dt }) => `
.p-progressspinner-circle {
stroke-dasharray: 89, 200;
stroke-dashoffset: 0;
stroke: ${dt('progressspinner.color-1')};
stroke: ${dt('progressspinner.color.1')};
animation: p-progressspinner-dash 1.5s ease-in-out infinite, p-progressspinner-color 6s ease-in-out infinite;
stroke-linecap: round;
}
@ -58,17 +58,17 @@ const theme = ({ dt }) => `
@keyframes p-progressspinner-color {
100%,
0% {
stroke: ${dt('progressspinner.color-1')};
stroke: ${dt('progressspinner.color.1')};
}
40% {
stroke: ${dt('progressspinner.color-2')};
stroke: ${dt('progressspinner.color.2')};
}
66% {
stroke: ${dt('progressspinner.color-3')};
stroke: ${dt('progressspinner.color.3')};
}
80%,
90% {
stroke: ${dt('progressspinner.color-4')};
stroke: ${dt('progressspinner.color.4')};
}
}
`;

View File

@ -5,22 +5,6 @@ const theme = ({ dt }) => `
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
align-items: center;
justify-content: center;
background: ${dt('scrolltop.background')};
color: ${dt('scrolltop.color')};
}
.p-scrolltop:hover {
background: ${dt('scrolltop.hover.background')};
color: ${dt('scrolltop.hover.text')};
}
.p-scrolltop-icon {
font-size: 1.5rem;
width: 1.5rem;
height: 1.5rem;
}
.p-scrolltop-sticky {
@ -46,19 +30,10 @@ const theme = ({ dt }) => `
.p-scrolltop-leave-active {
transition: opacity 0.15s;
}
.p-scrolltop {
width: 3rem;
height: 3rem;
border-radius: 50%;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
outline-color: transparent;
}
`;
const classes = {
root: ({ props }) => ['p-scrolltop p-link p-component', { 'p-scrolltop-sticky': props.target !== 'window' }],
root: ({ props }) => ['p-scrolltop', { 'p-scrolltop-sticky': props.target !== 'window' }],
icon: 'p-scrolltop-icon'
};

View File

@ -1,20 +1,8 @@
export default {
colorScheme: {
light: {
root: {
background: '{surface.200}'
},
grouped: {
borderColor: '{surface.0}'
}
},
dark: {
root: {
background: '{surface.700}'
},
grouped: {
borderColor: '{surface.900}'
}
}
root: {
background: '{content.border.color}'
},
group: {
borderColor: '{content.background}'
}
};

View File

@ -3,7 +3,7 @@ export default {
light: {
primary: {
background: '{primary.color}',
color: '{primary.inverseColor}'
color: '{primary.contrast.color}'
},
secondary: {
background: '{surface.100}',
@ -33,7 +33,7 @@ export default {
dark: {
primary: {
background: '{primary.color}',
color: '{primary.inverseColor}'
color: '{primary.contrast.color}'
},
secondary: {
background: '{surface.800}',

View File

@ -155,7 +155,7 @@ export default {
},
primary: {
color: '{primary.500}',
inverseColor: '#ffffff',
contrastColor: '#ffffff',
hoverColor: '{primary.600}',
activeColor: '{primary.700}'
},
@ -214,7 +214,7 @@ export default {
},
primary: {
color: '{primary.400}',
inverseColor: '{surface.900}',
contrastColor: '{surface.900}',
hoverColor: '{primary.300}',
activeColor: '{primary.200}'
},

View File

@ -1,14 +1,5 @@
export default {
colorScheme: {
light: {
meters: {
background: '{surface.200}'
}
},
dark: {
meters: {
background: '{surface.700}'
}
}
meters: {
background: '{content.border.color}'
}
};

View File

@ -1,26 +1,11 @@
export default {
colorScheme: {
light: {
root: {
background: '{surface.200}'
},
value: {
background: '{primary.color}'
},
label: {
color: '{primary.inverse.color}'
}
},
dark: {
root: {
background: '{surface.700}'
},
value: {
background: '{primary.color}'
},
label: {
color: '{primary.inverse.color}'
}
}
root: {
background: '{content.border.color}'
},
value: {
background: '{primary.color}'
},
label: {
color: '{primary.inverse.color}'
}
};

View File

@ -2,18 +2,18 @@ export default {
colorScheme: {
light: {
root: {
'color-1': '{red.500}',
'color-2': '{blue.500}',
'color-3': '{green.500}',
'color-4': '{yellow.500}'
'color.1': '{red.500}',
'color.2': '{blue.500}',
'color.3': '{green.500}',
'color.4': '{yellow.500}'
}
},
dark: {
root: {
'color-1': '{red.400}',
'color-2': '{blue.400}',
'color-3': '{green.400}',
'color-4': '{yellow.400}'
'color.1': '{red.400}',
'color.2': '{blue.400}',
'color.3': '{green.400}',
'color.4': '{yellow.400}'
}
}
}

View File

@ -1,20 +1 @@
export default {
colorScheme: {
light: {
root: {
background: '{surface.800}',
hoverBackground: '{surface.700}',
color: '{surface.100}',
hoverColor: '{surface.0}'
}
},
dark: {
root: {
background: '{surface.800}',
hoverBackground: '{surface.700}',
color: '{surface.300}',
hoverColor: '{surface.200}'
}
}
}
};
export default {};

View File

@ -1,14 +1,7 @@
export default {
colorScheme: {
light: {
background: '{surface.0}',
borderColor: '{surface.300}',
color: '{surface.700}'
},
dark: {
background: '{surface.950}',
borderColor: '{surface.700}',
color: '{surface.0}'
}
root: {
background: '{form.field.background}',
borderColor: '{form.field.border.color}',
color: '{form.field.color}'
}
};