- migrate components:
-
Button
-
Checkbox
-
NumberInput
-
TextInput
-
Modal
-
Select
-
- rationalize tailwind theming
- update README by documenting how to theme
-
document group/??? on newly themed components when/if relevant - document how to use icons svg sprite
-
-
Select
: don't rely onerrorMessage &&
but use customdata-...
+group-...
instead - update version
- add animations & don't forget
motion-reduce:transition-none
className
- use attributes based on data- for conditional classnames (isSelected, ...)
- those do come from the official plugin
⚠️ don't forget thefocus:
state (keyboard selection)⚠️ - don't hesitate to override the
className
property provided byreact-aria-component
withclassName?: string
as withtailwindCss
& react-aria's attributes based on data- we shouldn't need state-dependant classNames
- use attributes based on data- for conditional classnames (isSelected, ...)
- don't use the
color butzinc
gray
instead - for background colors:
- replace
bywhite
bg-th
(andhover:bg-th-hover
when needed) - replace
bydark:bg-gray-900
dark:bg-th-dark
(anddark:hover:bg-th-dark-hover
when needed)
- replace
- for text colors:
- replace
bytext-gray-500
text-th
- replace
bydark:text-gray-400
dark:text-th-dark
- also available:
text-th-reversed
&text-th-dark-reversed
- replace
- for border colors:
- replace
byborder-gray-700
border-th
- replace
bydark:border-gray-300
dark:border-th-dark
- replace
- for primary colors use
...-th-primary
or...-th-dark-primary
- for sizes (width & height)
- replace
byw-4 h-4
w-icon h-icon
- replace
byh-9
h-input
- replace
- for opacity
- replace
byopacity-40
opacity-disabled
- replace
- for line height
- replace
byleading-9
leading-th
- replace
- for red colors
- use
*-error
&*-error-dark
variants (for text, border & ring)
- use
- run
bun run theme
to generate theme values from tailwindCss colors