Make Coral embed background transparent
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-24 00:32:44 +05:30
parent 3fae4a6daf
commit 1423c5ee9f
14 changed files with 161 additions and 7 deletions

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}

View file

@ -0,0 +1,10 @@
#coral {
--palette-background-body: transparent;
}
#coral,
#coral [class*="App-root"],
#coral [class*="StreamContainer-root"] {
background: transparent !important;
background-color: transparent !important;
}

View file

@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
const coralRoot = "https://coral.neeldhara.cloud";
---
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
</section>
<style>
.coral-comments {
background: transparent;
}
.coral-comments :global(iframe) {
background: transparent !important;
}
</style>
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
(function () {
var d = document;
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
rootURL: coralRoot,
storyID: storyID,
storyURL: storyURL,
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
containerClassName: "coral-transparent-stream",
});
}