PageSourceSearch

https://pasoschools.org/dist/assets/useThemeColors-DBnXCWOx.js

js pasoschools.org collected 2026-09-24 10:10:32 UTC 1,160 bytes, 2 lines download raw bytes

1import{r as n}from"./client-BM4SMm7c.js";const y=({primaryColor:t,textColor:r,element:o})=>{n.useLayoutEffect(()=>{if(!t||o===null)return;const e=o??document.documentElement;return e.style.setProperty("--color-surface-theme",t),e.style.setProperty("--color-theme-default",t),e.style.setProperty("--color-text-on-theme-primary",r),e.style.setProperty("--color-border-theme",t),e.style.setProperty("--color-intent-primary-default",t),e.style.setProperty("--color-intent-on-primary-default",r),e.style.setProperty("--color-intent-primary-hover",`color-mix(in srgb, ${t} 85%, black)`),e.style.setProperty("--color-intent-primary-pressed",`color-mix(in srgb, ${t} 70%, black)`),e.style.setProperty("--color-intent-primary-disabled",`color-mix(in srgb, ${t} 50%, gray)`),()=>{["--color-surface-theme","--color-theme-default","--color-text-on-theme-primary","--color-border-theme","--color-intent-primary-default","--color-intent-on-primary-default","--color-intent-primary-hover","--color-intent-primary-pressed","--color-intent-primary-disabled"].forEach(s=>e.style.removeProperty(s))}},[t,r,o])};export{y as u};
2//# sourceMappingURL=useThemeColors-DBnXCWOx.js.map

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.