Giter VIP home page Giter VIP logo

Comments (3)

adamwathan avatar adamwathan commented on July 30, 2024 2

For now I'd like to keep the customization stuff as-is, as even if we did support a way to just use the user's color config instead of the default there is no way of guaranteeing the styles even exist, or that they have the right perceived brightness to even look correct. I think it's simpler to just let people override the colors using the current API for now than to try and get too clever with that stuff.

Eventually we'd like to add some higher-level options so you can just do stuff like bodyColor: #444 or headingColor: #000. We nested all of the existing options under css to reserve the root-level for ideas like this once we have a better sense of exactly what we should provide 👍

from tailwindcss-typography.

RomainMazB avatar RomainMazB commented on July 30, 2024

Hi @RubenVanEldik ,
I've just looked into the sources for another thing and land on your issue just before go away.

It looks like it's the expected behaviour but you can override it using the theme, even if it would be fastidious (you'll need to override 20 properties):

module.exports = {
    theme: {
        typography: {
            default: {
                css: {
                    color: yourGray[700],
                    a: {
                        color: yourGray[700]
                    }
                    // ...
                },
            },
        },
    }
}

from tailwindcss-typography.

RubenVanEldik avatar RubenVanEldik commented on July 30, 2024

@RomainMazB Thank you for your quick response!

I understand now why this is expected behaviour. I'll customize it manually for now.

It might be a good idea to have a plugin option to use the custom colors instead of the default colors, since the colors are probably the main thing people would like to customize. @adamwathan would you be open for a pull request for this?

from tailwindcss-typography.

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.