utilities.css 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Custom Tailwind v4 utilities migrated from packages/config/ui.config.js
  3. * (addUtilities + matchUtilities) and packages/config/tailwind.config.js
  4. * (the .bg legacy shim).
  5. */
  6. /*
  7. * The `bg` class worked in Tailwind v3 but stopped working in v4. Restored as
  8. * an alias for `bg-default` to avoid a wide rename across the codebase.
  9. * Should be deprecated in favor of `bg-default`.
  10. */
  11. @utility bg {
  12. background-color: hsl(var(--background-default));
  13. }
  14. /*
  15. * Soft shimmer gradient used by LoadingLine.
  16. */
  17. @utility line-loading-bg {
  18. background: rgb(0, 0, 0);
  19. background: linear-gradient(
  20. 90deg,
  21. rgba(0, 0, 0, 0) 0%,
  22. rgba(255, 255, 255, 0.65) 50%,
  23. rgba(0, 0, 0, 0) 100%
  24. );
  25. }
  26. @utility line-loading-bg-light {
  27. background: rgb(0, 0, 0);
  28. background: linear-gradient(
  29. 90deg,
  30. rgba(0, 0, 0, 0) 0%,
  31. rgba(33, 33, 33, 0.65) 50%,
  32. rgba(0, 0, 0, 0) 100%
  33. );
  34. }
  35. /* may be unused — verify before pruning */
  36. @utility mask-fadeout-right {
  37. -webkit-mask-image: linear-gradient(to right, white 98%, transparent 100%);
  38. mask-image: linear-gradient(to right, white 98%, transparent 100%);
  39. }
  40. /* may be unused — verify before pruning */
  41. @utility mask-fadeout-left {
  42. -webkit-mask-image: linear-gradient(to left, white 98%, transparent 100%);
  43. mask-image: linear-gradient(to left, white 98%, transparent 100%);
  44. }
  45. /*
  46. * Functional color utilities. The `--value(--color-*)` token accepts any
  47. * registered --color-* design token (e.g. highlight-foreground-light).
  48. */
  49. /* may be unused — verify before pruning */
  50. @utility highlight-* {
  51. box-shadow: inset 0 1px 0 0 --value(--color-*);
  52. }
  53. /* may be unused — verify before pruning */
  54. @utility subhighlight-* {
  55. box-shadow: inset 0 -1px 0 0 --value(--color-*);
  56. }
  57. /*
  58. * Inline-SVG grid background. Used by ProjectLinker as bg-grid-black/5 and
  59. * bg-grid-white/5 for the integrations onboarding visuals.
  60. */
  61. @utility bg-grid-* {
  62. background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='--value(--color-*)'><path d='M0 .5H31.5V32'/></svg>");
  63. }
  64. @utility no-scrollbar {
  65. -ms-overflow-style: none; /* IE and Edge */
  66. scrollbar-width: none; /* Firefox */
  67. &::-webkit-scrollbar {
  68. display: none; /* Chrome, Safari, Opera */
  69. }
  70. }