{"version":3,"file":"antd-Bsp6nEX5.js","sources":["../../../src/common/constants/antd-theme-tokens.ts"],"sourcesContent":["import { theme } from 'antd';\n\nimport type { CustomDesignToken } from '@common/types/custom-design-token';\n\nimport type { ThemeConfig } from 'antd';\nimport type { SeedToken, MapToken, AliasToken } from 'antd/es/theme/interface';\n\nconst { getDesignToken } = theme;\n\n// https://ant.design/docs/react/customize-theme#theme-editor\nconst darkModeDesignTokenOverrides: Partial = {\n colorBgBase: '#121214',\n colorBgLayout: '#1e1e24',\n colorTextBase: '#fbfbfc',\n\n colorPrimary: '#3388ff',\n colorPrimaryBg: '#233061',\n colorPrimaryBgHover: '#223d7a',\n colorPrimaryBorder: '#1f4399',\n colorPrimaryBorderHover: '#2558b8',\n colorPrimaryHover: '#3072db',\n colorPrimaryActive: '#6eabfa',\n colorPrimaryText: '#b3d7fc',\n colorPrimaryTextHover: '#90c2fc',\n colorPrimaryTextActive: '#d9ebfc',\n\n colorSuccess: '#1cb854',\n colorSuccessBg: '#1f473d',\n colorSuccessBgHover: '#195848',\n colorSuccessBorder: '#136a4d',\n colorSuccessBorderHover: '#0e8450',\n colorSuccessHover: '#149e53',\n colorSuccessActive: '#4dd470',\n colorSuccessTextHover: '#72e985',\n colorSuccessText: '#a3f7a9',\n colorSuccessTextActive: '#d2fbd0',\n\n colorWarning: '#ffa02e',\n colorWarningBg: '#472e1f',\n colorWarningBgHover: '#7a4222',\n colorWarningBorder: '#934c1a',\n colorWarningBorderHover: '#b75f17',\n colorWarningHover: '#db7e21',\n colorWarningActive: '#ffbe62',\n colorWarningText: '#ffe4ab',\n colorWarningTextHover: '#ffd181',\n colorWarningTextActive: '#fff0cc',\n\n colorError: '#f9316d',\n colorErrorBg: '#472033',\n colorErrorBgHover: '#77214c',\n colorErrorBorder: '#901d56',\n colorErrorBorderHover: '#b3185e',\n colorErrorHover: '#d6236a',\n colorErrorActive: '#fb6382',\n colorErrorText: '#feacad',\n colorErrorTextHover: '#fd838f',\n colorErrorTextActive: '#fed9d5',\n\n colorInfo: '#3388ff',\n colorInfoBg: '#233061',\n colorInfoBgHover: '#223d7a',\n colorInfoBorder: '#1f4399',\n colorInfoBorderHover: '#2558b8',\n colorInfoHover: '#3072db',\n colorInfoActive: '#6eabfa',\n colorInfoText: '#b3d7fc',\n colorInfoTextHover: '#90c2fc',\n colorInfoTextActive: '#d9ebfc',\n\n colorLink: '#6eabfa',\n colorLinkHover: '#90c2fc',\n colorLinkActive: '#3072db',\n};\n\nconst lightModeDesignTokenOverrides: Partial = {\n colorBgBase: '#ffffff',\n colorTextBase: '#1a1c21',\n\n colorPrimary: '#1f7cff',\n colorSuccess: '#1cb854',\n colorWarning: '#ffa02e',\n colorError: '#f9316d',\n};\n\nexport const customDarkModeDesignToken: CustomDesignToken = {\n colorFillAlterSolid: '#2d2d38',\n colorMethodDelete: '#fa82a2',\n colorMethodGet: '#68cc97',\n colorMethodPost: '#90b0f0',\n colorMethodPut: '#e0a663',\n colorMethodPatch: '#e0c363',\n colorMethodDefault: '#b3a6f9',\n colorBgLayoutContainer: '#1d1d1d',\n};\n\nexport const customLightModeDesignToken: CustomDesignToken = {\n colorFillAlterSolid: '#fafafa',\n colorMethodDelete: '#e70b46',\n colorMethodGet: '#25b869',\n colorMethodPost: '#1e65f5',\n colorMethodPut: '#f5901d',\n colorMethodPatch: '#f5c31d',\n colorMethodDefault: '#7a69ee',\n colorBgLayoutContainer: '#fafafa',\n};\n\nexport const darkModeThemeConfig: ThemeConfig = {\n algorithm: withoutBgBaseColor(theme.darkAlgorithm),\n token: darkModeDesignTokenOverrides,\n};\n\nexport const lightModeThemeConfig: ThemeConfig = {\n algorithm: withoutBgBaseColor(theme.defaultAlgorithm),\n token: lightModeDesignTokenOverrides,\n};\n\nexport const darkModeDesignToken: AliasToken & CustomDesignToken = {\n ...getDesignToken(darkModeThemeConfig),\n ...customDarkModeDesignToken,\n};\n\nexport const lightModeDesignToken: AliasToken & CustomDesignToken = {\n ...getDesignToken(lightModeThemeConfig),\n ...customLightModeDesignToken,\n};\n\n// https://github.com/ant-design/ant-design/issues/44006#issuecomment-2773461322\nfunction withoutBgBaseColor(derivative: (token: SeedToken) => MapToken) {\n return (token: SeedToken) => {\n const mapToken = derivative(token);\n\n mapToken.colorPrimary = token.colorPrimary;\n mapToken.colorSuccess = token.colorSuccess;\n mapToken.colorWarning = token.colorWarning;\n mapToken.colorError = token.colorError;\n mapToken.colorInfo = token.colorInfo;\n mapToken.colorLink = token.colorLink;\n\n return mapToken;\n };\n}\n"],"names":["getDesignToken","theme","darkModeDesignTokenOverrides","lightModeDesignTokenOverrides","customDarkModeDesignToken","customLightModeDesignToken","darkModeThemeConfig","withoutBgBaseColor","lightModeThemeConfig","darkModeDesignToken","lightModeDesignToken","derivative","token","mapToken"],"mappings":"4XAOA,KAAM,CAAE,eAAAA,CAAmB,EAAAC,EAGrBC,EAAoD,CACxD,YAAa,UACb,cAAe,UACf,cAAe,UAEf,aAAc,UACd,eAAgB,UAChB,oBAAqB,UACrB,mBAAoB,UACpB,wBAAyB,UACzB,kBAAmB,UACnB,mBAAoB,UACpB,iBAAkB,UAClB,sBAAuB,UACvB,uBAAwB,UAExB,aAAc,UACd,eAAgB,UAChB,oBAAqB,UACrB,mBAAoB,UACpB,wBAAyB,UACzB,kBAAmB,UACnB,mBAAoB,UACpB,sBAAuB,UACvB,iBAAkB,UAClB,uBAAwB,UAExB,aAAc,UACd,eAAgB,UAChB,oBAAqB,UACrB,mBAAoB,UACpB,wBAAyB,UACzB,kBAAmB,UACnB,mBAAoB,UACpB,iBAAkB,UAClB,sBAAuB,UACvB,uBAAwB,UAExB,WAAY,UACZ,aAAc,UACd,kBAAmB,UACnB,iBAAkB,UAClB,sBAAuB,UACvB,gBAAiB,UACjB,iBAAkB,UAClB,eAAgB,UAChB,oBAAqB,UACrB,qBAAsB,UAEtB,UAAW,UACX,YAAa,UACb,iBAAkB,UAClB,gBAAiB,UACjB,qBAAsB,UACtB,eAAgB,UAChB,gBAAiB,UACjB,cAAe,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