nuxt-themes / typography

Beautifully customizable Prose components for Nuxt Content.
https://typography.nuxt.space
MIT License
167 stars 8 forks source link

Override specific tokens only #28

Closed Alchez closed 1 year ago

Alchez commented 1 year ago

I don't know if I've setup the theme incorrectly, but I'm facing an issue where all typography in my app is getting overridden.

I only want the theme applied to my code blocks. Is there a way to do that, that I'm missing?

package.json:

"devDependencies": {
    ...
    "@nuxt-themes/typography": "^0.6.0",
    ...
},

nuxt.config.js:

export default defineNuxtConfig({
    ...
    extends: "@nuxt-themes/typography",
    ...
})
Tahul commented 1 year ago

Hey; could you be more precise about what you want to overwrite?

By looking at https://github.com/nuxt-themes/typography/blob/main/tokens.config.ts

You can there see a list of all tokens that you can overwrite from Typography.

I'm closing this as it's the only way to do that, but feel free to re-open if this is unclear.