nextra icon indicating copy to clipboard operation
nextra copied to clipboard

White color as primary color

Open radim10 opened this issue 1 year ago • 3 comments

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.

radim10 avatar Mar 14 '24 11:03 radim10

Currently it doesn't possible, PR welcome

dimaMachina avatar Mar 16 '24 14:03 dimaMachina

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 ?

SwarajBaral avatar Mar 28 '24 12:03 SwarajBaral

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

dimaMachina avatar Mar 28 '24 16:03 dimaMachina