ui-preset.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. colors: {
  11. primary: "var(--primary-color)",
  12. primaryLight: "var(--primary-light-color)",
  13. primaryDark: "var(--primary-dark-color)",
  14. primaryContrast: "var(--primary-contrast-color)",
  15. secondary: "var(--secondary-color)",
  16. secondaryLight: "var(--secondary-light-color)",
  17. secondaryDark: "var(--secondary-dark-color)",
  18. accent: "var(--accent-color)",
  19. accentLight: "var(--accent-light-color)",
  20. accentDark: "var(--accent-dark-color)",
  21. accentContrast: "var(--accent-contrast-color)",
  22. divider: "var(--divider-color)",
  23. dividerLight: "var(--divider-light-color)",
  24. dividerDark: "var(--divider-dark-color)",
  25. bannerInfo: "var(--banner-info-color)",
  26. bannerWarning: "var(--banner-warning-color)",
  27. bannerError: "var(--banner-error-color)",
  28. tooltip: "var(--tooltip-color)",
  29. popover: "var(--popover-color)",
  30. gradientFrom: "var(--gradient-from-color)",
  31. gradientVia: "var(--gradient-via-color)",
  32. gradientTo: "var(--gradient-to-color)",
  33. dark: {
  34. 50: "#4a4a4a",
  35. 100: "#3c3c3c",
  36. 200: "#323232",
  37. 300: "#2d2d2d",
  38. 400: "#222222",
  39. 500: "#1f1f1f",
  40. 600: "#1c1c1e",
  41. 700: "#1b1b1b",
  42. 800: "#181818",
  43. 900: "#0f0f0f",
  44. },
  45. light: {
  46. 50: "#fdfdfd",
  47. },
  48. },
  49. fontFamily: {
  50. sans: "var(--font-sans)",
  51. mono: "var(--font-mono)",
  52. },
  53. fontSize: {
  54. tiny: "var(--font-size-tiny)",
  55. body: "var(--font-size-body)",
  56. },
  57. lineHeight: {
  58. body: "var(--line-height-body)",
  59. },
  60. cursor: {
  61. nsResize: "ns-resize",
  62. grab: "grab",
  63. grabbing: "grabbing",
  64. },
  65. spacing: {
  66. 0.25: "0.0625rem",
  67. 0.75: "0.1875rem",
  68. 20: "5rem",
  69. 26: "6.5rem",
  70. 46: "11.5rem",
  71. },
  72. minWidth: {
  73. 4: "1rem",
  74. 5: "1.25rem",
  75. 20: "5rem",
  76. 46: "11.5rem",
  77. },
  78. minHeight: {
  79. 5: "1.25rem",
  80. 46: "11.5rem",
  81. },
  82. maxWidth: {
  83. "1/2": "50%",
  84. "1/3": "33%",
  85. "3/4": "75%",
  86. 46: "11.5rem",
  87. },
  88. maxHeight: {
  89. 46: "11.5rem",
  90. sm: "24rem",
  91. md: "28rem",
  92. lg: "32rem",
  93. },
  94. backgroundOpacity: {
  95. 15: "0.15",
  96. },
  97. screens: {
  98. "<sm": { max: "640px" },
  99. },
  100. },
  101. },
  102. } satisfies Config