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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. buttonContent: {
  25. height: BUTTON_HEIGHT
  26. },
  27. buttonDisabled: {
  28. ...button,
  29. backgroundColor: BaseTheme.palette.actionDisabled
  30. },
  31. buttonLabelPrimary: {
  32. ...buttonLabel,
  33. color: BaseTheme.palette.text01
  34. },
  35. buttonLabelSecondary: {
  36. ...buttonLabel,
  37. color: BaseTheme.palette.text04
  38. },
  39. buttonLabelDestructive: {
  40. ...buttonLabel,
  41. color: BaseTheme.palette.text01
  42. },
  43. buttonLabelTertiary: {
  44. ...buttonLabel,
  45. color: BaseTheme.palette.text01,
  46. margin: BaseTheme.spacing[3],
  47. textAlign: 'center'
  48. },
  49. buttonLabelTertiaryDisabled: {
  50. ...buttonLabel,
  51. color: BaseTheme.palette.text03,
  52. textAlign: 'center'
  53. }
  54. };