Design system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

119 lines
2.9 KiB

  1. import {Config} from 'tailwindcss';
  2. import defaultTheme from 'tailwindcss/defaultTheme';
  3. import {
  4. radioButtonPlugin,
  5. menuSelectPlugin,
  6. radioTickBoxPlugin,
  7. dropdownSelectPlugin,
  8. } from '../../categories/web/choice/react/src';
  9. import {
  10. colorPickerPlugin,
  11. } from '../../categories/web/color/react/src';
  12. import {
  13. menuMultiSelectPlugin,
  14. tagInputPlugin,
  15. toggleButtonPlugin,
  16. toggleSwitchPlugin,
  17. toggleTickBoxPlugin,
  18. } from '../../categories/web/multichoice/react/src';
  19. import {
  20. numberSpinnerPlugin,
  21. sliderPlugin,
  22. } from '../../categories/web/number/react/src';
  23. import {
  24. dateDropdownPlugin,
  25. timeSpinnerPlugin,
  26. } from '../../categories/web/temporal/react/src';
  27. const config: Config = {
  28. content: [
  29. '../../categories/web/*/react/src/**/*.(ts|tsx)',
  30. './.storybook/**/*.html',
  31. ],
  32. theme: {
  33. fontFamily: {
  34. sans: ['var(--font-sans)', ...defaultTheme.fontFamily.sans],
  35. headings: ['var(--font-headings)', ...defaultTheme.fontFamily.sans],
  36. mono: ['var(--font-mono)', ...defaultTheme.fontFamily.mono],
  37. inherit: ['inherit'],
  38. },
  39. colors: {
  40. 'sidebar': 'rgb(var(--color-sidebar)',
  41. 'topbar': 'rgb(var(--color-topbar)',
  42. 'shade': 'rgb(var(--color-shade))',
  43. 'negative': 'rgb(var(--color-negative))',
  44. 'positive': 'rgb(var(--color-positive))',
  45. 'primary': 'rgb(var(--color-primary))',
  46. 'secondary': 'rgb(var(--color-secondary))',
  47. 'tertiary': 'rgb(var(--color-tertiary))',
  48. 'code-number': 'rgb(var(--color-code-number))',
  49. 'code-keyword': 'rgb(var(--color-code-keyword))',
  50. 'code-type': 'rgb(var(--color-code-type))',
  51. 'code-instance-attribute': 'rgb(var(--color-code-instance-attribute))',
  52. 'code-function': 'rgb(var(--color-code-function))',
  53. 'code-parameter': 'rgb(var(--color-code-parameter))',
  54. 'code-property': 'rgb(var(--color-code-property))',
  55. 'code-string': 'rgb(var(--color-code-string))',
  56. 'code-variable': 'rgb(var(--color-code-variable))',
  57. 'code-regexp': 'rgb(var(--color-code-regexp))',
  58. 'code-url': 'rgb(var(--color-code-url))',
  59. 'code-global': 'rgb(var(--color-code-global))',
  60. 'current': 'currentcolor',
  61. 'inherit': 'inherit',
  62. 'transparent': 'transparent',
  63. },
  64. extend: {
  65. fontSize: {
  66. 'lg': '1.125em',
  67. 'xl': '1.25em',
  68. '2xl': '1.5em',
  69. '3xl': '1.75em',
  70. '4xl': '2em',
  71. '5xl': '3em',
  72. '6xl': '4em',
  73. 'xxs': '0.625rem',
  74. },
  75. borderRadius: {
  76. inherit: 'inherit',
  77. },
  78. minWidth: {
  79. 6: '1.5rem',
  80. 10: '2.5rem',
  81. 12: '3rem',
  82. 16: '4rem',
  83. 48: '12rem',
  84. 64: '16rem',
  85. },
  86. minHeight: {
  87. 6: '1.5rem',
  88. 10: '2.5rem',
  89. 12: '3rem',
  90. 16: '4rem',
  91. 64: '16rem',
  92. },
  93. strokeWidth: {
  94. 3: '3',
  95. },
  96. },
  97. },
  98. plugins: [
  99. radioButtonPlugin,
  100. menuSelectPlugin,
  101. radioTickBoxPlugin,
  102. dropdownSelectPlugin,
  103. colorPickerPlugin,
  104. menuMultiSelectPlugin,
  105. tagInputPlugin,
  106. toggleButtonPlugin,
  107. toggleSwitchPlugin,
  108. toggleTickBoxPlugin,
  109. numberSpinnerPlugin,
  110. sliderPlugin,
  111. dateDropdownPlugin,
  112. timeSpinnerPlugin,
  113. ],
  114. };
  115. export default config;