{"id":15764928,"url":"https://github.com/thorwebdev/nextjs-with-opengovsg-design-system","last_synced_at":"2025-03-31T10:25:58.243Z","repository":{"id":77094437,"uuid":"447885835","full_name":"thorwebdev/nextjs-with-opengovsg-design-system","owner":"thorwebdev","description":"Example of using https://github.com/opengovsg/design-system with Next.js \u0026 TypeScript","archived":false,"fork":false,"pushed_at":"2022-01-14T07:57:00.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T02:51:58.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/thorwebdev.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":"2022-01-14T07:56:24.000Z","updated_at":"2022-01-14T07:57:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9333679-cdb3-469f-bcc5-119bb486be8d","html_url":"https://github.com/thorwebdev/nextjs-with-opengovsg-design-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fnextjs-with-opengovsg-design-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fnextjs-with-opengovsg-design-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fnextjs-with-opengovsg-design-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorwebdev%2Fnextjs-with-opengovsg-design-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thorwebdev","download_url":"https://codeload.github.com/thorwebdev/nextjs-with-opengovsg-design-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246452114,"owners_count":20779740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-04T12:23:17.133Z","updated_at":"2025-03-31T10:25:58.204Z","avatar_url":"https://github.com/thorwebdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example app with [opengovsg/design-system](https://github.com/opengovsg/design-system) and TypeScript\n\nThis example features how to use [opengovsg/design-system](https://github.com/opengovsg/design-system) as the component library within a Next.js app with TypeScript.\n\nNext.js and opengovsg/design-system have built-in TypeScript declarations, so we'll get autocompletion for their modules straight away.\n\nWe are connecting the Next.js `_app.js` with `opengovsg/design-system`'s Provider and theme so the pages can have app-wide dark/light mode. We are also creating some components which shows the usage of `opengovsg/design-system`'s style props.\n\n## Preview\n\nPreview the example live on [StackBlitz](http://stackblitz.com/):\n\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-opengovsg/design-system-typescript)\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-opengovsg/design-system-typescript\u0026project-name=with-opengovsg/design-system-typescript\u0026repository-name=with-opengovsg/design-system-typescript)\n\n## How to use\n\n### Using `create-next-app`\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-opengovsg/design-system-typescript with-opengovsg/design-system-typescript-app\n# or\nyarn create next-app --example with-opengovsg/design-system-typescript with-opengovsg/design-system-typescript-app\n```\n\nDeploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).\n\n## Notes\n\nOpenGovSG Design System is built on top of Chakra. Chakra has supported Gradients and RTL in `v1.1`. To utilize RTL, [add RTL direction and swap](https://opengovsg/design-system.com/docs/features/rtl-support).\n\nIf you don't have multi-direction app, you should make `\u003cHtml lang=\"ar\" dir=\"rtl\"\u003e` inside `_document.ts`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorwebdev%2Fnextjs-with-opengovsg-design-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthorwebdev%2Fnextjs-with-opengovsg-design-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorwebdev%2Fnextjs-with-opengovsg-design-system/lists"}