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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. const defaultTheme = require('tailwindcss/defaultTheme')
  2. /** @type {import('tailwindcss').Config} */
  3. module.exports = {
  4. content: [
  5. './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
  6. './src/components/**/*.{js,ts,jsx,tsx,mdx}',
  7. './src/categories/**/*.{js,ts,jsx,tsx,mdx}',
  8. ],
  9. theme: {
  10. fontFamily: {
  11. sans: ['var(--font-sans)', ...defaultTheme.fontFamily.sans],
  12. headings: ['var(--font-headings)', ...defaultTheme.fontFamily.sans],
  13. mono: ['var(--font-mono)', ...defaultTheme.fontFamily.mono],
  14. },
  15. colors: {
  16. 'shade': 'rgb(var(--color-shade))',
  17. 'negative': 'rgb(var(--color-negative))',
  18. 'positive': 'rgb(var(--color-positive))',
  19. 'primary': 'rgb(var(--color-primary))',
  20. 'secondary': 'rgb(var(--color-secondary))',
  21. 'tertiary': 'rgb(var(--color-tertiary))',
  22. 'code-number': 'rgb(var(--color-code-number))',
  23. 'code-keyword': 'rgb(var(--color-code-keyword))',
  24. 'code-type': 'rgb(var(--color-code-type))',
  25. 'code-instance-attribute': 'rgb(var(--color-code-instance-attribute))',
  26. 'code-function': 'rgb(var(--color-code-function))',
  27. 'code-parameter': 'rgb(var(--color-code-parameter))',
  28. 'code-property': 'rgb(var(--color-code-property))',
  29. 'code-string': 'rgb(var(--color-code-string))',
  30. 'code-variable': 'rgb(var(--color-code-variable))',
  31. 'code-regexp': 'rgb(var(--color-code-regexp))',
  32. 'code-url': 'rgb(var(--color-code-url))',
  33. 'code-global': 'rgb(var(--color-code-global))',
  34. 'current': 'currentcolor',
  35. 'inherit': 'inherit',
  36. 'transparent': 'transparent',
  37. },
  38. extend: {
  39. fontSize: {
  40. 'lg': '1.125em',
  41. 'xl': '1.25em',
  42. '2xl': '1.5em',
  43. '3xl': '1.75em',
  44. '4xl': '2em',
  45. '5xl': '3em',
  46. '6xl': '4em',
  47. 'xxs': '0.625rem',
  48. },
  49. borderRadius: {
  50. inherit: 'inherit',
  51. },
  52. minWidth: {
  53. 6: '1.5rem',
  54. 10: '2.5rem',
  55. 12: '3rem',
  56. 16: '4rem',
  57. 48: '12rem',
  58. 64: '16rem',
  59. },
  60. minHeight: {
  61. 6: '1.5rem',
  62. 10: '2.5rem',
  63. 12: '3rem',
  64. 16: '4rem',
  65. 64: '16rem',
  66. },
  67. },
  68. },
  69. plugins: [],
  70. }