You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

buttonStyles.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import BaseTheme from '../../../ui/components/BaseTheme.native';
  2. const BUTTON_HEIGHT = BaseTheme.spacing[7];
  3. const button = {
  4. borderRadius: BaseTheme.shape.borderRadius,
  5. display: 'flex',
  6. height: BUTTON_HEIGHT,
  7. justifyContent: 'center'
  8. };
  9. const buttonLabel = {
  10. ...BaseTheme.typography.bodyShortBold,
  11. textTransform: 'capitalize'
  12. };
  13. export default {
  14. button: {
  15. ...button
  16. },
  17. buttonLabel: {
  18. ...buttonLabel
  19. },
  20. buttonLabelDisabled: {
  21. ...buttonLabel,
  22. color: BaseTheme.palette.text03
  23. },
  24. buttonDisabled: {
  25. ...button,
  26. backgroundColor: BaseTheme.palette.actionDisabled
  27. },
  28. buttonLabelPrimary: {
  29. ...buttonLabel,
  30. color: BaseTheme.palette.text01
  31. },
  32. buttonLabelSecondary: {
  33. ...buttonLabel,
  34. color: BaseTheme.palette.text04
  35. },
  36. buttonLabelDestructive: {
  37. ...buttonLabel,
  38. color: BaseTheme.palette.text01
  39. },
  40. buttonLabelTertiary: {
  41. ...buttonLabel,
  42. color: BaseTheme.palette.text01
  43. }
  44. };