tailwind.config.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. content: ["./src/**/*.{js,jsx,ts,tsx}"],
  4. presets: [require("nativewind/preset")],
  5. theme: {
  6. extend: {
  7. colors: {
  8. // — Primary —
  9. primary: {
  10. DEFAULT: "#004ac6",
  11. container: "#2563eb",
  12. fixed: "#dbe1ff",
  13. "fixed-dim": "#b4c5ff",
  14. },
  15. "on-primary": {
  16. DEFAULT: "#ffffff",
  17. container: "#eeefff",
  18. fixed: "#00174b",
  19. "fixed-variant": "#003ea8",
  20. },
  21. // — Secondary —
  22. secondary: {
  23. DEFAULT: "#495c95",
  24. container: "#acbfff",
  25. fixed: "#dbe1ff",
  26. "fixed-dim": "#b4c5ff",
  27. },
  28. "on-secondary": {
  29. DEFAULT: "#ffffff",
  30. container: "#394c84",
  31. fixed: "#00174b",
  32. "fixed-variant": "#31447b",
  33. },
  34. // — Tertiary —
  35. tertiary: {
  36. DEFAULT: "#943700",
  37. container: "#bc4800",
  38. fixed: "#ffdbcd",
  39. "fixed-dim": "#ffb596",
  40. },
  41. "on-tertiary": {
  42. DEFAULT: "#ffffff",
  43. container: "#ffede6",
  44. fixed: "#360f00",
  45. "fixed-variant": "#7d2d00",
  46. },
  47. // — Error —
  48. error: {
  49. DEFAULT: "#ba1a1a",
  50. container: "#ffdad6",
  51. },
  52. "on-error": {
  53. DEFAULT: "#ffffff",
  54. container: "#93000a",
  55. },
  56. // — Surface (Tonal Architecture) —
  57. surface: {
  58. DEFAULT: "#f9f9fe",
  59. dim: "#d9dade",
  60. bright: "#f9f9fe",
  61. variant: "#e2e2e7",
  62. tint: "#0053db",
  63. container: {
  64. DEFAULT: "#ededf2",
  65. lowest: "#ffffff",
  66. low: "#f3f3f8",
  67. high: "#e8e8ed",
  68. highest: "#e2e2e7",
  69. },
  70. },
  71. "on-surface": {
  72. DEFAULT: "#1a1c1f",
  73. variant: "#434655",
  74. },
  75. // — Outline —
  76. outline: {
  77. DEFAULT: "#737686",
  78. variant: "#c3c6d7",
  79. },
  80. // — Background —
  81. background: "#f9f9fe",
  82. "on-background": "#1a1c1f",
  83. // — Inverse —
  84. "inverse-surface": "#2e3034",
  85. "inverse-on-surface": "#f0f0f5",
  86. "inverse-primary": "#b4c5ff",
  87. },
  88. borderRadius: {
  89. DEFAULT: "0.25rem",
  90. lg: "1rem",
  91. xl: "1.5rem",
  92. "2xl": "2rem",
  93. full: "9999px",
  94. },
  95. fontFamily: {
  96. headline: ["System", "PingFang SC", "sans-serif"],
  97. body: ["System", "PingFang SC", "sans-serif"],
  98. label: ["System", "PingFang SC", "sans-serif"],
  99. },
  100. },
  101. },
  102. plugins: [],
  103. };