Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

updates graphiql theme

Alaister Young992029383eb8
diff --git a/studio/components/interfaces/GraphQL/GraphiQL.tsx b/studio/components/interfaces/GraphQL/GraphiQL.tsx
index 1f961603bd8..de419530f14 100644
--- a/studio/components/interfaces/GraphQL/GraphiQL.tsx
+++ b/studio/components/interfaces/GraphQL/GraphiQL.tsx
@@ -215,12 +215,12 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
<div
role="tabpanel"
id="graphiql-session"
- className="graphiql-session"
+ className={clsx('graphiql-session', styles.graphiqlSession)}
aria-labelledby={`graphiql-session-tab-${editorContext.activeTabIndex}`}
>
<div ref={editorResize.firstRef}>
<div
- className={`graphiql-editors${
+ className={`graphiql-editors ${styles.graphiqlEditors}${
editorContext.tabs.length === 1 ? ' full-height' : ''
}`}
>
diff --git a/studio/components/interfaces/GraphQL/graphiql.module.css b/studio/components/interfaces/GraphQL/graphiql.module.css
index 87caa2eb2e2..dc574beed61 100644
--- a/studio/components/interfaces/GraphQL/graphiql.module.css
+++ b/studio/components/interfaces/GraphQL/graphiql.module.css
@@ -1,4 +1,27 @@
.graphiqlContainer .graphiqlSessions {
- margin-left: var(--px-16);
- margin-right: 0;
+ margin: 0;
+ border-radius: 0;
+}
+
+.graphiqlContainer .graphiqlSession {
+ padding: 0;
+}
+
+.graphiqlContainer .graphiqlEditors {
+ border-radius: 0;
+}
+
+.graphiqlContainer .graphiqlEditors:global(.full-height) {
+ margin-top: calc(0px - var(--session-header-height));
+}
+
+/* Colors */
+:global(body.graphiql-dark) .graphiqlContainer {
+ --color-base: 0, 0%, 11%;
+ --color-primary: 153, 50%, 50%;
+}
+
+:global(body.graphiql-light) .graphiqlContainer {
+ --color-base: 210, 17%, 98%;
+ --color-primary: 153, 50%, 50%;
}