Giter Club home page Giter Club logo

Comments (6)

SaraVieira avatar SaraVieira commented on May 18, 2024 1

Oh yeah , I get the same now that I notice :(

from code-surfer.

pomber avatar pomber commented on May 18, 2024

What props are you passing to CodeSurfer?

If you are using the theme prop it will use the text and backgroundColor from the prism-react-renderer theme. Not sure about the monospace.

from code-surfer.

kutyel avatar kutyel commented on May 18, 2024

The usual:

<Code
  theme={vsDarkPlus}
  title='before'
  code={require('!raw-loader!./components/datepicker.js')}
  steps={[
    { lines: [6], notes: 'Note for the first step' },
    { range: [5, 9] },
    { tokens: { 9: [3, 4, 5] }, notes: 'Note for the third step' }
  ]}
/>

Apparently, monospace is a theme config from mdx-deck, but it's not being used in code-surfer 🤔

from code-surfer.

pomber avatar pomber commented on May 18, 2024

Regarding monospace: I think I fixed it in v0.3.0 (you'll need to update mdx-deck to last version (1.7.0) too).

For text and background, I don't know. It's a matter of which theme takes precedence: mdx-deck theme or prism-react-renderer theme. I'm open to suggestions.

from code-surfer.

kutyel avatar kutyel commented on May 18, 2024

That worked! Thank you!! 🎉 ❤️

from code-surfer.

SaraVieira avatar SaraVieira commented on May 18, 2024

screen shot 2018-08-30 at 16 12 43

YAAAY

from code-surfer.

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.