@ckeditor/strapi-plugin-ckeditor
Version:
CKEditor 5 - Official Integration for Strapi
22 lines (19 loc) • 483 B
JavaScript
import {createGlobalStyle} from "styled-components";
import { style as common } from "./styles/common";
import { style as light } from "./styles/light";
import { style as dark } from "./styles/dark";
export const getGlobalStyling = ( theme ) => {
let themeStyle = null;
switch ( theme ) {
case 'dark':
themeStyle = dark;
break;
case 'light':
themeStyle = light;
break;
}
return createGlobalStyle`
${ common }
${ themeStyle }
`;
};