{"id":16235581,"url":"https://github.com/mbifulco/mdnext-tailwind","last_synced_at":"2026-03-18T18:34:22.811Z","repository":{"id":92845147,"uuid":"322721502","full_name":"mbifulco/mdnext-tailwind","owner":"mbifulco","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-18T22:50:22.000Z","size":607,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T08:23:37.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbifulco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"mbifulco","patreon":"tinyimprovements"}},"created_at":"2020-12-18T22:49:57.000Z","updated_at":"2023-03-04T05:37:00.000Z","dependencies_parsed_at":"2023-04-26T10:16:47.119Z","dependency_job_id":null,"html_url":"https://github.com/mbifulco/mdnext-tailwind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbifulco/mdnext-tailwind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbifulco%2Fmdnext-tailwind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbifulco%2Fmdnext-tailwind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbifulco%2Fmdnext-tailwind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbifulco%2Fmdnext-tailwind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbifulco","download_url":"https://codeload.github.com/mbifulco/mdnext-tailwind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbifulco%2Fmdnext-tailwind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28621625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T13:26:47.223Z","updated_at":"2026-01-21T01:32:03.666Z","avatar_url":"https://github.com/mbifulco.png","language":null,"funding_links":["https://github.com/sponsors/mbifulco","https://patreon.com/tinyimprovements"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\n![mdnext](./mdnext.png)\n\n\u003cdiv align=\"center\"\u003e\n\nWelcome to `mdnext-tailwind`\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/git?s=https%3A%2F%2Fgithub.com%2Fdomitriusclark%2Fmdnext-tailwind)\n[![Deploy with Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/domitriusclark/mdnext-tailwind)\n\n\u003cbr/\u003e\n\n\u003c/div\u003e\n\n---\n\n- [Usage](#usage)\n- [File structure](#file-structure)\n- [Breakdown](#breakdown)\n- [Tailwind](#tailwind)\n  - [Tailwind Resources](#tailwind-resources)\n\n---\n\n## Usage\n\nComing with a base understanding of the [NextJS opinions and documentation](https://nextjs.org/docs/getting-started), will give you a solid grasp on the structure of our templates.\n\n## File structure\n\n![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3e0ceedc-c244-488f-b984-4bc507a81348/Screen_Shot_2020-09-04_at_1.51.10_AM.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3e0ceedc-c244-488f-b984-4bc507a81348/Screen_Shot_2020-09-04_at_1.51.10_AM.png)\n\n## Breakdown\n\n— **_jsconfig.js_**\n\nNextJS lets us configure absolute paths for our app. We use this to easily import all of our functions and utilities inside of our `src` directory\n\n— **_pages_**\n\nThe pages directory defines your routing. Lifecycle methods like `getStaticProps` / `getStaticPaths` / `getServerProps` are available at the page level. This is where we consume our MDX content as data to pass to our components.\n\n`_app.js`:\nNextJS allows you to override the App component, which is used to initialize pages. More [here](https://nextjs.org/docs/advanced-features/custom-app)\n\n`_document.js`:\nAllows you to augment our application's `\u003chtml\u003e` and `\u003cbody\u003e` tags.\n\n`all-data/index.js`:\nThis page is an example of displaying links to all of your individual MDX data pages. Here we use `getStaticProps` to feed the frontmatter of our `MDX` files for our components.\n\n`data/[slug].js`:\nHere we utilize NextJS dynamic routing. By using `getStaticPaths` we're able to feed a dynamic slug, handling all of the logic once and applying it to each `MDX` data that we load. This allows us to then match to our data in `getStaticProps` and display that to the page and our components.\n\n`index.js`:\nOur page at the root of our app, lives inside of the `pages` directories `index.js`.\n\n— **_src_**\nOur `src` directory holds all of our client code. Our `components`, custom `hooks`, `utility` functions, and our `MDX` files all live here, with the first three available for absolute path imports 👍\n\n— **_next.config.js_**\nFor custom configuration around things like `environment variables`, `webpack`, `pageExtensions`, and many [more](https://github.com/vercel/next.js/blob/canary/packages/next/next-server/server/config.ts#L12-L63), you can utilize `next.config.js`\n\n---\n\n## Tailwind\n\nThis template uses the utility-first CSS framework **Tailwind** for styling. Take a look at the following files to get started.\n\n— **_tailwind.config.js_**\n\nBlank Tailwind configuration with the `purge` option to remove unused CSS in production, thus keeping the resulting CSS file small, and `theme.extend.colors` to add a custom color palette.\n\n— **_postcss.config.js_**\n\nPostCSS configuration file. Other than Tailwind, it uses Next.js's [default PostCSS configuration](https://nextjs.org/docs/advanced-features/customizing-postcss-config).\n\n— **_src/tailwind.css_**\n\nCSS file containing the `@tailwind` directive. It also contains examples of Tailwind's `@apply` directive and custom styles. You can rename and move it as you wish, but make sure you adjust the import path in `pages/_app.js`.\n\nYou can see examples of Tailwind CSS in action in these component files, `src/components/ContentBox.js` and `src/components/Navbar.js`.\n\n### Tailwind Resources\n\n- [Tailwind Documentation](https://tailwindcss.com/)\n  - [Configuration](https://tailwindcss.com/docs/configuration)\n  - [Customizing Colors](https://tailwindcss.com/docs/customizing-colors)\n  - [Directives](https://tailwindcss.com/docs/functions-and-directives) (`@tailwind`, `@apply`, `@layer`, etc)\n- [Official Tailwind component examples](https://tailwindcss.com/components) – UI components\n- [Tailwind Components](https://tailwindcomponents.com/) – free UI components by the community\n- [Tailwind cheat sheet](https://tailwindcomponents.com/cheatsheet/)\n- [Awesome Tailwind CSS](https://github.com/aniftyco/awesome-tailwindcss) – more Tailwind resources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbifulco%2Fmdnext-tailwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbifulco%2Fmdnext-tailwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbifulco%2Fmdnext-tailwind/lists"}