session-desktop/ts/themes/SessionTheme.tsx
2022-10-14 15:16:48 +11:00

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}
</>
);