{"id":15099259,"url":"https://github.com/techfever-soft/astral-ui","last_synced_at":"2026-01-31T16:33:12.068Z","repository":{"id":250730109,"uuid":"834827705","full_name":"techfever-soft/astral-ui","owner":"techfever-soft","description":"A material 3 web components kit","archived":false,"fork":false,"pushed_at":"2024-09-11T20:39:46.000Z","size":476,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T22:59:54.570Z","etag":null,"topics":["design","design-kit","material","material-3","material-design","web-components","webcomponents"],"latest_commit_sha":null,"homepage":"https://astral-ui.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techfever-soft.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-28T13:39:55.000Z","updated_at":"2024-09-11T20:39:49.000Z","dependencies_parsed_at":"2024-08-01T23:04:44.114Z","dependency_job_id":"7dd57921-977e-4a79-b1b7-e82b29ef1fab","html_url":"https://github.com/techfever-soft/astral-ui","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"4788b25e987f0203ad07404c4031c0b307cb1dc3"},"previous_names":["techfever-soft/astral-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/techfever-soft/astral-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techfever-soft%2Fastral-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techfever-soft%2Fastral-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techfever-soft%2Fastral-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techfever-soft%2Fastral-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techfever-soft","download_url":"https://codeload.github.com/techfever-soft/astral-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techfever-soft%2Fastral-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28947649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":["design","design-kit","material","material-3","material-design","web-components","webcomponents"],"created_at":"2024-09-25T17:08:48.547Z","updated_at":"2026-01-31T16:33:12.031Z","avatar_url":"https://github.com/techfever-soft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪐 AstralUI\n\n#### A kit of web components, for Material Design lovers\n\nFollowing Material Design 3 specs\n\n![NPM Version](https://img.shields.io/npm/v/%40techfever%2Fastral-ui) ![NPM Downloads](https://img.shields.io/npm/dw/%40techfever%2Fastral-ui)\n\n- Universal (web components support any framework)\n- Responsive (adapts to different screen sizes)\n- Fully customizable (change colors, sizes, and other properties)\n- Extensible (easily add new features and components)\n- Supports dark/light mode (switch between themes seamlessly)\n\n#### [CODESANDBOX (Angular)](https://codesandbox.io/p/github/techfever-soft/astral-ui-example/main) \n#### [DEMO \u0026 DOCUMENTATION](https://astral-ui.dev)\n#### [CHANGELOG.md](https://github.com/techfever-soft/astral-ui/blob/main/CHANGELOG.md)\n\n### Components\n\n- [x] Buttons\n- [x] Panes\n- [x] Accordions\n- [x] Breadcrumbs\n- [x] Checkboxes\n- [x] Modals\n- [ ] More components coming soon...\n\nSee [ROADMAP.md](https://github.com/techfever-soft/astral-ui/blob/main/ROADMAP.md) for more components\n\n### Installation\n\n```bash\nnpm install @techfever/astral-ui\n```\n\n### Usage\n\nDefine custom elements in your main class :\n```ts\nimport { defineCustomElements } from '@techfever/astral-ui/loader';\n\nclass MyClass {\n  constructor() {\n    defineCustomElements(window);\n  }\n}\n```\n\nNOTE: For Angular users, put in your schemas : `CUSTOM_ELEMENTS_SCHEMA`\n\nUse the CSS variables to customize your theme :\n\n```scss\n// Use the Astral UI SCSS functions to set your own color variables\n@use \"../node_modules/@techfever/astral-ui/dist/astralui/scss/functions/rgb.scss\"\n  as *;\n\n// Import the Web Components CSS for Ripples\n@import \"../node_modules/@techfever/astral-ui/dist/astralui/assets/material-components-web.min.css\";\n\n\n:root {\n  --astral-primary-font: \"K2D\", sans-serif;\n  --astral-secondary-font: \"Merriweather\", serif;\n\n  // NOTE: Define your own palette\n  @include set-color-variable(\"#6200ea\", --astral-primary-color);\n  @include set-color-variable(\"#ffffff\", --astral-primary-contrast-color);\n  @include set-color-variable(\"#03dac6\", --astral-secondary-color);\n  @include set-color-variable(\"#212121\", --astral-secondary-contrast-color);\n  @include set-color-variable(\"#00c853\", --astral-success-color);\n  @include set-color-variable(\"#ffffff\", --astral-success-contrast-color);\n  @include set-color-variable(\"#ff4141\", --astral-warning-color);\n  @include set-color-variable(\"#ffffff\", --astral-warning-contrast-color);\n\n  @include set-color-variable(\"#212121\", --astral-text-color-light);\n  @include set-color-variable(\"#efefef\", --astral-background-color-light);\n  @include set-color-variable(\"#ffffff\", --astral-text-color-dark);\n  @include set-color-variable(\"#212121\", --astral-background-color-dark);\n\n  // NOTE: For supporting dark/light mode you need to bind variables\n  \u0026[data-theme=\"dark\"] {\n    --astral-text-color: rgba(var(--astral-text-color-dark));\n    --astral-background-color: rgba(var(--astral-background-color-dark));\n  }\n\n  \u0026[data-theme=\"light\"] {\n    --astral-text-color: rgba(var(--astral-text-color-light));\n    --astral-background-color: rgba(var(--astral-background-color-light));\n  }\n}\n\n// NOTE: Use directly the variables of Astral UI in your theme\n\nbody {\n  background: var(--astral-background-color);\n  color: var(--astral-text-color);\n}\n\n// ... Your own CSS rules here ...\n\n```\n\nUse it directly in your template :\n\n```html\n\u003castral-button color=\"primary\" stroked\u003eClick me!\u003c/astral-button\u003e\n```\n\n### Dynamic dark / light mode\nAstralUI supports dark and light modes. \nYou can put the attribute `data-theme` to \"dark\" or \"light\" in the root `html` tag (document.documentElement). \n\nYou can define the initial theme based on the system's preference:\n\n```ts\nif (window.matchMedia('(prefers-color-scheme: dark)').matches) {\n  document.documentElement.setAttribute('data-theme', 'dark');\n} else {\n  document.documentElement.setAttribute('data-theme', 'light');\n}\n```\n\n\nYou can toggle between these modes using JavaScript. Here's an example :\n\n```ts\nconst toggleThemeButton = document.querySelector('#toggle-theme-button');\nconst icon = toggleThemeButton.querySelector('i');\nconst buttonText = toggleThemeButton.querySelector('#toggle-theme-button-text');\n\nconst isDarkTheme = () =\u003e document.documentElement.getAttribute('data-theme') === 'dark';\n\nconst updateThemeUI = () =\u003e {\n  if (isDarkTheme()) {\n    icon.innerText = 'light_mode';\n    buttonText.innerText = 'Toggle light mode';\n  } else {\n    icon.innerText = 'dark_mode';\n    buttonText.innerText = 'Toggle dark mode';\n  }\n};\n\nupdateThemeUI();\n\ntoggleThemeButton.addEventListener('click', () =\u003e {\n  if (isDarkTheme()) {\n    document.documentElement.setAttribute('data-theme', 'light');\n  } else {\n    document.documentElement.setAttribute('data-theme', 'dark');\n  }\n  updateThemeUI();\n});\n```\n\n### License\n\nAstralUI is licensed under the MIT License. See the LICENSE file for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechfever-soft%2Fastral-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechfever-soft%2Fastral-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechfever-soft%2Fastral-ui/lists"}