Design system.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

74 wiersze
1.3 KiB

  1. import { clsx } from 'clsx';
  2. //import { twMerge } from 'tailwind-merge';
  3. import plugin from 'tailwindcss/plugin';
  4. export type { PluginCreator } from 'tailwindcss/types/config';
  5. export const tw = (...args: Parameters<typeof clsx>) => clsx(...args);
  6. export const basePlugin = plugin(
  7. ({ addUtilities, matchUtilities, theme }) => {
  8. matchUtilities(
  9. {
  10. font: (value) => ({
  11. tabSize: value,
  12. }),
  13. },
  14. {
  15. values: theme('fontStretch'),
  16. },
  17. );
  18. addUtilities({
  19. '.linejoin-round': {
  20. 'stroke-linejoin': 'round',
  21. },
  22. '.linecap-round': {
  23. 'stroke-linecap': 'round',
  24. },
  25. });
  26. },
  27. {
  28. theme: {
  29. extend: {
  30. colors: {
  31. 'current': 'currentcolor',
  32. 'inherit': 'inherit',
  33. 'transparent': 'transparent',
  34. },
  35. fontFamily: {
  36. inherit: ['inherit'],
  37. },
  38. fontStretch: {
  39. 'condensed': 'condensed',
  40. 'semi-condensed': 'semi-condensed',
  41. 'expanded': 'expanded',
  42. 'semi-expanded': 'semi-expanded',
  43. 'inherit': 'inherit',
  44. },
  45. borderRadius: {
  46. inherit: 'inherit',
  47. },
  48. minWidth: {
  49. 6: '1.5rem',
  50. 10: '2.5rem',
  51. 12: '3rem',
  52. 16: '4rem',
  53. 48: '12rem',
  54. 64: '16rem',
  55. },
  56. minHeight: {
  57. 6: '1.5rem',
  58. 10: '2.5rem',
  59. 12: '3rem',
  60. 16: '4rem',
  61. 32: '8rem',
  62. 64: '16rem',
  63. },
  64. strokeWidth: {
  65. 3: '3',
  66. },
  67. },
  68. },
  69. },
  70. );