summaryrefslogtreecommitdiff
path: root/@linaria/website/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to '@linaria/website/src/index.js')
-rw-r--r--@linaria/website/src/index.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/@linaria/website/src/index.js b/@linaria/website/src/index.js
new file mode 100644
index 0000000..d034852
--- /dev/null
+++ b/@linaria/website/src/index.js
@@ -0,0 +1,36 @@
+/* @flow */
+
+import { css } from '@linaria/core';
+import React from 'react';
+import ReactDOM from 'react-dom';
+import App from './components/App';
+import constants from './styles/constants';
+
+/* $FlowFixMe */
+ReactDOM.render(<App />, document.getElementById('root'));
+
+export const globals = css`
+ :global() {
+ html {
+ box-sizing: border-box;
+ height: 100%;
+ width: 100%;
+ }
+
+ body {
+ margin: 0;
+ padding: 0;
+ height: 100%;
+ width: 100%;
+ font-family: ${constants.fontFamily};
+ font-size: 20px;
+ line-height: 1.42857;
+ }
+
+ *,
+ *:before,
+ *:after {
+ box-sizing: inherit;
+ }
+ }
+`;