Nora initial token values
parent
ed0c36da66
commit
5f45abcdf7
|
@ -36,9 +36,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: '{primary.color}',
|
color: '{primary.color}',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
|
@ -263,9 +263,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: '{primary.color}',
|
color: '{primary.color}',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
|
|
|
@ -27,8 +27,8 @@ export default {
|
||||||
icon: {
|
icon: {
|
||||||
size: '0.875rem',
|
size: '0.875rem',
|
||||||
color: '{form.field.color}',
|
color: '{form.field.color}',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -159,7 +159,7 @@ export default {
|
||||||
padding: '0.25rem 0.25rem',
|
padding: '0.25rem 0.25rem',
|
||||||
gap: '2px',
|
gap: '2px',
|
||||||
header: {
|
header: {
|
||||||
padding: '0.5rem 0.75rem 0 0.75rem'
|
padding: '0.5rem 0.75rem 0.25rem 0.75rem'
|
||||||
},
|
},
|
||||||
option: {
|
option: {
|
||||||
padding: '0.5rem 0.75rem',
|
padding: '0.5rem 0.75rem',
|
||||||
|
@ -368,7 +368,7 @@ export default {
|
||||||
background: '{surface.950}',
|
background: '{surface.950}',
|
||||||
disabledBackground: '{surface.700}',
|
disabledBackground: '{surface.700}',
|
||||||
filledBackground: '{surface.800}',
|
filledBackground: '{surface.800}',
|
||||||
filledFocusBackground: '{surface.950}',
|
filledFocusBackground: '{surface.800}',
|
||||||
borderColor: '{surface.700}',
|
borderColor: '{surface.700}',
|
||||||
hoverBorderColor: '{surface.600}',
|
hoverBorderColor: '{surface.600}',
|
||||||
focusBorderColor: '{primary.color}',
|
focusBorderColor: '{primary.color}',
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
||||||
background: '{primary.color}'
|
background: '{primary.color}'
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
color: '{primary.inverse.color}',
|
color: '{primary.contrast.color}',
|
||||||
fontSize: '0.75rem',
|
fontSize: '0.75rem',
|
||||||
fontWeight: '600'
|
fontWeight: '600'
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,8 @@ export default {
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
size: '0.75rem',
|
size: '0.75rem',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,9 +36,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: 'transparent',
|
color: 'transparent',
|
||||||
shadow: '0 0 0 0.2rem {primary.200}'
|
shadow: '0 0 0 0.2rem {primary.200}'
|
||||||
|
@ -263,9 +263,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: 'transparent',
|
color: 'transparent',
|
||||||
shadow: '0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)'
|
shadow: '0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)'
|
||||||
|
|
|
@ -27,8 +27,8 @@ export default {
|
||||||
icon: {
|
icon: {
|
||||||
size: '1rem',
|
size: '1rem',
|
||||||
color: '{form.field.color}',
|
color: '{form.field.color}',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
||||||
background: '{primary.color}'
|
background: '{primary.color}'
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
color: '{primary.inverse.color}',
|
color: '{primary.contrast.color}',
|
||||||
fontSize: '0.875rem',
|
fontSize: '0.875rem',
|
||||||
fontWeight: '600'
|
fontWeight: '600'
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,8 @@ export default {
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
size: '0.875rem',
|
size: '0.875rem',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@ export default {
|
||||||
activeBackground: '{primary.color}',
|
activeBackground: '{primary.color}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{content.border.color}',
|
||||||
color: '{text.muted.color}',
|
color: '{text.muted.color}',
|
||||||
activeColor: '{primary.inverse.color}',
|
activeColor: '{primary.contrast.color}',
|
||||||
size: '2.25rem',
|
size: '2.25rem',
|
||||||
fontSize: '1.125rem',
|
fontSize: '1.125rem',
|
||||||
fontWeight: '500',
|
fontWeight: '500',
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default {
|
||||||
activeBackground: '{primary.color}',
|
activeBackground: '{primary.color}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{content.border.color}',
|
||||||
color: '{text.muted.color}',
|
color: '{text.muted.color}',
|
||||||
activeColor: '{primary.inverse.color}',
|
activeColor: '{primary.contrast.color}',
|
||||||
size: '2.25rem',
|
size: '2.25rem',
|
||||||
fontSize: '1.125rem',
|
fontSize: '1.125rem',
|
||||||
fontWeight: '500',
|
fontWeight: '500',
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default {
|
||||||
light: {
|
light: {
|
||||||
primary: {
|
primary: {
|
||||||
background: '{primary.color}',
|
background: '{primary.color}',
|
||||||
color: '{primary.inverse.color}'
|
color: '{primary.contrast.color}'
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
background: '{surface.100}',
|
background: '{surface.100}',
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
||||||
dark: {
|
dark: {
|
||||||
primary: {
|
primary: {
|
||||||
background: '{primary.color}',
|
background: '{primary.color}',
|
||||||
color: '{primary.inverse.color}'
|
color: '{primary.contrast.color}'
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
background: '{surface.800}',
|
background: '{surface.800}',
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
||||||
paddingY: '0.625rem'
|
paddingY: '0.625rem'
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
fontWeight: '500'
|
fontWeight: '700'
|
||||||
},
|
},
|
||||||
raisedShadow: '0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
raisedShadow: '0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
|
@ -36,9 +36,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: '{primary.color}',
|
color: '{primary.color}',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
|
@ -263,9 +263,9 @@ export default {
|
||||||
borderColor: '{primary.color}',
|
borderColor: '{primary.color}',
|
||||||
hoverBorderColor: '{primary.hover.color}',
|
hoverBorderColor: '{primary.hover.color}',
|
||||||
activeBorderColor: '{primary.active.color}',
|
activeBorderColor: '{primary.active.color}',
|
||||||
color: '{primary.inverseColor}',
|
color: '{primary.contrast.color}',
|
||||||
hoverColor: '{primary.inverseColor}',
|
hoverColor: '{primary.contrast.color}',
|
||||||
activeColor: '{primary.inverseColor}',
|
activeColor: '{primary.contrast.color}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
color: '{primary.color}',
|
color: '{primary.color}',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
|
|
|
@ -27,8 +27,8 @@ export default {
|
||||||
icon: {
|
icon: {
|
||||||
size: '0.875rem',
|
size: '0.875rem',
|
||||||
color: '{form.field.color}',
|
color: '{form.field.color}',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -119,16 +119,16 @@ export default {
|
||||||
stone: { 50: '#fafaf9', 100: '#f5f5f4', 200: '#e7e5e4', 300: '#d6d3d1', 400: '#a8a29e', 500: '#78716c', 600: '#57534e', 700: '#44403c', 800: '#292524', 900: '#1c1917', 950: '#0c0a09' }
|
stone: { 50: '#fafaf9', 100: '#f5f5f4', 200: '#e7e5e4', 300: '#d6d3d1', 400: '#a8a29e', 500: '#78716c', 600: '#57534e', 700: '#44403c', 800: '#292524', 900: '#1c1917', 950: '#0c0a09' }
|
||||||
},
|
},
|
||||||
semantic: {
|
semantic: {
|
||||||
transitionDuration: '0.2s',
|
transitionDuration: '0',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '1px',
|
width: '2px',
|
||||||
style: 'solid',
|
style: 'solid',
|
||||||
color: '{primary.color}',
|
color: '{primary.color}',
|
||||||
offset: '2px',
|
offset: '2px',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
iconSize: '1rem',
|
iconSize: '1rem',
|
||||||
anchorGutter: '2px',
|
anchorGutter: '0',
|
||||||
primary: {
|
primary: {
|
||||||
50: '{emerald.50}',
|
50: '{emerald.50}',
|
||||||
100: '{emerald.100}',
|
100: '{emerald.100}',
|
||||||
|
@ -145,46 +145,46 @@ export default {
|
||||||
formField: {
|
formField: {
|
||||||
paddingX: '0.75rem',
|
paddingX: '0.75rem',
|
||||||
paddingY: '0.5rem',
|
paddingY: '0.5rem',
|
||||||
borderRadius: '{border.radius.md}',
|
borderRadius: '{border.radius.xs}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '0',
|
width: '2px',
|
||||||
style: 'none',
|
style: 'solid',
|
||||||
color: 'transparent',
|
color: '{primary.color}',
|
||||||
offset: '0',
|
offset: '-2px',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
padding: '0.25rem 0.25rem',
|
padding: '0.125rem 0',
|
||||||
gap: '2px',
|
gap: '0',
|
||||||
header: {
|
header: {
|
||||||
padding: '0.5rem 0.75rem 0 0.75rem'
|
padding: '0.5rem 0.75rem 0.5rem 0.75rem'
|
||||||
},
|
},
|
||||||
option: {
|
option: {
|
||||||
padding: '0.5rem 0.75rem',
|
padding: '0.5rem 0.75rem',
|
||||||
borderRadius: '{border.radius.sm}'
|
borderRadius: '0'
|
||||||
},
|
},
|
||||||
optionGroup: {
|
optionGroup: {
|
||||||
padding: '0.5rem 0.75rem',
|
padding: '0.5rem 0.75rem',
|
||||||
fontWeight: '600'
|
fontWeight: '700'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
borderRadius: '{border.radius.md}'
|
borderRadius: '{border.radius.xs}'
|
||||||
},
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
list: {
|
list: {
|
||||||
padding: '0.25rem 0.25rem',
|
padding: '0.125rem 0',
|
||||||
gap: '2px'
|
gap: '0'
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
padding: '0.5rem 0.75rem',
|
padding: '0.5rem 0.75rem',
|
||||||
borderRadius: '{border.radius.sm}',
|
borderRadius: '0',
|
||||||
gap: '0.5rem'
|
gap: '0.5rem'
|
||||||
},
|
},
|
||||||
submenuLabel: {
|
submenuLabel: {
|
||||||
padding: '0.5rem 0.75rem',
|
padding: '0.5rem 0.75rem',
|
||||||
fontWeight: '600'
|
fontWeight: '700'
|
||||||
},
|
},
|
||||||
submenuIcon: {
|
submenuIcon: {
|
||||||
size: '0.875rem'
|
size: '0.875rem'
|
||||||
|
@ -192,16 +192,16 @@ export default {
|
||||||
},
|
},
|
||||||
overlay: {
|
overlay: {
|
||||||
select: {
|
select: {
|
||||||
borderRadius: '{border.radius.md}',
|
borderRadius: '{border.radius.xs}',
|
||||||
shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)'
|
shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)'
|
||||||
},
|
},
|
||||||
popover: {
|
popover: {
|
||||||
borderRadius: '{border.radius.md}',
|
borderRadius: '{border.radius.xs}',
|
||||||
padding: '0.75rem',
|
padding: '0.75rem',
|
||||||
shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)'
|
shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
borderRadius: '{border.radius.xl}',
|
borderRadius: '{border.radius.xs}',
|
||||||
padding: '1.25rem',
|
padding: '1.25rem',
|
||||||
shadow: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)'
|
shadow: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)'
|
||||||
},
|
},
|
||||||
|
@ -226,16 +226,16 @@ export default {
|
||||||
950: '{slate.950}'
|
950: '{slate.950}'
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
color: '{primary.500}',
|
color: '{primary.600}',
|
||||||
contrastColor: '#ffffff',
|
contrastColor: '#ffffff',
|
||||||
hoverColor: '{primary.600}',
|
hoverColor: '{primary.700}',
|
||||||
activeColor: '{primary.700}'
|
activeColor: '{primary.800}'
|
||||||
},
|
},
|
||||||
highlight: {
|
highlight: {
|
||||||
background: '{primary.50}',
|
background: '{primary.600}',
|
||||||
focusBackground: '{primary.100}',
|
focusBackground: '{primary.700}',
|
||||||
color: '{primary.700}',
|
color: '#ffffff',
|
||||||
focusColor: '{primary.800}'
|
focusColor: '#ffffff'
|
||||||
},
|
},
|
||||||
mask: {
|
mask: {
|
||||||
background: 'rgba(0,0,0,0.4)',
|
background: 'rgba(0,0,0,0.4)',
|
||||||
|
@ -243,55 +243,55 @@ export default {
|
||||||
},
|
},
|
||||||
formField: {
|
formField: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
disabledBackground: '{surface.200}',
|
disabledBackground: '{surface.300}',
|
||||||
filledBackground: '{surface.50}',
|
filledBackground: '{surface.100}',
|
||||||
filledFocusBackground: '{surface.50}',
|
filledFocusBackground: '{surface.100}',
|
||||||
borderColor: '{surface.300}',
|
borderColor: '{surface.500}',
|
||||||
hoverBorderColor: '{surface.400}',
|
hoverBorderColor: '{surface.500}',
|
||||||
focusBorderColor: '{primary.color}',
|
focusBorderColor: '{surface.500}',
|
||||||
invalidBorderColor: '{red.400}',
|
invalidBorderColor: '{red.500}',
|
||||||
color: '{surface.700}',
|
color: '{surface.900}',
|
||||||
disabledColor: '{surface.500}',
|
disabledColor: '{surface.600}',
|
||||||
placeholderColor: '{surface.500}',
|
placeholderColor: '{surface.600}',
|
||||||
floatLabelColor: '{surface.500}',
|
floatLabelColor: '{surface.600}',
|
||||||
floatLabelFocusColor: '{surface.500}',
|
floatLabelFocusColor: '{surface.600}',
|
||||||
floatLabelInvalidColor: '{red.400}',
|
floatLabelInvalidColor: '{red.500}',
|
||||||
iconColor: '{surface.400}',
|
iconColor: '{surface.900}',
|
||||||
shadow: '0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
color: '{surface.700}',
|
color: '{surface.900}',
|
||||||
hoverColor: '{surface.800}',
|
hoverColor: '{surface.950}',
|
||||||
mutedColor: '{surface.500}',
|
mutedColor: '{surface.600}',
|
||||||
hoverMutedColor: '{surface.600}'
|
hoverMutedColor: '{surface.700}'
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
hoverBackground: '{surface.100}',
|
hoverBackground: '{surface.200}',
|
||||||
borderColor: '{surface.200}',
|
borderColor: '{surface.400}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
hoverColor: '{text.hover.color}'
|
hoverColor: '{text.hover.color}'
|
||||||
},
|
},
|
||||||
overlay: {
|
overlay: {
|
||||||
select: {
|
select: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
borderColor: '{surface.200}',
|
borderColor: 'transparent',
|
||||||
color: '{text.color}'
|
color: '{text.color}'
|
||||||
},
|
},
|
||||||
popover: {
|
popover: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
borderColor: '{surface.200}',
|
borderColor: 'transparent',
|
||||||
color: '{text.color}'
|
color: '{text.color}'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
borderColor: '{surface.200}',
|
borderColor: 'transparent',
|
||||||
color: '{text.color}'
|
color: '{text.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
option: {
|
option: {
|
||||||
focusBackground: '{surface.100}',
|
focusBackground: '{surface.200}',
|
||||||
selectedBackground: '{highlight.background}',
|
selectedBackground: '{highlight.background}',
|
||||||
selectedFocusBackground: '{highlight.focus.background}',
|
selectedFocusBackground: '{highlight.focus.background}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
|
@ -299,36 +299,36 @@ export default {
|
||||||
selectedColor: '{highlight.color}',
|
selectedColor: '{highlight.color}',
|
||||||
selectedFocusColor: '{highlight.focus.color}',
|
selectedFocusColor: '{highlight.focus.color}',
|
||||||
icon: {
|
icon: {
|
||||||
color: '{surface.400}',
|
color: '{text.color}',
|
||||||
focusColor: '{surface.500}'
|
focusColor: '{text.hover.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
optionGroup: {
|
optionGroup: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
color: '{text.muted.color}'
|
color: '{text.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
item: {
|
item: {
|
||||||
focusBackground: '{surface.100}',
|
focusBackground: '{primary.color}',
|
||||||
activeBackground: '{surface.100}',
|
activeBackground: '{surface.200}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
focusColor: '{text.hover.color}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{text.hover.color}',
|
activeColor: '{text.hover.color}',
|
||||||
icon: {
|
icon: {
|
||||||
color: '{surface.400}',
|
color: '{text.color}',
|
||||||
focusColor: '{surface.500}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{surface.500}'
|
activeColor: '{text.hover.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submenuLabel: {
|
submenuLabel: {
|
||||||
background: '{surface.0}',
|
background: '{surface.0}',
|
||||||
color: '{text.muted.color}'
|
color: '{text.color}'
|
||||||
},
|
},
|
||||||
submenuIcon: {
|
submenuIcon: {
|
||||||
color: '{surface.400}',
|
color: '{text.color}',
|
||||||
focusColor: '{surface.500}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{surface.500}'
|
activeColor: '{text.hover.color}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -348,38 +348,38 @@ export default {
|
||||||
950: '{zinc.950}'
|
950: '{zinc.950}'
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
color: '{primary.400}',
|
color: '{primary.500}',
|
||||||
contrastColor: '{surface.900}',
|
contrastColor: '{surface.900}',
|
||||||
hoverColor: '{primary.300}',
|
hoverColor: '{primary.400}',
|
||||||
activeColor: '{primary.200}'
|
activeColor: '{primary.300}'
|
||||||
},
|
},
|
||||||
highlight: {
|
highlight: {
|
||||||
background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
|
background: '{primary.500}',
|
||||||
focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
|
focusBackground: '{primary.400}',
|
||||||
color: 'rgba(255,255,255,.87)',
|
color: '{surface.900}',
|
||||||
focusColor: 'rgba(255,255,255,.87)'
|
focusColor: '{surface.900}'
|
||||||
},
|
},
|
||||||
mask: {
|
mask: {
|
||||||
background: 'rgba(0,0,0,0.4)',
|
background: 'rgba(0,0,0,0.6)',
|
||||||
color: '{surface.200}'
|
color: '{surface.200}'
|
||||||
},
|
},
|
||||||
formField: {
|
formField: {
|
||||||
background: '{surface.950}',
|
background: '{surface.950}',
|
||||||
disabledBackground: '{surface.700}',
|
disabledBackground: '{surface.700}',
|
||||||
filledBackground: '{surface.800}',
|
filledBackground: '{surface.800}',
|
||||||
filledFocusBackground: '{surface.950}',
|
filledFocusBackground: '{surface.800}',
|
||||||
borderColor: '{surface.700}',
|
borderColor: '{surface.500}',
|
||||||
hoverBorderColor: '{surface.600}',
|
hoverBorderColor: '{surface.500}',
|
||||||
focusBorderColor: '{primary.color}',
|
focusBorderColor: '{surface.500}',
|
||||||
invalidBorderColor: '{red.300}',
|
invalidBorderColor: '{red.400}',
|
||||||
color: '{surface.0}',
|
color: '{surface.0}',
|
||||||
disabledColor: '{surface.400}',
|
disabledColor: '{surface.400}',
|
||||||
placeholderColor: '{surface.400}',
|
placeholderColor: '{surface.400}',
|
||||||
floatLabelColor: '{surface.400}',
|
floatLabelColor: '{surface.400}',
|
||||||
floatLabelFocusColor: '{surface.400}',
|
floatLabelFocusColor: '{surface.400}',
|
||||||
floatLabelInvalidColor: '{red.300}',
|
floatLabelInvalidColor: '{red.400}',
|
||||||
iconColor: '{surface.400}',
|
iconColor: '{surface.0}',
|
||||||
shadow: '0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
color: '{surface.0}',
|
color: '{surface.0}',
|
||||||
|
@ -390,7 +390,7 @@ export default {
|
||||||
content: {
|
content: {
|
||||||
background: '{surface.900}',
|
background: '{surface.900}',
|
||||||
hoverBackground: '{surface.800}',
|
hoverBackground: '{surface.800}',
|
||||||
borderColor: '{surface.700}',
|
borderColor: '{surface.500}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
hoverColor: '{text.hover.color}'
|
hoverColor: '{text.hover.color}'
|
||||||
},
|
},
|
||||||
|
@ -413,7 +413,7 @@ export default {
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
option: {
|
option: {
|
||||||
focusBackground: '{surface.800}',
|
focusBackground: '{surface.700}',
|
||||||
selectedBackground: '{highlight.background}',
|
selectedBackground: '{highlight.background}',
|
||||||
selectedFocusBackground: '{highlight.focus.background}',
|
selectedFocusBackground: '{highlight.focus.background}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
|
@ -421,36 +421,36 @@ export default {
|
||||||
selectedColor: '{highlight.color}',
|
selectedColor: '{highlight.color}',
|
||||||
selectedFocusColor: '{highlight.focus.color}',
|
selectedFocusColor: '{highlight.focus.color}',
|
||||||
icon: {
|
icon: {
|
||||||
color: '{surface.500}',
|
color: '{surface.0}',
|
||||||
focusColor: '{surface.400}'
|
focusColor: '{surface.0}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
optionGroup: {
|
optionGroup: {
|
||||||
background: '{surface.900}',
|
background: '{surface.900}',
|
||||||
color: '{text.muted.color}'
|
color: '{text.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
item: {
|
item: {
|
||||||
focusBackground: '{surface.800}',
|
focusBackground: '{primary.color}',
|
||||||
activeBackground: '{surface.800}',
|
activeBackground: '{surface.700}',
|
||||||
color: '{text.color}',
|
color: '{text.color}',
|
||||||
focusColor: '{text.hover.color}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{text.hover.color}',
|
activeColor: '{text.color}',
|
||||||
icon: {
|
icon: {
|
||||||
color: '{surface.500}',
|
color: '{text.color}',
|
||||||
focusColor: '{surface.400}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{surface.400}'
|
activeColor: '{text.color}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submenuLabel: {
|
submenuLabel: {
|
||||||
background: '{surface.900}',
|
background: '{surface.900}',
|
||||||
color: '{text.muted.color}'
|
color: '{text.color}'
|
||||||
},
|
},
|
||||||
submenuIcon: {
|
submenuIcon: {
|
||||||
color: '{surface.500}',
|
color: '{text.color}',
|
||||||
focusColor: '{surface.400}',
|
focusColor: '{primary.contrast.color}',
|
||||||
activeColor: '{surface.400}'
|
activeColor: '{text.color}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
||||||
background: '{primary.color}'
|
background: '{primary.color}'
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
color: '{primary.inverse.color}',
|
color: '{primary.contrast.color}',
|
||||||
fontSize: '0.75rem',
|
fontSize: '0.75rem',
|
||||||
fontWeight: '600'
|
fontWeight: '600'
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,8 @@ export default {
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
size: '0.75rem',
|
size: '0.75rem',
|
||||||
checkedColor: '{primary.inverse.color}',
|
checkedColor: '{primary.contrast.color}',
|
||||||
checkedHoverColor: '{primary.inverse.color}',
|
checkedHoverColor: '{primary.contrast.color}',
|
||||||
disabledColor: '{form.field.disabled.color}'
|
disabledColor: '{form.field.disabled.color}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -127,7 +127,7 @@ export default {
|
||||||
light: {
|
light: {
|
||||||
primary: {
|
primary: {
|
||||||
color: '#09090b',
|
color: '#09090b',
|
||||||
inverseColor: '#ffffff',
|
contrastColor: '#ffffff',
|
||||||
hoverColor: '#18181b',
|
hoverColor: '#18181b',
|
||||||
activeColor: '#27272a'
|
activeColor: '#27272a'
|
||||||
},
|
},
|
||||||
|
@ -141,7 +141,7 @@ export default {
|
||||||
dark: {
|
dark: {
|
||||||
primary: {
|
primary: {
|
||||||
color: '#fafafa',
|
color: '#fafafa',
|
||||||
inverseColor: '#09090b',
|
contrastColor: '#09090b',
|
||||||
hoverColor: '#f4f4f5',
|
hoverColor: '#f4f4f5',
|
||||||
activeColor: '#e4e4e7'
|
activeColor: '#e4e4e7'
|
||||||
},
|
},
|
||||||
|
@ -156,41 +156,79 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
if (this.$appState.preset === 'Nora') {
|
||||||
semantic: {
|
return {
|
||||||
primary: color.palette,
|
semantic: {
|
||||||
colorScheme: {
|
primary: color.palette,
|
||||||
light: {
|
colorScheme: {
|
||||||
primary: {
|
light: {
|
||||||
color: '{primary.500}',
|
primary: {
|
||||||
inverseColor: '#ffffff',
|
color: '{primary.600}',
|
||||||
hoverColor: '{primary.600}',
|
contrastColor: '#ffffff',
|
||||||
activeColor: '{primary.700}'
|
hoverColor: '{primary.700}',
|
||||||
|
activeColor: '{primary.800}'
|
||||||
|
},
|
||||||
|
highlight: {
|
||||||
|
background: '{primary.600}',
|
||||||
|
focusBackground: '{primary.700}',
|
||||||
|
color: '#ffffff',
|
||||||
|
focusColor: '#ffffff'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
highlight: {
|
dark: {
|
||||||
background: '{primary.50}',
|
primary: {
|
||||||
focusBackground: '{primary.100}',
|
color: '{primary.500}',
|
||||||
color: '{primary.700}',
|
contrastColor: '{surface.900}',
|
||||||
focusColor: '{primary.800}'
|
hoverColor: '{primary.400}',
|
||||||
}
|
activeColor: '{primary.300}'
|
||||||
},
|
},
|
||||||
dark: {
|
highlight: {
|
||||||
primary: {
|
background: '{primary.500}',
|
||||||
color: '{primary.400}',
|
focusBackground: '{primary.400}',
|
||||||
inverseColor: '{surface.900}',
|
color: '{surface.900}',
|
||||||
hoverColor: '{primary.300}',
|
focusColor: '{surface.900}'
|
||||||
activeColor: '{primary.200}'
|
}
|
||||||
},
|
|
||||||
highlight: {
|
|
||||||
background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
|
|
||||||
focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
|
|
||||||
color: 'rgba(255,255,255,.87)',
|
|
||||||
focusColor: 'rgba(255,255,255,.87)'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
};
|
} else {
|
||||||
|
return {
|
||||||
|
semantic: {
|
||||||
|
primary: color.palette,
|
||||||
|
colorScheme: {
|
||||||
|
light: {
|
||||||
|
primary: {
|
||||||
|
color: '{primary.500}',
|
||||||
|
contrastColor: '#ffffff',
|
||||||
|
hoverColor: '{primary.600}',
|
||||||
|
activeColor: '{primary.700}'
|
||||||
|
},
|
||||||
|
highlight: {
|
||||||
|
background: '{primary.50}',
|
||||||
|
focusBackground: '{primary.100}',
|
||||||
|
color: '{primary.700}',
|
||||||
|
focusColor: '{primary.800}'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dark: {
|
||||||
|
primary: {
|
||||||
|
color: '{primary.400}',
|
||||||
|
contrastColor: '{surface.900}',
|
||||||
|
hoverColor: '{primary.300}',
|
||||||
|
activeColor: '{primary.200}'
|
||||||
|
},
|
||||||
|
highlight: {
|
||||||
|
background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
|
||||||
|
focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
|
||||||
|
color: 'rgba(255,255,255,.87)',
|
||||||
|
focusColor: 'rgba(255,255,255,.87)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateColors(type, color) {
|
updateColors(type, color) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { reactive } from 'vue';
|
||||||
const $appState = {
|
const $appState = {
|
||||||
install: (Vue, options) => {
|
install: (Vue, options) => {
|
||||||
Vue.config.globalProperties.$appState = reactive({
|
Vue.config.globalProperties.$appState = reactive({
|
||||||
preset: 'Lara',
|
preset: 'Nora',
|
||||||
darkTheme: false,
|
darkTheme: false,
|
||||||
codeSandbox: false,
|
codeSandbox: false,
|
||||||
sourceType: 'options-api',
|
sourceType: 'options-api',
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import { definePreset } from 'primevue/themes';
|
import { definePreset } from 'primevue/themes';
|
||||||
import Lara from 'primevue/themes/lara';
|
import Nora from 'primevue/themes/nora';
|
||||||
//import Aura from 'primevue/themes/aura';
|
|
||||||
|
|
||||||
const Noir = definePreset(Lara, {
|
const Noir = definePreset(Nora, {
|
||||||
semantic: {
|
semantic: {
|
||||||
primary: {
|
primary: {
|
||||||
50: '{zinc.50}',
|
50: '{zinc.50}',
|
||||||
|
|
Loading…
Reference in New Issue