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.

50 lines
1.2 KiB

  1. // https://cn.windicss.org/ 中文文档
  2. import { defineConfig } from "windicss/helpers";
  3. import colors from "windicss/colors";
  4. import typography from "windicss/plugin/typography";
  5. export default defineConfig({
  6. darkMode: "class",
  7. attributify: true,
  8. plugins: [typography()],
  9. theme: {
  10. extend: {
  11. zIndex: {
  12. "-1": "-1"
  13. },
  14. screens: {
  15. sm: "576px",
  16. md: "768px",
  17. lg: "992px",
  18. xl: "1200px",
  19. "2xl": "1600px"
  20. },
  21. typography: {
  22. DEFAULT: {
  23. css: {
  24. maxWidth: "65ch",
  25. color: "inherit",
  26. a: {
  27. color: "inherit",
  28. opacity: 0.75,
  29. fontWeight: "500",
  30. textDecoration: "underline",
  31. "&:hover": {
  32. opacity: 1,
  33. color: colors.teal[600]
  34. }
  35. },
  36. b: { color: "inherit" },
  37. strong: { color: "inherit" },
  38. em: { color: "inherit" },
  39. h1: { color: "inherit" },
  40. h2: { color: "inherit" },
  41. h3: { color: "inherit" },
  42. h4: { color: "inherit" },
  43. code: { color: "inherit" }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. });