All files / lib/components/DefaultGlobalStyle index.tsx

0% Statements 0/1
0% Branches 0/18
0% Functions 0/1
0% Lines 0/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 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                                         
import { Global } from '@emotion/react';
 
interface DefaultGlobalStyleProps {
  theme: 'light' | 'dark';
}
 
export default function DefaultGlobalStyle({ theme }: DefaultGlobalStyleProps) {
  return (
    <Global
      styles={{
        ':root': {
          '--theme-inventory-closeIcon-fill': theme === 'dark' ? '#ededed' : '#191919',
          '--theme-inventory-itemImageWrap-background-color':
            theme === 'dark' ? '#363636' : '#ededed',
          '--theme-inventory-header-border-bottom': theme === 'dark' ? '#454545' : '#ededed',
          '--theme-inventory-title-color': theme === 'dark' ? '#ffffff' : '#272727',
          '--theme-gpsMap-color': theme === 'dark' ? '#ffffff' : '#000000',
          '--theme-gpsMap-section-background-color': theme === 'dark' ? '#363636' : '#f4f4f4',
          '--theme-inventory-itemName-color': theme === 'dark' ? '#ededed' : '#191919',
          '--theme-inventory-data-rsbs-overlay-background-color':
            theme === 'dark' ? '#272727' : '#FFFFFF',
          '--theme-inventory-data-rsbs-header-background-color':
            theme === 'dark' ? '#FFFFFF' : '#D8D8D8'
        }
      }}
    />
  );
}