Skip to content

Commit

Permalink
Revert "docs: pass down example-only styles"
Browse files Browse the repository at this point in the history
This reverts commit d9ed893.
  • Loading branch information
malangcat committed Feb 6, 2025
1 parent 6647089 commit 0fd12aa
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/components/example-frame.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
"use client";

import "@seed-design/stylesheet/base.css";
import "@seed-design/stylesheet/global.css";
import "@seed-design/stylesheet/token.css";
import "@seed-design/stylesheet/component.min.css";
import "@stackflow/plugin-basic-ui/index.css";
import "simple-reveal/index.css";

import clsx from "clsx";
import { useEffect, useRef, useState } from "react";
import type ReactDOM from "react-dom/client";
Expand All @@ -32,8 +25,6 @@ export default function ExampleFrame({ name }: ExampleFrameProps) {

const styles = Array.from(document.styleSheets)
.map((sheet) => {
// FIXME: ugly hack to filter out example-frame styles; should be improved to separately bundle example styles
if (!sheet.href?.includes("page.css")) return "";
try {
return Array.from(sheet.cssRules)
.map((rule) => rule.cssText)
Expand All @@ -53,17 +44,9 @@ export default function ExampleFrame({ name }: ExampleFrameProps) {
#root {
width: 100vw;
height: 100vh;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
margin: 0;
padding: 0;
}
</style>
</head>
Expand Down

0 comments on commit 0fd12aa

Please sign in to comment.