1import{o as f,p as w,q as b,t as k,r as m,_ as y,v as C,n as a,M as S,L as M,w as j,O as A,S as H}from"./components-CKINbYKq.js";import{C as R,h as _,u as X}from"./context-8DNi_TZn.js";/** 2 * @remix-run/react v2.10.2 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */let x="positions";function E({getKey:e,...t}){let{isSpaMode:h}=f(),r=w(),o=b();k({getKey:e,storageKey:x});let s=m.useMemo(()=>{if(!e)return null;let i=e(r,o);return i!==r.key?i:null},[]);if(h)return null;let p=((i,d)=>{if(!window.history.state||!window.history.state.key){let n=Math.random().toString(32).slice(2);window.history.replaceState({key:n},"")}try{let c=JSON.parse(sessionStorage.getItem(i)||"{}")[d||window.history.state.key];typeof c=="number"&&window.scrollTo(0,c)}catch(n){console.error(n),sessionStorage.removeItem(i)}}).toString();return m.createElement("script",y({},t,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${p})(${JSON.stringify(x)}, ${JSON.stringify(s)})`}}))}const q=[{rel:"icon",type:"image/png",sizes:"48x48",href:"/favicons/favicon-48x48.png"},{rel:"icon",type:"image/png",sizes:"72x72",href:"/favicons/favicon-72x72.png"},{rel:"icon",type:"image/png",sizes:"96x96",href:"/favicons/favicon-96x96.png"},{rel:"icon",type:"image/png",sizes:"144x144",href:"/favicons/favicon-144x144.png"},{rel:"icon",type:"image/png",sizes:"256x256",href:"/favicons/favicon-256x256.png"},{rel:"icon",type:"image/png",sizes:"512x512",href:"/favicons/favicon-512x512.png"}],z=[{name:"application-name",content:"Colour Contrast Checker"},{name:"msapplication-TileColor",content:"#ffe66b"},{name:"msapplication-TileImage",content:"/favicons/favicon-144x144.png"},{name:"msapplication-square70x70logo",content:"/favicons/favicon-70x70.png"},{name:"msapplication-square150x150logo",content:"/favicons/favicon-150x150.png"},{name:"msapplication-wide310x150logo",content:"/favicons/favicon-310x150.png"},{name:"msapplication-square310x310logo",content:"/favicons/favicon-310x310.png"},{name:"msapplication-tooltip",content:"Colour Contrast Checker"},{name:"msapplication-config",content:"/browserconfig.xml"}],B=[{property:"og:url",content:"https://colourcontrast.cc"},{property:"og:type",content:"website"},{property:"og:title",content:"Colour Contrast Checker"},{property:"og:image",content:"/favicons/favicon-256x256.png"},{property:"og:description",content:"Check the contrast between different colour combinations against WCAG standards."},{property:"og:site_name",content:"Colour Contrast Checker"},{property:"og:locale",content:"en_GB"}],G=[{rel:"apple-touch-startup-image",media:"screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_11_Pro_Max__iPhone_XS_Max_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/iPhone_11__iPhone_XR_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)",href:"/images/splash-screens/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 1032px) and (device-height: 1376px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/13__iPad_Pro_M4_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/12.9__iPad_Pro_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1210px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/11__iPad_Pro_M4_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/11__iPad_Pro__10.5__iPad_Pro_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/10.9__iPad_Air_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/10.5__iPad_Air_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/10.2__iPad_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)",href:"/images/splash-screens/8.3__iPad_Mini_landscape.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_11_Pro_Max__iPhone_XS_Max_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/iPhone_11__iPhone_XR_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)",href:"/images/splash-screens/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 1032px) and (device-height: 1376px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/13__iPad_Pro_M4_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/12.9__iPad_Pro_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1210px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/11__iPad_Pro_M4_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/11__iPad_Pro__10.5__iPad_Pro_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/10.9__iPad_Air_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/10.5__iPad_Air_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/10.2__iPad_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_portrait.png"},{rel:"apple-touch-startup-image",media:"screen and (device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)",href:"/images/splash-screens/8.3__iPad_Mini_portrait.png"}],I=[{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@AlexMClapperton"},{name:"twitter:creator",content:"@AlexMClapperton"},{name:"twitter:url",content:"https://colourcontrast.cc"},{name:"twitter:title",content:"Colour Contrast Checker"},{name:"twitter:description",content:"Check the contrast between different c
10olour combinations against WCAG standards."},{name:"twitter:image",content:"/favicons/favicon-256x256.png"}],u="/assets/globals-BC5w7FxI.css",v="/assets/typography-BqqDm1gR.css",$=()=>[{rel:"dns-prefetch",href:"https://www.googleapis.com"},{rel:"preconnect",href:"https://www.googleapis.com"},{rel:"preload",href:v,as:"style"},{rel:"preload",href:u,as:"style"},{rel:"preload",href:"/fonts/avenir-next-variable.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"manifest",href:"/site.webmanifest"},{rel:"chrome-webstore-item",href:"https://chrome.google.com/webstore/detail/nmmjeclfkgjdomacpcflgdkgpphpmnfe"},{rel:"apple-touch-icon",href:"/favicons/apple-touch-icon.png"},{rel:"mask-icon",href:"/favicons/safari-pinned-tab.svg",color:"#222"},...q,...G,{rel:"stylesheet",href:v},{rel:"stylesheet",href:u}],W=({data:e})=>{const t=e!=null&&e.background?_(e.background):"#ffe66d";return[{title:"Colour Contrast Checker"},{name:"description",content:"Check the contrast between different colour combinations against WCAG standards."},{name:"theme-color",content:t},...B,...I,...z]},F=()=>!1,O=()=>{const[e]=j(),{background:t,foreground:h}=X(),r=e.get("background"),o=e.get("foreground"),s=r?`#${r}`:null,p=o?`#${o}`:null,i=_(t),d=_(h),n=s===i,c=p===d,l=n?s:i,g=c?p:d,P={"--background-color":l||"#ffe66d","--foreground-color":g||"#222222"};return a.jsxs("body",{style:P,children:[a.jsx(A,{}),a.jsx(E,{}),a.jsx(H,{})]})};function J(){const e=C();return a.jsxs("html",{lang:"en-GB",children:[a.jsxs("head",{children:[a.jsx("meta",{charSet:"utf-8"}),a.jsx("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,user-scalable=yes,initial-scale=1,viewport-fit=cover"}),a.jsx(S,{}),a.jsx(M,{})]}),a.jsx(R,{background:e.background,foreground:e.foreground,colors:e.colors,contrast:e.contrast,levels:e.levels,children:a.jsx(O,{})})]})}export{J as default,$ as links,W as meta,F as shouldRevalidate};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.