CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/_app.tsx
Views: 687
1
// The official antd docs suggest doing this first. It normalizes
2
// the css in a way that is compatible with antd.
3
// I think this is the correct fix for https://github.com/sagemathinc/cocalc/issues/6285
4
// now that we are using antd v5.
5
import "antd/dist/reset.css";
6
7
// Initialize the appBasePath for the frontend codebase.
8
import "@cocalc/frontend/customize/app-base-path";
9
10
// CoCalc 3rd party libraries
11
import "@cocalc/cdn/dist/codemirror/lib/codemirror.css";
12
import "@cocalc/cdn/dist/katex/katex.min.css";
13
import "@cocalc/frontend/editors/slate/elements/elements.css";
14
15
import type { AppProps } from "next/app";
16
17
function MyApp({ Component, pageProps }: AppProps) {
18
return <Component {...pageProps} />;
19
}
20
21
export default MyApp;
22
23
// Duplicated in packages/frontend/codemirror/css.js
24
import "@cocalc/cdn/dist/codemirror/theme/3024-day.css";
25
import "@cocalc/cdn/dist/codemirror/theme/3024-night.css";
26
import "@cocalc/cdn/dist/codemirror/theme/abcdef.css";
27
import "@cocalc/cdn/dist/codemirror/theme/ambiance.css";
28
import "@cocalc/cdn/dist/codemirror/theme/base16-dark.css";
29
import "@cocalc/cdn/dist/codemirror/theme/base16-light.css";
30
import "@cocalc/cdn/dist/codemirror/theme/bespin.css";
31
import "@cocalc/cdn/dist/codemirror/theme/blackboard.css";
32
import "@cocalc/cdn/dist/codemirror/theme/cobalt.css";
33
import "@cocalc/cdn/dist/codemirror/theme/colorforth.css";
34
import "@cocalc/cdn/dist/codemirror/theme/darcula.css";
35
import "@cocalc/cdn/dist/codemirror/theme/dracula.css";
36
import "@cocalc/cdn/dist/codemirror/theme/duotone-dark.css";
37
import "@cocalc/cdn/dist/codemirror/theme/duotone-light.css";
38
import "@cocalc/cdn/dist/codemirror/theme/eclipse.css";
39
import "@cocalc/cdn/dist/codemirror/theme/elegant.css";
40
import "@cocalc/cdn/dist/codemirror/theme/erlang-dark.css";
41
import "@cocalc/cdn/dist/codemirror/theme/gruvbox-dark.css";
42
import "@cocalc/cdn/dist/codemirror/theme/hopscotch.css";
43
import "@cocalc/cdn/dist/codemirror/theme/icecoder.css";
44
import "@cocalc/cdn/dist/codemirror/theme/idea.css";
45
import "@cocalc/cdn/dist/codemirror/theme/isotope.css";
46
import "@cocalc/cdn/dist/codemirror/theme/lesser-dark.css";
47
import "@cocalc/cdn/dist/codemirror/theme/liquibyte.css";
48
import "@cocalc/cdn/dist/codemirror/theme/lucario.css";
49
import "@cocalc/cdn/dist/codemirror/theme/material.css";
50
import "@cocalc/cdn/dist/codemirror/theme/mbo.css";
51
import "@cocalc/cdn/dist/codemirror/theme/mdn-like.css";
52
import "@cocalc/cdn/dist/codemirror/theme/midnight.css";
53
import "@cocalc/cdn/dist/codemirror/theme/monokai.css";
54
import "@cocalc/cdn/dist/codemirror/theme/neat.css";
55
import "@cocalc/cdn/dist/codemirror/theme/neo.css";
56
import "@cocalc/cdn/dist/codemirror/theme/night.css";
57
import "@cocalc/cdn/dist/codemirror/theme/oceanic-next.css";
58
import "@cocalc/cdn/dist/codemirror/theme/panda-syntax.css";
59
import "@cocalc/cdn/dist/codemirror/theme/paraiso-dark.css";
60
import "@cocalc/cdn/dist/codemirror/theme/paraiso-light.css";
61
import "@cocalc/cdn/dist/codemirror/theme/pastel-on-dark.css";
62
import "@cocalc/cdn/dist/codemirror/theme/railscasts.css";
63
import "@cocalc/cdn/dist/codemirror/theme/rubyblue.css";
64
import "@cocalc/cdn/dist/codemirror/theme/seti.css";
65
import "@cocalc/cdn/dist/codemirror/theme/shadowfox.css";
66
import "@cocalc/cdn/dist/codemirror/theme/solarized.css";
67
import "@cocalc/cdn/dist/codemirror/theme/ssms.css";
68
import "@cocalc/cdn/dist/codemirror/theme/the-matrix.css";
69
import "@cocalc/cdn/dist/codemirror/theme/tomorrow-night-bright.css";
70
import "@cocalc/cdn/dist/codemirror/theme/tomorrow-night-eighties.css";
71
import "@cocalc/cdn/dist/codemirror/theme/ttcn.css";
72
import "@cocalc/cdn/dist/codemirror/theme/twilight.css";
73
import "@cocalc/cdn/dist/codemirror/theme/vibrant-ink.css";
74
import "@cocalc/cdn/dist/codemirror/theme/xq-dark.css";
75
import "@cocalc/cdn/dist/codemirror/theme/xq-light.css";
76
import "@cocalc/cdn/dist/codemirror/theme/yeti.css";
77
import "@cocalc/cdn/dist/codemirror/theme/zenburn.css";
78
import "@uiw/react-textarea-code-editor/dist.css";
79
80
// this must be last to overwrite things like antd
81
import "../styles/globals.css";
82
import "../styles/bootstrap-visible.css";
83
84