{
  "version": 3,
  "sources": ["../../src/admin-theme-colors/index.ts"],
  "sourcesContent": ["type AdminThemeColors = {\n\tprimary: string;\n\tbackground: string;\n};\n\nconst DEFAULT_THEME_COLORS: AdminThemeColors = {\n\tprimary: '#3858e9',\n\tbackground: '#25292b',\n};\n\nconst ADMIN_THEME_COLORS = new Map< string, AdminThemeColors >( [\n\t[ 'fresh', DEFAULT_THEME_COLORS ],\n\t[ 'modern', { primary: '#3858e9', background: '#222524' } ],\n\t[ 'midnight', { primary: '#cf4339', background: '#3d4042' } ],\n\t[ 'coffee', { primary: '#916745', background: '#5b534d' } ],\n\t[ 'ocean', { primary: '#567958', background: '#5f787f' } ],\n\t[ 'blue', { primary: '#437aa8', background: '#3876a8' } ],\n\t[ 'ectoplasm', { primary: '#646c3e', background: '#4f386e' } ],\n\t[ 'sunrise', { primary: '#ad631e', background: '#cc4541' } ],\n\t[ 'light', { primary: '#007cba', background: '#eaeeed' } ],\n] );\n\n/**\n * Reads the active WordPress admin color scheme from the `admin-color-*` body\n * class and returns its primary and background colors. Intended to seed a\n * `ThemeProvider` (`color` prop) so the design system matches the user's chosen\n * admin color scheme.\n *\n * @return The primary and background colors for the active admin color scheme.\n */\nexport function getAdminThemeColors(): AdminThemeColors {\n\tconst scheme =\n\t\tdocument.body.className.match( /admin-color-([\\w-]+)/ )?.[ 1 ] ??\n\t\t'fresh';\n\n\treturn ADMIN_THEME_COLORS.get( scheme ) ?? DEFAULT_THEME_COLORS;\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,IAAM,uBAAyC;AAAA,EAC9C,SAAS;AAAA,EACT,YAAY;AACb;AAEA,IAAM,qBAAqB,oBAAI,IAAiC;AAAA,EAC/D,CAAE,SAAS,oBAAqB;AAAA,EAChC,CAAE,UAAU,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EAC1D,CAAE,YAAY,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EAC5D,CAAE,UAAU,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EAC1D,CAAE,SAAS,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EACzD,CAAE,QAAQ,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EACxD,CAAE,aAAa,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EAC7D,CAAE,WAAW,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAAA,EAC3D,CAAE,SAAS,EAAE,SAAS,WAAW,YAAY,UAAU,CAAE;AAC1D,CAAE;AAUK,SAAS,sBAAwC;AACvD,QAAM,SACL,SAAS,KAAK,UAAU,MAAO,sBAAuB,IAAK,CAAE,KAC7D;AAED,SAAO,mBAAmB,IAAK,MAAO,KAAK;AAC5C;",
  "names": []
}
