Giter VIP home page Giter VIP logo

Comments (3)

juskek avatar juskek commented on June 15, 2024

Had to set darkMode: 'false' in tailwind.config.js

Would be cool if there was a way to style the KBar directly though

from tailwind-nextjs-starter-blog.

PxlSyl avatar PxlSyl commented on June 15, 2024

Had to set darkMode: 'false' in tailwind.config.js

Would be cool if there was a way to style the KBar directly though

It' possible, but you'll need to copy paste the kbar components from Pliny in your app, and reorganize imports. I did it for my unofficial i18n version (in my case, to manage translations)

from tailwind-nextjs-starter-blog.

timlrx avatar timlrx commented on June 15, 2024

Hi @juskek, it follows the tailwind dark mode setting of the site. Rather than modify tailwind.config.js, I suggest keeping the default and modifying siteMetadata - this will propagate the changes correctly (if you toggle the theme switch on the demo website, you can see that the kbar search also changes accordingly).

For other changes and maximum flexibility, it will be easier to copy the code from pliny and modify the tailwind styles accordingly.

from tailwind-nextjs-starter-blog.

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.