Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 2.15 KB

TODO.md

File metadata and controls

50 lines (45 loc) · 2.15 KB

TODO

  • 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 on errorMessage && but use custom data-... + group-... instead
  • update version

Tips

  • add animations & don't forget motion-reduce:transition-none
  • className
    • use attributes based on data- for conditional classnames (isSelected, ...)
    • ⚠️ don't forget the focus: state (keyboard selection) ⚠️
    • don't hesitate to override the className property provided by react-aria-component with className?: string as with tailwindCss & react-aria's attributes based on data- we shouldn't need state-dependant classNames
  • don't use the zinc color but gray instead
  • for background colors:
    • replace white by bg-th (and hover:bg-th-hover when needed)
    • replace dark:bg-gray-900 by dark:bg-th-dark (and dark:hover:bg-th-dark-hover when needed)
  • for text colors:
    • replace text-gray-500 by text-th
    • replace dark:text-gray-400 by dark:text-th-dark
    • also available: text-th-reversed & text-th-dark-reversed
  • for border colors:
    • replace border-gray-700 by border-th
    • replace dark:border-gray-300 by dark:border-th-dark
  • for primary colors use ...-th-primary or ...-th-dark-primary
  • for sizes (width & height)
    • replace w-4 h-4 by w-icon h-icon
    • replace h-9 by h-input
  • for opacity
    • replace opacity-40 by opacity-disabled
  • for line height
    • replace leading-9 by leading-th
  • for red colors
    • use *-error & *-error-dark variants (for text, border & ring)

tools

  • run bun run theme to generate theme values from tailwindCss colors