index.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. @tailwind components;
  2. @layer components {
  3. .btn {
  4. @apply inline-flex justify-center items-center cursor-pointer whitespace-nowrap;
  5. }
  6. .btn-disabled {
  7. @apply cursor-not-allowed;
  8. }
  9. .btn-small {
  10. @apply px-2 h-6 rounded-md text-xs font-medium;
  11. }
  12. .btn-medium {
  13. @apply px-3.5 h-8 rounded-lg text-[13px] leading-4 font-medium;
  14. }
  15. .btn-large {
  16. @apply px-4 h-9 rounded-[10px] text-sm font-semibold;
  17. }
  18. .btn-primary {
  19. @apply
  20. shadow
  21. bg-components-button-primary-bg
  22. border-components-button-primary-border
  23. hover:bg-components-button-primary-bg-hover
  24. hover:border-components-button-primary-border-hover
  25. text-components-button-primary-text;
  26. }
  27. .btn-primary.btn-destructive {
  28. @apply
  29. bg-components-button-destructive-primary-bg
  30. border-components-button-destructive-primary-border
  31. hover:bg-components-button-destructive-primary-bg-hover
  32. hover:border-components-button-destructive-primary-border-hover
  33. text-components-button-destructive-primary-text;
  34. }
  35. .btn-primary.btn-disabled {
  36. @apply
  37. shadow-none
  38. bg-components-button-primary-bg-disabled
  39. border-components-button-primary-border-disabled
  40. text-components-button-primary-text-disabled;
  41. }
  42. .btn-primary.btn-destructive.btn-disabled {
  43. @apply
  44. shadow-none
  45. bg-components-button-destructive-primary-bg-disabled
  46. border-components-button-destructive-primary-border-disabled
  47. text-components-button-destructive-primary-text-disabled;
  48. }
  49. .btn-secondary {
  50. @apply
  51. border-[0.5px]
  52. shadow-xs
  53. bg-components-button-secondary-bg
  54. border-components-button-secondary-border
  55. hover:bg-components-button-secondary-bg-hover
  56. hover:border-components-button-secondary-border-hover
  57. text-components-button-secondary-text;
  58. }
  59. .btn-secondary.btn-disabled {
  60. @apply
  61. bg-components-button-secondary-bg-disabled
  62. border-components-button-secondary-border-disabled
  63. text-components-button-secondary-text-disabled;
  64. }
  65. .btn-secondary.btn-destructive {
  66. @apply
  67. bg-components-button-destructive-secondary-bg
  68. border-components-button-destructive-secondary-border
  69. hover:bg-components-button-destructive-secondary-bg-hover
  70. hover:border-components-button-destructive-secondary-border-hover
  71. text-components-button-destructive-secondary-text;
  72. }
  73. .btn-secondary.btn-destructive.btn-disabled {
  74. @apply
  75. bg-components-button-destructive-secondary-bg-disabled
  76. border-components-button-destructive-secondary-border-disabled
  77. text-components-button-destructive-secondary-text-disabled;
  78. }
  79. .btn-secondary-accent {
  80. @apply
  81. border-[0.5px]
  82. shadow-xs
  83. bg-components-button-secondary-bg
  84. border-components-button-secondary-border
  85. hover:bg-components-button-secondary-bg-hover
  86. hover:border-components-button-secondary-border-hover
  87. text-components-button-secondary-accent-text;
  88. }
  89. .btn-secondary-accent.btn-disabled {
  90. @apply
  91. bg-components-button-secondary-bg-disabled
  92. border-components-button-secondary-border-disabled
  93. text-components-button-secondary-accent-text-disabled;
  94. }
  95. .btn-warning {
  96. @apply
  97. bg-components-button-destructive-primary-bg
  98. border-components-button-destructive-primary-border
  99. hover:bg-components-button-destructive-primary-bg-hover
  100. hover:border-components-button-destructive-primary-border-hover
  101. text-components-button-destructive-primary-text;
  102. }
  103. .btn-warning.btn-disabled {
  104. @apply
  105. bg-components-button-destructive-primary-bg-disabled
  106. border-components-button-destructive-primary-border-disabled
  107. text-components-button-destructive-primary-text-disabled;
  108. }
  109. .btn-tertiary {
  110. @apply
  111. bg-components-button-tertiary-bg
  112. hover:bg-components-button-tertiary-bg-hover
  113. text-components-button-tertiary-text;
  114. }
  115. .btn-tertiary.btn-disabled {
  116. @apply
  117. bg-components-button-tertiary-bg-disabled
  118. text-components-button-tertiary-text-disabled;
  119. }
  120. .btn-tertiary.btn-destructive {
  121. @apply
  122. bg-components-button-destructive-tertiary-bg
  123. hover:bg-components-button-destructive-tertiary-bg-hover
  124. text-components-button-destructive-tertiary-text;
  125. }
  126. .btn-tertiary.btn-destructive.btn-disabled {
  127. @apply
  128. bg-components-button-destructive-tertiary-bg-disabled
  129. text-components-button-destructive-tertiary-text-disabled;
  130. }
  131. .btn-ghost {
  132. @apply
  133. hover:bg-components-button-ghost-bg-hover
  134. text-components-button-ghost-text;
  135. }
  136. .btn-ghost.btn-disabled {
  137. @apply
  138. text-components-button-ghost-text-disabled;
  139. }
  140. .btn-ghost.btn-destructive {
  141. @apply
  142. hover:bg-components-button-destructive-ghost-bg-hover
  143. text-components-button-destructive-ghost-text;
  144. }
  145. .btn-ghost.btn-destructive.btn-disabled {
  146. @apply
  147. text-components-button-destructive-ghost-text-disabled;
  148. }
  149. .btn-ghost-accent {
  150. @apply
  151. hover:bg-state-accent-hover
  152. text-components-button-secondary-accent-text;
  153. }
  154. .btn-ghost-accent.btn-disabled {
  155. @apply
  156. text-components-button-secondary-accent-text-disabled;
  157. }
  158. }