appmixer.set('theme', {
mode: 'light', // Determines the color mode of the theme: 'light' or 'dark'.
variables: {
// Font variables including font family, weights, and size.
font: {
family: '\'SF Pro Text\', \'Helvetica Neue\', \'Helvetica\', \'Arial\', sans-serif',
familyMono: '\'SF Mono\', \'ui-monospace\', Menlo, monospace',
weightRegular: 400,
weightMedium: 500,
weightSemibold: 600,
weightBold: 700, // Added key for bold font weight.
size: 14
},
// Color variables for various UI elements, with light and dark mode defaults.
colors: {
background: '#FFFFFF', // Color of the background. The areas accomodate surfaces.
surface: '#FFFFFF', // Color of the surfaces above background and other surfaces.
separator: '#E0E0E2', // Separator is a special color for various borders and lines.
neutral: '#1F2338',
primary: '#2A64F6', // Colors for primary, secondary and tertiary actions of the user.
secondary: '#6B7EB3',
tertiary: '#8C6C87',
error: '#B3261E',
warning: '#B56C09',
success: '#08B685',
modifier: '#C558CF', // Special color for variables that have been modified via Modifiers.
highlighter: '#FFA500'
},
// Shadow variables for different elevation levels and UI elements.
shadows: {
level0: '0 0 4px 0 rgba(60, 64, 67, 0.3)', // Shadows from level 0 to 5 serve to assist with elevation levels between surfaces.
level1: '0 0 1px rgb(125 125 126)',
level2: '0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.12)',
level3: '0 2px 4px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 1px rgba(60, 64, 67, 0.12)',
level4: '0 3px 9px 0 rgba(60, 64, 67, 0.15), 0 3px 12px 1px rgba(60, 64, 67, 0.12)',
level5: '0 4px 8px 0 rgba(60, 64, 67, 0.3), 0 4px 12px 1px rgba(60, 64, 67, 0.12)',
backdrop: 'rgba(0 0 0 / 88%)', // Backdrop is a special shadow to cover the background of modals and popups.
blur: 'rgba(0 0 0 / 10%)', // Blur is an alternative for "backdrop" when the background is blurred instead.
popover: '0 3px 9px rgba(0 0 0 / 12%)', // Popover is a special shadow for popups that should be at the maximum elevation.
icon: '0 1px 3px rgb(0 0 0 / 6%)'
},
// Radius variables for element and container corners.
corners: {
elementRadiusSmall: '3px',
elementRadiusMedium: '6px',
elementRadiusLarge: '9px',
elementRadiusRound: '300px',
containerRadiusSmall: '3px',
containerRadiusMedium: '6px',
containerRadiusLarge: '9px'
},
// Border width variables for UI elements.
dividers: {
regular: '1px', // Width of border lines and separator lines in the UI.
medium: '2px',
semibold: '3px',
bold: '6px',
extrabold: '9px'
}
}
})