Skip to content

Commit

Permalink
setup styling with tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Jan 30, 2025
1 parent 3cff499 commit d92d779
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 2 deletions.
14 changes: 14 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [
Expand All @@ -10,6 +12,14 @@ export default defineConfig({
social: {
github: "https://github.com/railwayapp/railpack",
},
customCss: [
// Path to your Tailwind base styles:
"./src/tailwind.css",

// Fontsource files for to regular and semi-bold font weights.
"@fontsource/inter/400.css",
"@fontsource/inter/600.css",
],
sidebar: [
{
label: "Getting Started",
Expand Down Expand Up @@ -86,5 +96,9 @@ export default defineConfig({
},
],
}),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
],
});
Loading

0 comments on commit d92d779

Please sign in to comment.