{"id":39761909,"url":"https://github.com/atomostechhq/genesis-date-picker","last_synced_at":"2026-01-20T16:30:49.137Z","repository":{"id":329941463,"uuid":"1084870527","full_name":"atomostechhq/genesis-date-picker","owner":"atomostechhq","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-22T12:01:58.000Z","size":319,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T23:08:43.167Z","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/atomostechhq.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-28T09:24:49.000Z","updated_at":"2025-12-22T12:02:02.000Z","dependencies_parsed_at":"2025-12-23T23:08:58.637Z","dependency_job_id":null,"html_url":"https://github.com/atomostechhq/genesis-date-picker","commit_stats":null,"previous_names":["atomostechhq/genesis-date-picker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/atomostechhq/genesis-date-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomostechhq%2Fgenesis-date-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomostechhq%2Fgenesis-date-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomostechhq%2Fgenesis-date-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomostechhq%2Fgenesis-date-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomostechhq","download_url":"https://codeload.github.com/atomostechhq/genesis-date-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomostechhq%2Fgenesis-date-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2026-01-18T11:38:43.071Z","updated_at":"2026-01-18T11:38:43.150Z","avatar_url":"https://github.com/atomostechhq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Atomos Genesis Date Picker Component Library\n\n## Step 1: Installation\n\nBegin by installing the Atomos Genesis Component Library via npm:\n\n```bash\nnpm i @atomos_tech/genesis-datepicker\n```\n\n## Step 2: Import CSS\n\nImport the library's CSS in your root page to apply the default styles:\n\n```typescript\nimport \"@atomos_tech/genesis-datepicker/style\";\n```\n\n**Make sure to import it right above your global.css file to override the default colour palette!**\n\nFor example:\n\n```typescript\nimport \"@atomos_tech/genesis-datepicker/style\";\nimport \"./globals.css\";\n```\n\n## Step 3: Set Up Theme Container\n\nWrap your application content within a `theme-primary` class to ensure consistent theming across your app. Add this snippet to your root or base page:\n\n```typescript\n\u003cdiv className=\"theme-primary\"\u003e{children}\u003c/div\u003e\n```\n\n## Step 4: Configure Tailwind\n\nYou can set up the Tailwind CSS configuration in your tailwind.config.ts or tailwind.config.js and copy the theme styling below:\n\n```\n theme: {\n    extend: {\n      colors: {\n        // Primary Colors\n        primary: {\n          25: \"var(--primary-25)\",\n          50: \"var(--primary-50)\",\n          100: \"var(--primary-100)\",\n          200: \"var(--primary-200)\",\n          300: \"var(--primary-300)\",\n          400: \"var(--primary-400)\",\n          500: \"var(--primary-500)\",\n          600: \"var(--primary-600)\",\n          700: \"var(--primary-700)\",\n          800: \"var(--primary-800)\",\n          900: \"var(--primary-900)\",\n        },\n\n        // Gray Colors\n        gray: {\n          25: \"var(--gray-25)\",\n          50: \"var(--gray-50)\",\n          100: \"var(--gray-100)\",\n          200: \"var(--gray-200)\",\n          300: \"var(--gray-300)\",\n          400: \"var(--gray-400)\",\n          500: \"var(--gray-500)\",\n          600: \"var(--gray-600)\",\n          700: \"var(--gray-700)\",\n          800: \"var(--gray-800)\",\n          900: \"var(--gray-900)\",\n        },\n      },\n    },\n  },\n\n```\n\n## Step 5: Define Global Styles\n\nAdd the following CSS to your `global.css` file to define the theme variables and styles:\n\n```css\n@layer base {\n  :root {\n    /* Theme Primary Colors */\n    .theme-primary {\n      --primary-25: #f5faff;\n      --primary-50: #eff8ff;\n      --primary-100: #d1e9ff;\n      --primary-200: #b2ddff;\n      --primary-300: #84caff;\n      --primary-400: #53b1fd;\n      --primary-500: #2e90fa;\n      --primary-600: #1570ef;\n      --primary-700: #175cd3;\n      --primary-800: #1849a9;\n      --primary-900: #194185;\n    }\n\n    /* Gray Colors */\n    --gray-25: #fff;\n    --gray-50: #f9fafb;\n    --gray-100: #f2f4f7;\n    --gray-200: #eaecf0;\n    --gray-300: #d0d5dd;\n    --gray-400: #98a2b3;\n    --gray-500: #667085;\n    --gray-600: #475467;\n    --gray-700: #344054;\n    --gray-800: #1d2939;\n    --gray-900: #101828;\n}\n```\n\n## Step 6: Usage\n\nWith the library set up, you can start using the provided components. Below are examples of how to implement the Button and Chip components.\n\n### Import Components\n\nImport the required components from the `@atomos_tech/genesis-datepicker` package:\n\n```typescript\nimport { SingleDatePicker } from \"@atomos_tech/genesis-datepicker\";\n```\n\n## Example Page\n\nHere's an example of how you might set up a simple page using the library:\n\n```typescript\nimport { SingleDatePicker } from \"@atomos_tech/genesis-datepicker\";\nimport { format } from \"date-fns\";\n\nexport default function ExamplePage() {\n  const [selectedDate, setSelectedDate] = useState\u003cDate | undefined\u003e(undefined);\n  return (\n    \u003csection className=\"space-y-3\"\u003e\n      \u003ch1 className=\"text-primary-500 font-semibold text-display-xs\"\u003e\n        Single Date Picker\n      \u003c/h1\u003e\n      \u003cSingleDatePicker\n        selectedDate={selectedDate}\n        setSelectedDate={setSelectedDate}\n        position=\"bottom-left\"\n        footer={\n          \u003cp className=\"text-xs\"\u003e\n            Selected Date:{\" \"}\n            {selectedDate ? format(selectedDate, \"MM/dd/yyyy\") : \"-\"}\n          \u003c/p\u003e\n        }\n      /\u003e\n    \u003c/section\u003e\n  );\n}\n```\n\nThese instructions will help you effectively integrate and utilize the `@atomos_tech/genesis-datepicker` library in your web applications, providing a consistent and visually appealing user interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomostechhq%2Fgenesis-date-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomostechhq%2Fgenesis-date-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomostechhq%2Fgenesis-date-picker/lists"}