profiles.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. export const settingsProfiles = {
  2. profile_sizes: {
  3. default_size: 'base',
  4. '3xs': {
  5. container: 'w-4 h-4',
  6. width: 16,
  7. height: 16,
  8. font: 'text-[10px] leading-4',
  9. letter_font: 'text-[8px] font-semibold',
  10. },
  11. '2xs': {
  12. container: 'w-5 h-5',
  13. width: 20,
  14. height: 20,
  15. font: 'text-xs leading-5',
  16. letter_font: 'text-[10px] font-semibold',
  17. },
  18. xs: {
  19. container: 'w-6 h-6',
  20. width: 24,
  21. height: 24,
  22. font: 'text-xs leading-5 font-semibold',
  23. letter_font: 'text-xs font-semibold',
  24. },
  25. sm: {
  26. container: 'w-8 h-8',
  27. width: 32,
  28. height: 32,
  29. font: 'text-sm tracking-tight font-semibold',
  30. letter_font: 'text-sm font-semibold',
  31. },
  32. md: {
  33. container: 'w-9 h-9',
  34. width: 36,
  35. height: 36,
  36. font: 'text-sm leading-5 tracking-tight font-semibold',
  37. letter_font: 'text-base font-semibold',
  38. },
  39. base: {
  40. container: 'w-11 h-11',
  41. width: 44,
  42. height: 44,
  43. font: 'text-base font-semibold leading-6 web:hover:underline',
  44. letter_font: 'text-lg font-semibold',
  45. },
  46. lg: {
  47. container: 'w-12 h-12',
  48. width: 48,
  49. height: 48,
  50. font: 'text-base font-semibold',
  51. letter_font: 'text-xl font-semibold',
  52. },
  53. xl: {
  54. container: 'w-14 h-14',
  55. width: 56,
  56. height: 56,
  57. font: 'text-lg font-semibold',
  58. letter_font: 'text-2xl font-semibold',
  59. },
  60. '2xl': {
  61. container: 'w-24 h-24',
  62. width: 96,
  63. height: 96,
  64. font: 'text-xl font-semibold',
  65. letter_font: 'text-3xl font-semibold',
  66. },
  67. '3xl': {
  68. container: 'w-40 h-40',
  69. width: 160,
  70. height: 160,
  71. font: 'text-2xl font-semibold',
  72. letter_font: 'text-5xl font-semibold',
  73. },
  74. '4xl': {
  75. container: 'w-80 h-80',
  76. width: 320,
  77. height: 320,
  78. font: 'text-3xl font-semibold',
  79. letter_font: 'text-8xl font-semibold',
  80. },
  81. // Applied when Profile `animated` is set so displaySize swaps interpolate.
  82. size_transition: 'web:transition-[width,height] web:duration-300 web:ease-out motion-reduce:transition-none',
  83. },
  84. // Avatar placeholder colors (bg-{color}-500, see getRandomColor). When changing this list,
  85. // update the matching @source inline("bg-{…}-500") line in design/styles/utilities.css.
  86. profile_colors: [
  87. 'orange',
  88. 'yellow',
  89. 'green',
  90. 'teal',
  91. 'sky',
  92. 'indigo',
  93. 'purple',
  94. 'pink',
  95. 'rose',
  96. 'red',
  97. ]
  98. }