From c077baa3b792fd8b75677888214746922a7d9843 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 31 Jul 2025 17:33:45 -0500 Subject: [PATCH] formatting --- README.md | 6 ++--- src/content.config.ts | 2 +- src/content/docs/index.mdx | 24 ++++++++--------- tailwind.config.cjs | 53 +------------------------------------- 4 files changed, 17 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 909d737..6fe6875 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ Static assets, like favicons, can be placed in the `public/` directory. All commands are run from the root of the project, from a terminal: -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `pnpm install` | Installs dependencies | +| Command | Action | +| :--------------------- | :----------------------------------------------- | +| `pnpm install` | Installs dependencies | | `pnpm dev` | Starts local dev server at `localhost:4321` | | `pnpm build` | Build your production site to `./dist/` | | `pnpm preview` | Preview your build locally, before deploying | diff --git a/src/content.config.ts b/src/content.config.ts index d9ee8c9..6a7b7a0 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -3,5 +3,5 @@ import { docsLoader } from '@astrojs/starlight/loaders'; import { docsSchema } from '@astrojs/starlight/schema'; export const collections = { - docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), + docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), }; diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 664b681..108550a 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -21,16 +21,16 @@ import { Card, CardGrid } from '@astrojs/starlight/components'; ## Next steps - - Edit `src/content/docs/index.mdx` to see this page change. - - - Add Markdown or MDX files to `src/content/docs` to create new pages. - - - Edit your `sidebar` and other config in `astro.config.mjs`. - - - Learn more in [the Starlight Docs](https://starlight.astro.build/). - + + Edit `src/content/docs/index.mdx` to see this page change. + + + Add Markdown or MDX files to `src/content/docs` to create new pages. + + + Edit your `sidebar` and other config in `astro.config.mjs`. + + + Learn more in [the Starlight Docs](https://starlight.astro.build/). + diff --git a/tailwind.config.cjs b/tailwind.config.cjs index e432f60..6a2ad33 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,57 +2,6 @@ module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}', '*.{js,ts,jsx,tsx,mdx}'], darkMode: 'class', - theme: { - extend: { - typography: (theme) => ({ - DEFAULT: { - css: { - a: { - color: theme('colors.zinc.900'), - '&:hover': { - color: theme('colors.zinc.700'), - }, - textDecoration: 'underline', - textDecorationColor: theme('colors.zinc.400'), - textUnderlineOffset: '2px', - }, - 'h1, h2, h3, h4, h5, h6': { - color: theme('colors.zinc.900'), - }, - code: { - color: theme('colors.zinc.900'), - backgroundColor: theme('colors.zinc.100'), - borderRadius: theme('borderRadius.md'), - padding: `${theme('padding.1')} ${theme('padding.1.5')}`, - }, - 'code::before': { - content: '""', - }, - 'code::after': { - content: '""', - }, - }, - }, - invert: { - css: { - a: { - color: theme('colors.zinc.100'), - '&:hover': { - color: theme('colors.zinc.300'), - }, - textDecorationColor: theme('colors.zinc.700'), - }, - 'h1, h2, h3, h4, h5, h6': { - color: theme('colors.zinc.100'), - }, - code: { - color: theme('colors.zinc.100'), - backgroundColor: theme('colors.zinc.800'), - }, - }, - }, - }), - }, - }, + theme: {}, plugins: [require('@tailwindcss/typography')], };