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

buttonStyles.ts 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import BaseTheme from '../../../ui/components/BaseTheme.native';
  2. const BUTTON_HEIGHT = BaseTheme.spacing[7];
  3. const button = {
  4. borderRadius: BaseTheme.shape.borderRadius,
  5. height: BUTTON_HEIGHT
  6. };
  7. const buttonLabel = {
  8. ...BaseTheme.typography.bodyShortBold,
  9. padding: 6,
  10. textTransform: 'capitalize'
  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. buttonDisabled: {
  24. ...button,
  25. backgroundColor: BaseTheme.palette.actionDisabled
  26. },
  27. buttonLabelPrimary: {
  28. ...buttonLabel,
  29. color: BaseTheme.palette.text01
  30. },
  31. buttonLabelSecondary: {
  32. ...buttonLabel,
  33. color: BaseTheme.palette.text04
  34. },
  35. buttonLabelDestructive: {
  36. ...buttonLabel,
  37. color: BaseTheme.palette.text01
  38. },
  39. buttonLabelTertiary: {
  40. ...buttonLabel,
  41. color: BaseTheme.palette.text01
  42. }
  43. };