diff --git a/packages/astro-ghostcms-catppuccin-dark/tailwind-preset.js b/packages/astro-ghostcms-catppuccin-dark/cat-frappe.js similarity index 100% rename from packages/astro-ghostcms-catppuccin-dark/tailwind-preset.js rename to packages/astro-ghostcms-catppuccin-dark/cat-frappe.js diff --git a/packages/astro-ghostcms-catppuccin-dark/cat-latte.js b/packages/astro-ghostcms-catppuccin-dark/cat-latte.js new file mode 100644 index 00000000..44b46791 --- /dev/null +++ b/packages/astro-ghostcms-catppuccin-dark/cat-latte.js @@ -0,0 +1,16 @@ +/** @type {import('tailwindcss').Config} */ +import { fontFamily as _fontFamily } from "tailwindcss/defaultTheme"; +export const content = [ + './node_modules/@matthiesenxyz/astro-ghostcms-catppuccin-dark/src/**/*.{astro,js,css,ts}' +]; +export const theme = { + extend: { + fontFamily: { + sans: ["Inter Variable", "Inter", ..._fontFamily.sans], + }, + }, +}; +export const plugins = [ + require("@tailwindcss/typography"), + require("@catppuccin/tailwindcss")({ prefix: 'ctp', defaultFlavour: "macchiato" }) +]; diff --git a/packages/astro-ghostcms-catppuccin-dark/cat-macchiato.js b/packages/astro-ghostcms-catppuccin-dark/cat-macchiato.js new file mode 100644 index 00000000..44b46791 --- /dev/null +++ b/packages/astro-ghostcms-catppuccin-dark/cat-macchiato.js @@ -0,0 +1,16 @@ +/** @type {import('tailwindcss').Config} */ +import { fontFamily as _fontFamily } from "tailwindcss/defaultTheme"; +export const content = [ + './node_modules/@matthiesenxyz/astro-ghostcms-catppuccin-dark/src/**/*.{astro,js,css,ts}' +]; +export const theme = { + extend: { + fontFamily: { + sans: ["Inter Variable", "Inter", ..._fontFamily.sans], + }, + }, +}; +export const plugins = [ + require("@tailwindcss/typography"), + require("@catppuccin/tailwindcss")({ prefix: 'ctp', defaultFlavour: "macchiato" }) +]; diff --git a/packages/astro-ghostcms-catppuccin-dark/cat-mocha.js b/packages/astro-ghostcms-catppuccin-dark/cat-mocha.js new file mode 100644 index 00000000..44b46791 --- /dev/null +++ b/packages/astro-ghostcms-catppuccin-dark/cat-mocha.js @@ -0,0 +1,16 @@ +/** @type {import('tailwindcss').Config} */ +import { fontFamily as _fontFamily } from "tailwindcss/defaultTheme"; +export const content = [ + './node_modules/@matthiesenxyz/astro-ghostcms-catppuccin-dark/src/**/*.{astro,js,css,ts}' +]; +export const theme = { + extend: { + fontFamily: { + sans: ["Inter Variable", "Inter", ..._fontFamily.sans], + }, + }, +}; +export const plugins = [ + require("@tailwindcss/typography"), + require("@catppuccin/tailwindcss")({ prefix: 'ctp', defaultFlavour: "macchiato" }) +]; diff --git a/packages/astro-ghostcms-catppuccin-dark/index.js b/packages/astro-ghostcms-catppuccin-dark/index.js deleted file mode 100644 index 1a257423..00000000 --- a/packages/astro-ghostcms-catppuccin-dark/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from './tailwind-preset.js' \ No newline at end of file diff --git a/packages/astro-ghostcms-catppuccin-dark/package.json b/packages/astro-ghostcms-catppuccin-dark/package.json index df0806f3..2c0f78b6 100644 --- a/packages/astro-ghostcms-catppuccin-dark/package.json +++ b/packages/astro-ghostcms-catppuccin-dark/package.json @@ -25,14 +25,21 @@ "url": "https://github.com/MatthiesenXYZ/astro-ghostcms/issues", "email": "issues@astro-ghostcms.xyz" }, - "main": "index.js", + "main": "./cat-macchiato.js", "files": [ "src", - "index.js", - "tailwind-preset.js" + "cat-frappe.js", + "cat-latte.js", + "cat-macchiato.js", + "cat-mocha.js", + "index.js" ], "exports": { - ".": "./index.js", + ".": "./cat-macchiato.js", + "./frappe.js": "./cat-frappe.js", + "./latte.js": "./cat-latte.js", + "./macchiato.js": "./cat-macchiato.js", + "./mocha.js": "./cat-mocha.js", "./index.astro": "./src/routes/index.astro", "./[slug].astro": "./src/routes/[slug].astro", "./tags.astro": "./src/routes/tags.astro", diff --git a/playground/tailwind.config.cjs b/playground/tailwind.config.cjs index da35ff1b..6e6aecb8 100644 --- a/playground/tailwind.config.cjs +++ b/playground/tailwind.config.cjs @@ -1,4 +1,4 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - presets: [require('@matthiesenxyz/astro-ghostcms-catppuccin-dark')] + presets: [require('@matthiesenxyz/astro-ghostcms-catppuccin-dark/latte.js')] }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b415a0aa..417ba460 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ importers: specifier: 3.1.6 version: 3.1.6(astro@4.2.8)(typescript@5.3.3) '@matthiesenxyz/astro-ghostcms-catppuccin-dark': - specifier: 0.0.3 + specifier: 0.0.4 version: link:../packages/astro-ghostcms-catppuccin-dark astro: specifier: ^4.2.8