feat(org): Ported themes to ESM and made more things themeable
This commit is contained in:
parent
f950affe88
commit
5728a1d10f
27 changed files with 589 additions and 712 deletions
|
@ -1,19 +1,5 @@
|
|||
import Link from 'next/link'
|
||||
|
||||
export const colors = [
|
||||
'red',
|
||||
'orange',
|
||||
'yellow',
|
||||
'lime',
|
||||
'green',
|
||||
'teal',
|
||||
'cyan',
|
||||
'blue',
|
||||
'indigo',
|
||||
'violet',
|
||||
'purple',
|
||||
]
|
||||
|
||||
export const iconSize = 'h-10 w-10 lg:h-12 lg:w-12'
|
||||
|
||||
export const NavButton = ({
|
||||
|
@ -27,7 +13,7 @@ export const NavButton = ({
|
|||
}) => {
|
||||
const className =
|
||||
'border-0 px-1 lg:px-3 xl:px-4 text-base py-3 md:py-4 text-center flex flex-col items-center 2xl:w-36 ' +
|
||||
`hover:bg-${color}-400 text-${color}-400 hover:text-neutral grow xl:grow-0 relative ${extraClasses} ${
|
||||
`hover:bg-${color} text-${color} hover:text-neutral grow xl:grow-0 relative ${extraClasses} ${
|
||||
active ? 'font-heavy' : ''
|
||||
}`
|
||||
const span = <span className="font-medium text-md hidden md:block md:pt-1 lg:pt-0">{label}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue