You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			487 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			21 lines
		
	
	
		
			487 B
		
	
	
	
		
			TypeScript
		
	
| import React from 'react';
 | |
| 
 | |
| import { createGlobalStyle } from 'styled-components';
 | |
| import { classicDark } from './';
 | |
| import { declareCSSVariables, THEME_GLOBALS } from './globals';
 | |
| 
 | |
| // Defaults to Classic Dark theme
 | |
| const SessionGlobalStyles = createGlobalStyle`
 | |
|   html {
 | |
|     ${declareCSSVariables(THEME_GLOBALS)}
 | |
|     ${declareCSSVariables(classicDark)}
 | |
|   };
 | |
| `;
 | |
| 
 | |
| export const SessionTheme = ({ children }: { children: any }) => (
 | |
|   <>
 | |
|     <SessionGlobalStyles />
 | |
|     {children}
 | |
|   </>
 | |
| );
 |