mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
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}
|
|
</>
|
|
);
|