ui-preset.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. import { Config } from "tailwindcss";
  2. import { theme } from 'tailwindcss/defaultConfig'
  3. export default {
  4. content: [],
  5. theme: {
  6. container: {
  7. center: true,
  8. },
  9. extend: {
  10. inset: {
  11. upperPrimaryStickyFold: "var(--upper-primary-sticky-fold)",
  12. upperSecondaryStickyFold: "var(--upper-secondary-sticky-fold)",
  13. upperTertiaryStickyFold: "var(--upper-tertiary-sticky-fold)",
  14. upperFourthStickyFold: "var(--upper-fourth-sticky-fold)",
  15. upperMobilePrimaryStickyFold: "var(--upper-mobile-primary-sticky-fold)",
  16. upperMobileSecondaryStickyFold: "var(--upper-mobile-secondary-sticky-fold)",
  17. upperMobileStickyFold: "var(--upper-mobile-sticky-fold)",
  18. upperMobileTertiaryStickyFold: "var(--upper-mobile-tertiary-sticky-fold)",
  19. lowerPrimaryStickyFold: "var(--lower-primary-sticky-fold)",
  20. lowerSecondaryStickyFold: "var(--lower-secondary-sticky-fold)",
  21. lowerTertiaryStickyFold: "var(--lower-tertiary-sticky-fold)",
  22. lowerFourthStickyFold: "var(--lower-fourth-sticky-fold)",
  23. sidebarPrimaryStickyFold: "var(--sidebar-primary-sticky-fold)",
  24. sidebarSecondaryStickyFold: "var(--line-height-body)",
  25. },
  26. colors: {
  27. primary: "var(--primary-color)",
  28. primaryLight: "var(--primary-light-color)",
  29. primaryDark: "var(--primary-dark-color)",
  30. primaryContrast: "var(--primary-contrast-color)",
  31. secondary: "var(--secondary-color)",
  32. secondaryLight: "var(--secondary-light-color)",
  33. secondaryDark: "var(--secondary-dark-color)",
  34. accent: "var(--accent-color)",
  35. accentLight: "var(--accent-light-color)",
  36. accentDark: "var(--accent-dark-color)",
  37. accentContrast: "var(--accent-contrast-color)",
  38. divider: "var(--divider-color)",
  39. dividerLight: "var(--divider-light-color)",
  40. dividerDark: "var(--divider-dark-color)",
  41. error: "var(--error-color)",
  42. tooltip: "var(--tooltip-color)",
  43. popover: "var(--popover-color)",
  44. gradientFrom: "var(--gradient-from-color)",
  45. gradientVia: "var(--gradient-via-color)",
  46. gradientTo: "var(--gradient-to-color)",
  47. dark: {
  48. 50: "#4a4a4a",
  49. 100: "#3c3c3c",
  50. 200: "#323232",
  51. 300: "#2d2d2d",
  52. 400: "#222222",
  53. 500: "#1f1f1f",
  54. 600: "#1c1c1e",
  55. 700: "#1b1b1b",
  56. 800: "#181818",
  57. 900: "#0f0f0f",
  58. },
  59. light: {
  60. 50: "#fdfdfd",
  61. },
  62. },
  63. fontFamily: {
  64. sans: "var(--font-sans)",
  65. mono: "var(--font-mono)",
  66. icon: "var(--font-icon)",
  67. },
  68. fontSize: {
  69. tiny: "var(--font-size-tiny)",
  70. body: "var(--font-size-body)",
  71. },
  72. lineHeight: {
  73. body: "var(--line-height-body)",
  74. },
  75. cursor: {
  76. nsResize: "ns-resize",
  77. grab: "grab",
  78. grabbing: "grabbing",
  79. },
  80. spacing: {
  81. 0.25: "0.0625rem",
  82. 0.75: "0.1875rem",
  83. 20: "5rem",
  84. 26: "6.5rem",
  85. 46: "11.5rem",
  86. },
  87. minWidth: {
  88. 4: "1rem",
  89. 5: "1.25rem",
  90. 20: "5rem",
  91. 46: "11.5rem",
  92. },
  93. minHeight: {
  94. 5: "1.25rem",
  95. 46: "11.5rem",
  96. },
  97. maxWidth: {
  98. '1/2': '50%',
  99. '1/3': '33%',
  100. '3/4': '75%',
  101. 46: "11.5rem",
  102. },
  103. maxHeight: {
  104. 46: "11.5rem",
  105. sm: "24rem",
  106. md: "28rem",
  107. lg: "32rem",
  108. },
  109. backgroundOpacity: {
  110. 15: "0.15",
  111. },
  112. },
  113. screens: {
  114. sm: "639px",
  115. "<2xl": { max: "1536px" },
  116. "<xl": { max: "1280px" },
  117. "<lg": { max: "1024px" },
  118. "<md": { max: "768px" },
  119. "<sm": { max: "640px" },
  120. ...theme?.screens,
  121. },
  122. },
  123. } satisfies Config