All files / apps / web/src / constants media.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7    21x        
// `desktop` is the shell's one breakpoint (DESIGN.md), the same 768px as Tailwind's `md:` classes:
// change both together. index.html spells `dark` out again before the app loads.
export const MEDIA_QUERY = {
  desktop: '(min-width: 768px)',
  dark: '(prefers-color-scheme: dark)',
} as const