mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-06 02:34:55 -05:00
36 lines
871 B
TypeScript
36 lines
871 B
TypeScript
import { selectAnatomy as parts } from '@chakra-ui/anatomy';
|
|
import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react';
|
|
import { getInputOutlineStyles } from 'theme/util/getInputOutlineStyles';
|
|
import { mode } from '@chakra-ui/theme-tools';
|
|
|
|
const { definePartsStyle, defineMultiStyleConfig } =
|
|
createMultiStyleConfigHelpers(parts.keys);
|
|
|
|
const invokeAIIcon = defineStyle((props) => {
|
|
return {
|
|
color: mode('base.200', 'base.300')(props),
|
|
};
|
|
});
|
|
|
|
const invokeAIField = defineStyle((props) => ({
|
|
fontWeight: '600',
|
|
...getInputOutlineStyles(props),
|
|
}));
|
|
|
|
const invokeAI = definePartsStyle((props) => {
|
|
return {
|
|
field: invokeAIField(props),
|
|
icon: invokeAIIcon(props),
|
|
};
|
|
});
|
|
|
|
export const selectTheme = defineMultiStyleConfig({
|
|
variants: {
|
|
invokeAI,
|
|
},
|
|
defaultProps: {
|
|
size: 'sm',
|
|
variant: 'invokeAI',
|
|
},
|
|
});
|