{"id":20809938,"url":"https://github.com/rayyannafees/astrocolors","last_synced_at":"2026-04-19T23:32:21.707Z","repository":{"id":183532158,"uuid":"668391696","full_name":"RayyanNafees/astrocolors","owner":"RayyanNafees","description":"An Astro clone of realtimecolors to improve the existing functionality and also to orgnaise its ugly code structure","archived":false,"fork":false,"pushed_at":"2024-02-22T10:38:11.000Z","size":802,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T09:26:11.293Z","etag":null,"topics":["astro","astrocolors","colors","juxtopposed","realtime","realtimecolors","withastro"],"latest_commit_sha":null,"homepage":"https://astrocolors.vercel.app","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/RayyanNafees.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":"2023-07-19T17:38:59.000Z","updated_at":"2023-12-08T19:55:45.000Z","dependencies_parsed_at":"2025-03-12T04:38:45.481Z","dependency_job_id":null,"html_url":"https://github.com/RayyanNafees/astrocolors","commit_stats":null,"previous_names":["rayyannafees/astrocolors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RayyanNafees/astrocolors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanNafees%2Fastrocolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanNafees%2Fastrocolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanNafees%2Fastrocolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanNafees%2Fastrocolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RayyanNafees","download_url":"https://codeload.github.com/RayyanNafees/astrocolors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanNafees%2Fastrocolors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32026619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["astro","astrocolors","colors","juxtopposed","realtime","realtimecolors","withastro"],"created_at":"2024-11-17T20:18:27.278Z","updated_at":"2026-04-19T23:32:21.663Z","avatar_url":"https://github.com/RayyanNafees.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astro Colors\n\n[Realtime Colors](https://realtimecolors.com) site but much cleaner implementation in [Astro](https://astro.build) + [Solid](https://solidjs.com) + [UnoCSS](https://unocss.dev)\n\n## REST API\n\n**baseURL**: `https://astrocolors.vercel.app`\n\n#### Endpoints:\n\n**GET** `/api` =\u003e Returns the randomly generated color values with realtimecolors algorithm\n\n**GET** `/colorset` =\u003e Returns the predefined set of beautiful colors in realtimecolors\n\n_Returned variables:_\n\n- `text` - text color\n- `bg` - backrgound colors\n- `primary` - primary color\n- `secondary` - secondary colot\n- `accent` - accent color\n\n### Endpoint Suffices\n\n#### `.css`\n\nSuffix `.css` to get the color values as css variables as in `_/api.css` or `_/colorset.css`\n\nFor example:\n\n```css\n@import url('https://astrocolors.vercel.app/api.css');\n```\n\nWill return the css with variables:\n\n```css\n:root {\n    --rc-text:     #..., /*The hex colorcode for text*/\n    --rc-bg:       #...; /*The hex colorcode for background*/\n    --rc-primary:  #...; /*The primary color hexcode*/\n    --rc-secondary:#...; /*The secondary color hexcode*/\n    --rc-accent:   #...; /*The accent color hexcode*/\n  }\n\n```\n\n#### `.txt`\n\nSuffix `.txt` to get the variable as dash-separated text as in `_/api.txt` or `_/colorset.txt`\n\n```js\n'text-bg-primary-secondary-accent'\n```\n\n## Website Stack\n\n- [Starlight](https://starlight.astro.build) for the docs\n- [UnoCSS](https://unocss.dev) for Icons \u0026 Styling css\n- [Dexie](https://dexie.org) for storing user themes in IndexedDB (Browser's Database)\n- [SolidJS](https://solidjs.com) for updating frotnend UI in a much cleaner and efficient way\n- [nanostores](https://github.com/nanostores/nanostores) for managing state between different parts of the website\n- [Astro](https://astro.build) for providing the backend service for rendering \u0026 the REST API\n\n## Feature stack\n\n- qrcode\n- FileSaver\n- zip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayyannafees%2Fastrocolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayyannafees%2Fastrocolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayyannafees%2Fastrocolors/lists"}