shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.87k stars 1.28k forks source link

White color as primary color #2786

Closed radim10 closed 2 weeks ago

radim10 commented 8 months ago

How to use white color as primary color? When using hue there is no meaningful representation because white is achromatic, meaning it doesn't contain hue information.

dimaMachina commented 8 months ago

Currently it doesn't possible, PR welcome

SwarajBaral commented 7 months ago

I would love to fix this. Could you maybe point me in the right direction ? From what I understand from this ticket, the primary color list must be extended to include white ?

dimaMachina commented 7 months ago

I would love to fix this. Could you maybe point me in the right direction ? From what I understand from this ticket, the primary color list must be extended to include white ?

I am not sure how to support white color, currently in this place we generate primary variants https://github.com/shuding/nextra/blob/b47880d504a4961ba3229419abdd9e62d327d6e3/packages/nextra-theme-docs/tailwind.config.ts#L4-L11

and in this place we inject CSS variables https://github.com/shuding/nextra/blob/b47880d504a4961ba3229419abdd9e62d327d6e3/packages/nextra-theme-docs/src/components/head.tsx#L59