diff --git a/assets/tailwind.config.ts b/assets/tailwind.config.ts new file mode 100644 index 00000000..c3573590 --- /dev/null +++ b/assets/tailwind.config.ts @@ -0,0 +1,34 @@ +import colours from "tailwindcss/colors"; +import type { Config } from "tailwindcss"; +import typographyPlugin from "@tailwindcss/typography"; + +export default { + content: ["./source/**/*.twig"], + theme: { + colors: { + black: "#000", + blue: { + primary: "#24608A", + 400: "#60a5fa", + }, + current: "currentColor", + grey: colours.stone, + inherit: "inherit", + transparent: "transparent", + white: "#fff", + }, + + extend: { + fontFamily: { + sans: [ + "Roboto Condensed", + "Arial", + "Helvetica Neue", + "Helvetica", + "sans-serif", + ], + }, + }, + }, + plugins: [typographyPlugin], +} satisfies Config; diff --git a/package.json b/package.json index 11607f94..c7fab071 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "@tailwindcss/typography": "^0.5.10", "tailwindcss": "^3.4.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6cb047bd..632f4485 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@tailwindcss/typography': + specifier: ^0.5.10 + version: 0.5.10(tailwindcss@3.4.0) tailwindcss: specifier: ^3.4.0 version: 3.4.0 @@ -86,6 +89,18 @@ packages: dev: false optional: true + /@tailwindcss/typography@0.5.10(tailwindcss@3.4.0): + resolution: {integrity: sha512-Pe8BuPJQJd3FfRnm6H0ulKIGoMEQS+Vq01R6M5aCrFB/ccR/shT+0kXLjouGC1gFLm9hopTFN+DMP0pfwRWzPw==} + peerDependencies: + tailwindcss: '>=3.0.0 || insiders' + dependencies: + lodash.castarray: 4.4.0 + lodash.isplainobject: 4.0.6 + lodash.merge: 4.6.2 + postcss-selector-parser: 6.0.10 + tailwindcss: 3.4.0 + dev: false + /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -361,6 +376,18 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: false + /lodash.castarray@4.4.0: + resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==} + dev: false + + /lodash.isplainobject@4.0.6: + resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} + dev: false + + /lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: false + /lru-cache@10.1.0: resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==} engines: {node: 14 || >=16.14} @@ -505,6 +532,14 @@ packages: postcss-selector-parser: 6.0.14 dev: false + /postcss-selector-parser@6.0.10: + resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + dev: false + /postcss-selector-parser@6.0.14: resolution: {integrity: sha512-65xXYsT40i9GyWzlHQ5ShZoK7JZdySeOozi/tz2EezDo6c04q6+ckYMeoY7idaie1qp2dT5KoYQ2yky6JuoHnA==} engines: {node: '>=4'} diff --git a/run b/run index 545f9db8..01561661 100755 --- a/run +++ b/run @@ -38,7 +38,8 @@ function npm:build:css { args=(--watch) fi - npx tailwindcss --content "source/**/*.html.twig" \ + npx tailwindcss \ + --config assets/tailwind.config.ts \ --output source/build/tailwind.css "${args[@]}" } diff --git a/source/_includes/about-me.html.twig b/source/_includes/about-me.html.twig index 4bf157b1..9d45a4a1 100644 --- a/source/_includes/about-me.html.twig +++ b/source/_includes/about-me.html.twig @@ -1,8 +1,15 @@ -
-

About me

+
+

About me

-
- Picture of Oliver -

I'm an Acquia-certified Drupal Triple Expert with 16 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, and host of the Beyond Blocks podcast.

+
+
+
+ Picture of Oliver +
+ +
+

I'm an Acquia-certified Drupal Triple Expert with 16 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, and host of the Beyond Blocks podcast.

+
+
-
+ diff --git a/source/_includes/banner.html.twig b/source/_includes/banner.html.twig index c5a03bd9..90980ed8 100644 --- a/source/_includes/banner.html.twig +++ b/source/_includes/banner.html.twig @@ -1,9 +1,9 @@ -
-
-
+
+
+

Is your New Year's resolution to deliver better software, faster? - I have availability for team coaching starting in January 2024. + I have availability for team coaching starting in January 2024.

diff --git a/source/_includes/main-menu.html.twig b/source/_includes/main-menu.html.twig index 1860d4d2..9945341f 100644 --- a/source/_includes/main-menu.html.twig +++ b/source/_includes/main-menu.html.twig @@ -1,5 +1,7 @@ -