badges.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. export const settingsBadges = {
  2. badges: {
  3. 'u-badge-default': ' bg-transparent flex items-center justify-center ',
  4. 'u-badge-destructive': ' bg-destructive flex items-center justify-center ',
  5. 'u-badge-outline': ' bg-transparent border border-border/60 flex items-center justify-center ',
  6. 'u-badge-accent': ' bg-accent flex items-center justify-center',
  7. 'u-badge-secondary': ' bg-secondary flex items-center justify-center ',
  8. 'u-badge-text': ' font-medium whitespace-nowrap flex items-center justify-center ',
  9. 'u-badge-default-text': ' font-medium text-primary whitespace-nowrap flex items-center justify-center ',
  10. 'u-badge-destructive-text': ' font-medium text-destructive-foreground whitespace-nowrap flex items-center justify-center ',
  11. 'u-badge-outline-text': ' font-medium text-card-foreground whitespace-nowrap flex items-center justify-center ',
  12. 'u-badge-accent-text': ' font-medium text-accent-foreground whitespace-nowrap flex items-center justify-center ',
  13. 'u-badge-secondary-text': ' font-medium text-secondary-foreground whitespace-nowrap flex items-center justify-center ',
  14. },
  15. badge_sizes: {
  16. default_size: 'sm',
  17. '3xs': {
  18. // Matches profile_sizes['3xs']: h-4 (16px)
  19. padding: ' ',
  20. wide_padding: ' px-0.5 ',
  21. container: ' min-w-4 h-4 overflow-hidden justify-center items-center ',
  22. image_container: ' items-center justify-center rounded overflow-hidden ',
  23. icon_size: 16,
  24. // Labeled chips: sit with 10px type, not the full 16px fill size.
  25. inline_icon_size: 10,
  26. text: ' text-[10px] leading-4 px-0.5 ',
  27. rounded: ' rounded ',
  28. },
  29. '2xs': {
  30. // Matches profile_sizes['2xs']: h-5 (20px)
  31. padding: ' ',
  32. wide_padding: ' px-1 ',
  33. container: ' min-w-5 h-5 gap-0.5 overflow-hidden justify-center items-center ',
  34. image_container: ' items-center justify-center rounded overflow-hidden ',
  35. icon_size: 20,
  36. inline_icon_size: 12,
  37. text: ' text-xs leading-4 px-0.5 ',
  38. rounded: ' rounded ',
  39. },
  40. xs: {
  41. // Matches profile_sizes['xs']: h-6 (24px)
  42. padding: ' ',
  43. wide_padding: ' px-1.5 ',
  44. container: ' min-w-6 h-6 gap-0.5 overflow-hidden justify-center items-center ',
  45. image_container: ' items-center justify-center rounded overflow-hidden ',
  46. icon_size: 24,
  47. inline_icon_size: 12,
  48. text: ' text-xs leading-6 px-0.5 ',
  49. rounded: ' rounded ',
  50. },
  51. sm: {
  52. // Matches profile_sizes['sm']: h-8 (32px)
  53. padding: ' px-1 ',
  54. wide_padding: ' px-2.5 ',
  55. container: ' min-w-7 h-7 gap-1 justify-center items-center ',
  56. image_container: ' items-center justify-center ',
  57. icon_size: 16,
  58. text: ' text-sm leading-7 px-0.5 ',
  59. rounded: ' rounded-lg ',
  60. },
  61. md: {
  62. // Matches profile_sizes['md']: h-9 (36px)
  63. padding: ' px-1.5 ',
  64. wide_padding: ' px-2.5 ',
  65. container: ' min-w-8 h-8 gap-1 justify-center items-center ',
  66. image_container: ' items-center justify-center ',
  67. icon_size: 20,
  68. text: ' text-base leading-9 ',
  69. rounded: ' rounded-lg ',
  70. },
  71. base: {
  72. // Matches profile_sizes['base']: h-10 (40px)
  73. padding: ' px-2 ',
  74. wide_padding: ' px-3 ',
  75. container: ' min-w-9 h-9 gap-1.5 justify-center items-center ',
  76. image_container: ' items-center justify-center ',
  77. icon_size: 24,
  78. text: ' text-base leading-10 ',
  79. rounded: ' rounded-xl ',
  80. },
  81. lg: {
  82. // Matches profile_sizes['lg']: h-12 (48px)
  83. padding: ' px-2 ',
  84. wide_padding: ' px-3 ',
  85. container: ' min-w-12 h-12 gap-1.5 justify-center items-center ',
  86. image_container: ' items-center justify-center ',
  87. icon_size: 28,
  88. text: ' text-lg leading-[48px] ',
  89. rounded: ' rounded-xl ',
  90. },
  91. xl: {
  92. // Matches profile_sizes['xl']: h-14 (56px)
  93. padding: ' px-2.5 ',
  94. wide_padding: ' px-4 ',
  95. container: ' min-w-14 h-14 gap-2 justify-center items-center e ',
  96. image_container: ' items-center justify-center ',
  97. icon_size: 32,
  98. text: ' text-xl leading-[56px] ',
  99. rounded: ' rounded-2xl ',
  100. },
  101. '2xl': {
  102. // Matches profile_sizes['2xl']: h-20 (80px)
  103. padding: ' px-3 ',
  104. wide_padding: ' px-5 ',
  105. container: ' min-w-20 h-20 gap-2 justify-center items-center ',
  106. image_container: ' items-center justify-center ',
  107. icon_size: 48,
  108. text: ' text-2xl leading-[80px] ',
  109. rounded: ' rounded-3xl ',
  110. },
  111. }
  112. }