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.
 
 
 

68 lines
2.1 KiB

  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. },
  37. extend: {
  38. fontSize: {
  39. 'lg': '1.125em',
  40. 'xl': '1.25em',
  41. '2xl': '1.5em',
  42. '3xl': '1.75em',
  43. '4xl': '2em',
  44. '5xl': '3em',
  45. '6xl': '4em',
  46. 'xxs': '0.625rem',
  47. },
  48. borderRadius: {
  49. inherit: 'inherit',
  50. },
  51. minWidth: {
  52. 6: '1.5rem',
  53. 10: '2.5rem',
  54. 12: '3rem',
  55. 16: '4rem',
  56. },
  57. minHeight: {
  58. 10: '2.5rem',
  59. 12: '3rem',
  60. 16: '4rem',
  61. 64: '16rem',
  62. },
  63. },
  64. },
  65. plugins: [],
  66. }