{"id":23886544,"url":"https://github.com/gah-code/gatsby-styled-template","last_synced_at":"2026-04-15T22:34:49.413Z","repository":{"id":262947428,"uuid":"888862525","full_name":"gah-code/gatsby-styled-template","owner":"gah-code","description":"Fully-functional theming system built with Gatsby, styled-components, and other essential tools. ","archived":false,"fork":false,"pushed_at":"2024-12-17T04:45:37.000Z","size":632,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T03:47:08.942Z","etag":null,"topics":["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":null,"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":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}},"created_at":"2024-11-15T06:35:06.000Z","updated_at":"2024-12-17T07:56:27.000Z","dependencies_parsed_at":"2024-11-15T07:41:01.563Z","dependency_job_id":null,"html_url":"https://github.com/gah-code/gatsby-styled-template","commit_stats":null,"previous_names":["gah-code/gatsby-styled-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gah-code/gatsby-styled-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-styled-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-styled-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-styled-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-styled-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gah-code","download_url":"https://codeload.github.com/gah-code/gatsby-styled-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fgatsby-styled-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31863493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["gatsby","styled-components"],"created_at":"2025-01-04T06:37:02.278Z","updated_at":"2026-04-15T22:34:49.374Z","avatar_url":"https://github.com/gah-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Gatsby Starter Template with Light/Dark Theme, Contentful, and Testing**\n\nThis template demonstrates a modern, fully-functional **theming system** built with **Gatsby**, **styled-components**, and other essential tools. The application offers a smooth and responsive user experience, with a focus on **accessibility**, **scalability**, and **developer-friendly practices**. It also integrates **Contentful** as the CMS and includes a robust testing setup to save time on project startup.\n\n---\n\n## **Key Features**\n\n- **Light/Dark Theme Toggle:**\n  - Fully implemented using `styled-components` and React Context API.\n  - Themes persist across page reloads via `localStorage`.\n  - Dynamically styled for consistent user experience.\n\n- **Contentful CMS Integration:**\n  - Pre-configured to fetch data from Contentful spaces.\n  - Easily adaptable to your Contentful models.\n\n- **Comprehensive Testing:**\n  - **Unit Testing:** Jest with `@testing-library/react` for isolated component testing.\n  - **End-to-End Testing:** Cypress for simulating real user interactions.\n  - **Accessibility Testing:** Lighthouse and Axe for automated accessibility checks.\n\n- **Accessibility-First Design:**\n  - High-contrast themes for improved readability.\n  - Fully responsive and WCAG-compliant.\n\n- **Developer-Friendly:**\n  - Modular codebase for scalability.\n  - Pre-configured with essential plugins like `gatsby-plugin-image` and `gatsby-plugin-styled-components`.\n\n---\n\n## **Tech Stack**\n\n- **Frontend Framework:**\n  - Gatsby (React-based static site generator)\n\n- **Styling:**\n  - `styled-components` for dynamic theming and CSS-in-JS support.\n\n- **Content Management:**\n  - Contentful (GraphQL-based CMS integration)\n\n- **Testing Tools:**\n  - Jest and React Testing Library for unit testing.\n  - Cypress for end-to-end testing.\n  - Axe and Lighthouse for accessibility testing.\n\n---\n\n### Typography Tests and Updates\n\n## Overview\n\nThis document outlines the testing process for ensuring consistent colors across typography components (`H1`, `H2`, `H3`, and `P`) in a React project styled with `styled-components`. The typography components use a shared `ThemeProvider` to dynamically apply styles from the `lightTheme`.\n\n---\n\n## Typography Updates\n\n### Typography Components\n\nThe typography components (`H1`, `H2`, `H3`, and `P`) are styled to use dynamic colors and font sizes defined in the `theme`. Each component's styles are consistent with the `lightTheme` configuration:\n\n```javascript\nexport const lightTheme = {\n  colors: {\n    primary: \"#2A3439\",\n    secondary: \"#6C3082\",\n    highlight: \"#e3b567\",\n    text: \"#333\",\n  },\n  fontSizes: {\n    heading: { xs: \"24px\", sm: \"28px\", md: \"32px\", lg: \"36px\" },\n    subheading: { xs: \"20px\", sm: \"22px\", md: \"24px\", lg: \"26px\" },\n    paragraph: { xs: \"14px\", sm: \"16px\", md: \"18px\", lg: \"20px\" },\n  },\n};\n\n---\n\n## **Getting Started**\n\n### **1. Clone the Repository**\n\n```bash\ngit clone \u003crepository-url\u003e\ncd \u003crepository-name\u003e\n```\n\n### **2. Install Dependencies**\n\n```bash\nnpm install\n```\n\n### **3. Add Contentful Credentials**\n\nSet up your Contentful credentials in a `.env` file:\n\n```bash\nCONTENTFUL_SPACE_ID=your_space_id\nCONTENTFUL_ACCESS_TOKEN=your_access_token\n```\n\n### **4. Run the Development Server**\n\n```bash\ngatsby develop\n```\n\n### **5. View the App**\n\nVisit `http://localhost:8000` to view the app in your browser.\n\n---\n\n## **Testing**\n\n### **Unit Testing with Jest**\n\nRun all unit tests:\n\n```bash\nnpm test\n```\n\n### **End-to-End Testing with Cypress**\n\nRun the Cypress test runner:\n\n```bash\nnpm run cypress:open\n```\n\n### **Accessibility Testing**\n\nUse Lighthouse (in Chrome DevTools) or Axe (via Jest integration) for automated checks.\n\n---\n\n## **Customization**\n\n### **Update Contentful Integration**\n\nModify the GraphQL queries in `src/pages` or components to suit your Contentful models.\n\n### **Add More Themes**\n\nExpand the `src/styles/theme.js` file to include additional themes or modify existing ones.\n\n---\n\n## **Contributing**\n\nContributions are welcome! If you have suggestions or improvements, feel free to open an issue or submit a pull request.\n\n---\n\n## **License**\n\nThis project is licensed under the MIT License.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fgatsby-styled-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgah-code%2Fgatsby-styled-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fgatsby-styled-template/lists"}