theme.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/theme.json",
  3. "version": 2,
  4. "settings": {
  5. "appearanceTools": true,
  6. "custom": {
  7. "spacing": {
  8. "small": "clamp(20px, 4vw, 40px)",
  9. "medium": "clamp(30px, 8vw, 100px)",
  10. "large": "clamp(100px, 12vw, 460px)",
  11. "outer": "min(4vw, 90px)"
  12. },
  13. "button": {
  14. "border": {
  15. "radius": "6px"
  16. },
  17. "hover": {
  18. "color": {
  19. "text": "var(--wp--preset--color--background)",
  20. "background": "var(--wp--preset--color--foreground)"
  21. },
  22. "border": {
  23. "color": "var(--wp--preset--color--foreground)"
  24. }
  25. }
  26. }
  27. },
  28. "color": {
  29. "palette": [
  30. {
  31. "slug": "background",
  32. "color": "#000000",
  33. "name": "Background"
  34. },
  35. {
  36. "slug": "primary",
  37. "color": "#FFF48D",
  38. "name": "Primary"
  39. },
  40. {
  41. "slug": "foreground",
  42. "color": "#FFFFFF",
  43. "name": "Foreground"
  44. },
  45. {
  46. "slug": "tertiary",
  47. "color": "#24231D",
  48. "name": "Tertiary"
  49. }
  50. ]
  51. },
  52. "layout": {
  53. "contentSize": "652px",
  54. "wideSize": "1061px"
  55. },
  56. "spacing": {
  57. "units": [
  58. "%",
  59. "px",
  60. "em",
  61. "rem",
  62. "vh",
  63. "vw"
  64. ]
  65. },
  66. "typography": {
  67. "fluid": true,
  68. "fontFamilies": [
  69. {
  70. "fontFamily": "\"DM Sans\", sans-serif",
  71. "slug": "dm-sans",
  72. "name": "Body (DM Sans)",
  73. "fontFace": [
  74. {
  75. "fontFamily": "DM Sans",
  76. "fontDisplay": "block",
  77. "fontWeight": "400",
  78. "fontStyle": "normal",
  79. "fontStretch": "normal",
  80. "src": [ "file:./assets/fonts/DMSans-Regular.woff2" ]
  81. },
  82. {
  83. "fontFamily": "DM Sans",
  84. "fontDisplay": "block",
  85. "fontWeight": "700",
  86. "fontStyle": "normal",
  87. "fontStretch": "normal",
  88. "src": [ "file:./assets/fonts/DMSans-Bold.woff2" ]
  89. },
  90. {
  91. "fontFamily": "DM Sans",
  92. "fontDisplay": "block",
  93. "fontWeight": "400",
  94. "fontStyle": "italic",
  95. "fontStretch": "normal",
  96. "src": [ "file:./assets/fonts/DMSans-Italic.woff2" ]
  97. },
  98. {
  99. "fontFamily": "DM Sans",
  100. "fontDisplay": "block",
  101. "fontWeight": "700",
  102. "fontStyle": "italic",
  103. "fontStretch": "normal",
  104. "src": [ "file:./assets/fonts/DMSans-BoldItalic.woff2" ]
  105. }
  106. ]
  107. }
  108. ],
  109. "fontSizes": [
  110. {
  111. "name": "Small",
  112. "fluid": false,
  113. "size": "1rem",
  114. "slug": "small"
  115. },
  116. {
  117. "name": "Normal",
  118. "fluid": false,
  119. "size": "1.125rem",
  120. "slug": "normal"
  121. },
  122. {
  123. "name": "Medium",
  124. "fluid": false,
  125. "size": "1.5rem",
  126. "slug": "medium"
  127. },
  128. {
  129. "name": "Large",
  130. "fluid": false,
  131. "size": "1.75rem",
  132. "slug": "large"
  133. },
  134. {
  135. "name": "Huge",
  136. "fluid": {
  137. "min": "2rem",
  138. "max": "2.625rem"
  139. },
  140. "size": "2rem",
  141. "slug": "huge"
  142. }
  143. ]
  144. }
  145. },
  146. "styles": {
  147. "blocks": {
  148. "core/heading": {
  149. "typography": {
  150. "fontWeight": "400"
  151. }
  152. },
  153. "core/paragraph": {
  154. "typography": {
  155. "lineHeight": "1.6"
  156. }
  157. },
  158. "core/site-title": {
  159. "typography": {
  160. "fontWeight": "400"
  161. },
  162. "elements": {
  163. "link": {
  164. "typography": {
  165. "textDecoration": "none"
  166. }
  167. }
  168. }
  169. },
  170. "core/post-title": {
  171. "typography": {
  172. "fontSize": "min(max(2.625rem, 5vw), 4.5rem)",
  173. "lineHeight": "1.17",
  174. "fontWeight": "400"
  175. }
  176. },
  177. "core/post-date": {
  178. "typography": {
  179. "textTransform": "uppercase",
  180. "fontSize": "var(--wp--preset--font-size--small)",
  181. "lineHeight": "1.25rem"
  182. }
  183. },
  184. "core/separator": {
  185. "border": {
  186. "color": "var(--wp--preset--color--primary)",
  187. "width": "1px"
  188. }
  189. },
  190. "core/post-comments": {
  191. "elements": {
  192. "h3": {
  193. "typography": {
  194. "fontSize": "var(--wp--preset--font-size--large)"
  195. }
  196. }
  197. }
  198. },
  199. "core/navigation": {
  200. "elements": {
  201. "link": {
  202. ":hover": {
  203. "color": {
  204. "text": "var(--wp--preset--color--primary)"
  205. }
  206. }
  207. }
  208. }
  209. }
  210. },
  211. "color": {
  212. "background": "var(--wp--preset--color--background)",
  213. "text": "var(--wp--preset--color--foreground)"
  214. },
  215. "elements": {
  216. "button": {
  217. "border": {
  218. "radius": "var(--wp--custom--button--border--radius)",
  219. "color": "var(--wp--preset--color--primary)",
  220. "width": "1px",
  221. "style": "solid"
  222. },
  223. "color": {
  224. "background": "var(--wp--preset--color--primary)",
  225. "text": "var(--wp--preset--color--background)"
  226. },
  227. ":hover": {
  228. "color": {
  229. "text": "var(--wp--preset--color--background)",
  230. "background": "var(--wp--preset--color--foreground)"
  231. },
  232. "border": {
  233. "color": "var(--wp--preset--color--foreground)"
  234. }
  235. },
  236. ":active": {
  237. "color": {
  238. "text": "var(--wp--preset--color--background)",
  239. "background": "var(--wp--preset--color--foreground)"
  240. },
  241. "border": {
  242. "color": "var(--wp--preset--color--foreground)"
  243. }
  244. },
  245. ":focus": {
  246. "color": {
  247. "text": "var(--wp--preset--color--background)",
  248. "background": "var(--wp--preset--color--foreground)"
  249. },
  250. "border": {
  251. "color": "var(--wp--preset--color--foreground)"
  252. }
  253. }
  254. },
  255. "h1": {
  256. "typography": {
  257. "fontSize": "min(max(2.625rem, 5vw), 4.5rem)",
  258. "lineHeight": "1.1"
  259. }
  260. },
  261. "h2": {
  262. "typography": {
  263. "fontSize": "min(max(2.25rem, 5vw), 3.375rem)",
  264. "lineHeight": "1.1"
  265. }
  266. },
  267. "h3": {
  268. "typography": {
  269. "fontSize": "min(max(2rem, 5vw), 2.625rem)",
  270. "lineHeight": "1.2"
  271. }
  272. },
  273. "h4": {
  274. "typography": {
  275. "fontSize": "1.75rem",
  276. "lineHeight": "1.6"
  277. }
  278. },
  279. "h5": {
  280. "typography": {
  281. "fontSize": "1.25rem",
  282. "lineHeight": "1.6"
  283. }
  284. },
  285. "h6": {
  286. "typography": {
  287. "fontSize": "1rem",
  288. "lineHeight": "1.6"
  289. }
  290. },
  291. "link": {
  292. "color": {
  293. "text": "var(--wp--preset--color--foreground)"
  294. },
  295. "typography": {
  296. "textDecoration": "underline 0.075ex"
  297. },
  298. ":hover": {
  299. "color": {
  300. "text": "var(--wp--preset--color--primary)"
  301. },
  302. "typography": {
  303. "textDecoration": "none"
  304. }
  305. },
  306. ":active": {
  307. "color": {
  308. "text": "var(--wp--preset--color--primary)"
  309. }
  310. },
  311. ":focus": {
  312. "color": {
  313. "text": "var(--wp--preset--color--primary)"
  314. },
  315. "typography": {
  316. "textDecoration": "none"
  317. }
  318. }
  319. }
  320. },
  321. "spacing": {
  322. "blockGap": "1.25rem"
  323. },
  324. "typography": {
  325. "fontFamily": "var(--wp--preset--font-family--dm-sans)",
  326. "fontSize": "var(--wp--preset--font-size--normal)",
  327. "fontWeight": "400",
  328. "lineHeight": "1.5"
  329. }
  330. },
  331. "templateParts": [
  332. {
  333. "name": "header",
  334. "title": "Header",
  335. "area": "header"
  336. },
  337. {
  338. "name": "footer",
  339. "title": "Footer",
  340. "area": "footer"
  341. }
  342. ]
  343. }