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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. };
  12. export default {
  13. button: {
  14. ...button
  15. },
  16. buttonLabel: {
  17. ...buttonLabel
  18. },
  19. buttonLabelDisabled: {
  20. ...buttonLabel,
  21. color: BaseTheme.palette.text03
  22. },
  23. buttonContent: {
  24. height: BUTTON_HEIGHT
  25. },
  26. buttonDisabled: {
  27. ...button,
  28. backgroundColor: BaseTheme.palette.ui08
  29. },
  30. buttonLabelPrimary: {
  31. ...buttonLabel,
  32. color: BaseTheme.palette.text01
  33. },
  34. buttonLabelPrimaryText: {
  35. ...buttonLabel,
  36. color: BaseTheme.palette.action01
  37. },
  38. buttonLabelSecondary: {
  39. ...buttonLabel,
  40. color: BaseTheme.palette.text04
  41. },
  42. buttonLabelDestructive: {
  43. ...buttonLabel,
  44. color: BaseTheme.palette.text01
  45. },
  46. buttonLabelDestructiveText: {
  47. ...buttonLabel,
  48. color: BaseTheme.palette.actionDanger
  49. },
  50. buttonLabelTertiary: {
  51. ...buttonLabel,
  52. color: BaseTheme.palette.text01,
  53. marginHorizontal: BaseTheme.spacing[2],
  54. textAlign: 'center'
  55. },
  56. buttonLabelTertiaryDisabled: {
  57. ...buttonLabel,
  58. color: BaseTheme.palette.text03,
  59. textAlign: 'center'
  60. }
  61. };