{"id":23886559,"url":"https://github.com/gah-code/gatsby-mdx-project-01","last_synced_at":"2026-04-14T04:31:48.740Z","repository":{"id":194708792,"uuid":"617822811","full_name":"gah-code/gatsby-mdx-project-01","owner":"gah-code","description":"Styled Components for MDX","archived":false,"fork":false,"pushed_at":"2024-09-18T09:29:14.000Z","size":26034,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T04:15:09.527Z","etag":null,"topics":["graphql","mdx","mdx-gatsby","styled-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gah-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-03-23T07:23:45.000Z","updated_at":"2024-09-18T23:56:19.000Z","dependencies_parsed_at":"2024-09-18T12:29:01.357Z","dependency_job_id":"0dc98473-110d-4dff-922b-0e656497dda2","html_url":"https://github.com/gah-code/gatsby-mdx-project-01","commit_stats":null,"previous_names":["gah-code/gatsby-mdx-project-01"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gah-code/gatsby-mdx-project-01","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-mdx-project-01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-mdx-project-01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-mdx-project-01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-mdx-project-01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gah-code","download_url":"https://codeload.github.com/gah-code/gatsby-mdx-project-01/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-mdx-project-01/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["graphql","mdx","mdx-gatsby","styled-components"],"created_at":"2025-01-04T06:37:08.914Z","updated_at":"2026-04-14T04:31:48.719Z","avatar_url":"https://github.com/gah-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To do List\n\n**Step 1: Install Required Packages**\n\nYou need to install the necessary packages:\n\n```bash\nnpm install gatsby-plugin-theme-ui theme-ui prism-react-renderer\n```\n\n**Step 2: Create a `gatsby-plugin-theme-ui` Configuration**\n\nIn your Gatsby project's root directory, create a `gatsby-plugin-theme-ui` configuration file. You can create a `theme.js` file for this purpose.\n\n```javascript\n// src/gatsby-plugin-theme-ui/theme.js\n\nimport prism from '@theme-ui/prism/presets/theme-ui';\n\nconst theme = {\n  // Your other theme settings here...\n\n  // Extend the base theme with Prism theme settings\n  styles: {\n    ...prism,\n  },\n};\n\nexport default theme;\n```\n\nIn this example, we're importing the Prism theme settings from `@theme-ui/prism/presets/theme-ui` and extending the base theme with these settings.\n\n**Step 3: Configure the `gatsby-config.js` File**\n\nIn your `gatsby-config.js` file, add the `gatsby-plugin-theme-ui` plugin to your `plugins` array. Make sure it's placed before other plugins, especially those that modify the Markdown rendering pipeline.\n\n```javascript\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    // Other plugins...\n\n    'gatsby-plugin-theme-ui', // Add this line\n  ],\n};\n```\n\n**Step 4: Use Prism for Syntax Highlighting**\n\nIn your Markdown or MDX files, you can now use triple backticks (```) to create code blocks, and Prism will be applied automatically with the theme you defined.\n\n````markdown\n```jsx\nimport React from 'react';\n\nconst MyComponent = () =\u003e {\n  return \u003cdiv\u003eHello, World!\u003c/div\u003e;\n};\n\nexport default MyComponent;\n```\n````\n\n```\n\nThe code block above will be syntax-highlighted using Prism with the theme you configured in `gatsby-plugin-theme-ui`.\n\n**Step 5: Customize the Prism Theme (Optional)**\n\nIf you want to customize the Prism theme, you can do so by overriding the `prism` object in your `theme.js` file (created in Step 2). Modify the colors, fonts, or any other Prism-specific settings to match your project's design.\n\nWith these steps, you'll have integrated Prism for syntax highlighting into your Gatsby project using the `gatsby-plugin-theme-ui` package and can easily customize its appearance to fit your project's theme.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fgatsby-mdx-project-01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgah-code%2Fgatsby-mdx-project-01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fgatsby-mdx-project-01/lists"}