Giter Site home page Giter Site logo

Comments (1)

whitedark9 avatar whitedark9 commented on August 25, 2024

I found it.

export const Italic = ({ children }: { children?: React.ReactNode }) => (
  <em className="decoration-2 decoration-green-700">{children}</em>
);

export const Bold = ({ children }: { children?: React.ReactNode }) => (
  <strong className="text-green-600 dark:text-green-700">{children}</strong>
);

export const Strikethrough = ({ children }: { children?: React.ReactNode }) => (
  <del className="text-rose-600 dark:text-rose-700 decoration-1">
    {children}
  </del>
);

export const Blockquote = ({ children }: { children?: React.ReactNode }) => (
  <blockquote className="italic m-3 px-4 py-2 text-sm font-medium text-neutral-600 bg-green-100 border-s-4 border-green-600 rounded-lg dark:bg-green-800/50 dark:border-green-600 dark:text-white">
    {children}
  </blockquote>
);

const MDXComponents = {
  strong: Bold,
  del: Strikethrough,
  em: Italic,
  blockquote: Blockquote,
};

// theme.config.tsx

const config: DocsThemeConfig = {
  components: MDXComponents
}

But can't still find how to change theme colors - background, text, card, etc.

from nextra-docs-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.