Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme | no light mode support ? #668

Closed
5 tasks done
sreehari2003 opened this issue Apr 12, 2023 · 1 comment
Closed
5 tasks done

Theme | no light mode support ? #668

sreehari2003 opened this issue Apr 12, 2023 · 1 comment

Comments

@sreehari2003
Copy link

Describe the bug

so i was trying to render a API json but the generated swagger is in dark mode can I change that into light mode ?

Reproduction

import { GetStaticProps, InferGetStaticPropsType } from "next"; import { createSwaggerSpec } from "next-swagger-doc"; import dynamic from "next/dynamic"; import Sample from "../public/sample.json"; import "swagger-ui-react/swagger-ui.css"; const SwaggerUI = dynamic<{ spec: any; // @ts-ignore }>(import("swagger-ui-react"), { ssr: false }); function ApiDoc({ spec }: InferGetStaticPropsType<typeof getStaticProps>) { return <SwaggerUI spec={spec} />; } export const getStaticProps: GetStaticProps = async () => { const spec: Record<string, any> = createSwaggerSpec({ definition: Sample, }); return { props: { spec, }, }; }; export default ApiDoc;

System Info

windos 10 , 32gb , i7

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@sreehari2003
Copy link
Author

sorry , next js now comes with some global CSS whcij caused all problems , btw thanks for the nice package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant