您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

buttonStyles.ts 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.ui08
  30. },
  31. buttonLabelPrimary: {
  32. ...buttonLabel,
  33. color: BaseTheme.palette.text01
  34. },
  35. buttonLabelPrimaryText: {
  36. ...buttonLabel,
  37. color: BaseTheme.palette.action01
  38. },
  39. buttonLabelSecondary: {
  40. ...buttonLabel,
  41. color: BaseTheme.palette.text04
  42. },
  43. buttonLabelDestructive: {
  44. ...buttonLabel,
  45. color: BaseTheme.palette.text01
  46. },
  47. buttonLabelDestructiveText: {
  48. ...buttonLabel,
  49. color: BaseTheme.palette.actionDanger
  50. },
  51. buttonLabelTertiary: {
  52. ...buttonLabel,
  53. color: BaseTheme.palette.text01,
  54. marginHorizontal: BaseTheme.spacing[2],
  55. textAlign: 'center'
  56. },
  57. buttonLabelTertiaryDisabled: {
  58. ...buttonLabel,
  59. color: BaseTheme.palette.text03,
  60. textAlign: 'center'
  61. }
  62. };