選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

buttonStyles.ts 1.5KB

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