import React from 'react' import { Text, Button, useTheme, Themes } from 'components' import EditorColorItem from './editor-color-item' import EditorInputItem from './editor-input-item' import { useConfigs } from 'lib/config-context' import { GeistUIThemesExpressiveness, GeistUIThemesLayout, GeistUIThemesPalette, } from 'components/themes' const basicColors: Array = [ 'accents_1', 'accents_2', 'accents_3', 'accents_4', 'accents_5', 'accents_6', 'accents_7', 'accents_8', 'foreground', 'background', ] const statusColors: Array = [ 'success', 'successLight', 'successDark', 'error', 'errorLight', 'errorDark', 'warning', 'warningLight', 'warningDark', ] const otherColors: Array = [ 'selection', 'secondary', 'link', 'border', 'code', 'cyan', 'purple', 'alert', 'violet', ] const expressiveness: Array = [ 'linkStyle', 'linkHoverStyle', 'dropdownBoxShadow', 'shadowSmall', 'shadowMedium', 'shadowLarge', ] const pageLayout: Array = [ 'pageWidth', 'pageWidthWithMargin', 'pageMargin', 'radius', ] const gapLayout: Array = [ 'gap', 'gapNegative', 'gapHalf', 'gapHalfNegative', 'gapQuarter', 'gapQuarterNegative', ] const Editor = () => { const theme = useTheme() const DefaultTheme = Themes.getPresetStaticTheme() const { updateCustomTheme, isChinese } = useConfigs() const resetLayout = () => updateCustomTheme({ layout: DefaultTheme.layout }) const restColors = () => updateCustomTheme({ palette: DefaultTheme.palette }) const resetExpressiveness = () => { updateCustomTheme({ expressiveness: DefaultTheme.expressiveness }) } return (
{isChinese ? '色彩' : 'Colors'}

{isChinese ? '基础' : 'basic'}

{basicColors.map((item, index) => ( ))}

{isChinese ? '状态' : 'status'}

{statusColors.map((item, index) => ( ))}

{isChinese ? '其他' : 'others'}

{otherColors.map((item, index) => ( ))}
{isChinese ? '表现力' : 'Expressiveness'}

{isChinese ? '基础' : 'basic'}

{expressiveness.map((item, index) => ( ))}
{isChinese ? '布局' : 'Layout'} {isChinese ? (

大多数的布局间距都依赖这些变量,不合理的更改可能会导致布局失衡。

) : (

Most layout spacing depends on these variables, unreasonable changes may cause layout imbalance.

)}

{isChinese ? '基础' : 'basic'}

{pageLayout.map((item, index) => ( ))}

{isChinese ? '间距' : 'gaps'}

{gapLayout.map((item, index) => ( ))}
) } export default Editor