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.

92 lines
2.0 KiB

2 years ago
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. content: [
  4. "./components/**/*.{js,vue,ts}",
  5. "./layouts/**/*.vue",
  6. "./pages/**/*.vue",
  7. "./pages/*.vue",
  8. "./plugins/**/*.{js,ts}",
  9. "./nuxt.config.{js,ts}",
  10. ],
  11. corePlugins: {
  12. preflight: false,
  13. textOpacity: false
  14. },
  15. //類名前綴,使用class必須在前面加這個
  16. prefix: "tw-",
  17. important: true,
  18. theme: {
  19. extend: {
  20. colors: {
  21. transparent: "transparent",
  22. primary: {
  23. 1: "#F48800",
  24. 2: "#FAAE69",
  25. 3: "#FFF6EE",
  26. 4: "#f5cda8",
  27. default: "#F48800",
  28. bright: "#FFB70A",
  29. light: "#FAAE69",
  30. pastel: "#FBD480",
  31. pale: "#FFF6EE",
  32. },
  33. secondary: {
  34. default: "#7997FF",
  35. dark: "#5F7FEF",
  36. light: "#A0B5FF",
  37. pale: "#F4F7FF",
  38. },
  39. complementary: {
  40. 1: "#7997FF",
  41. 2: "#F4B927",
  42. 3: "#F4F7FF",
  43. },
  44. neutrals: {
  45. 0: "#F8F8F8",
  46. 100: "#F1F1F1",
  47. 200: "#E5E5E5",
  48. 300: "#CECECE",
  49. 400: "#B5B5B5",
  50. 500: "#9C9C9C",
  51. 600: "#757575",
  52. 700: "#696969",
  53. 800: "#504F4F",
  54. 900: "#343434",
  55. },
  56. base: {
  57. primary: "#232323",
  58. secondary: "#504F4F",
  59. tertiary: "#9C9C9C",
  60. hint: "#B5B5B5",
  61. disable: "#CECECE",
  62. },
  63. error: {
  64. default: "#EF5A5A",
  65. background: "#FFF7F4",
  66. },
  67. warning: {
  68. default: "#FFB70A",
  69. background: "#FFFAEE",
  70. },
  71. success: {
  72. default: "#2DC695",
  73. background: "#F1FFFB",
  74. },
  75. hint: "#504F4F",
  76. white: "#FEFEFE",
  77. black: "#232323",
  78. },
  79. },
  80. screens: {
  81. md: "768px",
  82. lg: "1024px",
  83. xl: "1366px",
  84. },
  85. },
  86. variants: {},
  87. plugins: [
  88. require("@tailwindcss/typography"),
  89. require("@tailwindcss/line-clamp"),
  90. ],
  91. };