primitives.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { tv } from "tailwind-variants";
  2. export const title = tv({
  3. base: "tracking-tight inline font-semibold",
  4. variants: {
  5. color: {
  6. violet: "from-[#FF1CF7] to-[#b249f8]",
  7. yellow: "from-[#FF705B] to-[#FFB457]",
  8. blue: "from-[#5EA2EF] to-[#0072F5]",
  9. cyan: "from-[#00b7fa] to-[#01cfea]",
  10. green: "from-[#6FEE8D] to-[#17c964]",
  11. pink: "from-[#FF72E1] to-[#F54C7A]",
  12. foreground: "dark:from-[#FFFFFF] dark:to-[#4B4B4B]",
  13. },
  14. size: {
  15. sm: "text-3xl lg:text-4xl",
  16. md: "text-[2.3rem] lg:text-5xl leading-9",
  17. lg: "text-4xl lg:text-6xl",
  18. },
  19. fullWidth: {
  20. true: "w-full block",
  21. },
  22. },
  23. defaultVariants: {
  24. size: "md",
  25. },
  26. compoundVariants: [
  27. {
  28. color: [
  29. "violet",
  30. "yellow",
  31. "blue",
  32. "cyan",
  33. "green",
  34. "pink",
  35. "foreground",
  36. ],
  37. class: "bg-clip-text text-transparent bg-gradient-to-b",
  38. },
  39. ],
  40. });
  41. export const subtitle = tv({
  42. base: "w-full md:w-1/2 my-2 text-lg lg:text-xl text-default-600 block max-w-full",
  43. variants: {
  44. fullWidth: {
  45. true: "!w-full",
  46. },
  47. },
  48. defaultVariants: {
  49. fullWidth: true,
  50. },
  51. });