{"id":24614440,"url":"https://github.com/tabuckner/mdp-sass","last_synced_at":"2025-07-01T04:34:35.871Z","repository":{"id":57293652,"uuid":"168260627","full_name":"tabuckner/mdp-sass","owner":"tabuckner","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-28T17:18:51.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-29T08:56:59.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/tabuckner.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}},"created_at":"2019-01-30T01:48:21.000Z","updated_at":"2021-12-28T17:18:54.000Z","dependencies_parsed_at":"2022-09-01T13:01:25.773Z","dependency_job_id":null,"html_url":"https://github.com/tabuckner/mdp-sass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tabuckner/mdp-sass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabuckner%2Fmdp-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabuckner%2Fmdp-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabuckner%2Fmdp-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabuckner%2Fmdp-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tabuckner","download_url":"https://codeload.github.com/tabuckner/mdp-sass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabuckner%2Fmdp-sass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262898597,"owners_count":23381600,"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":"2025-01-24T21:16:51.652Z","updated_at":"2025-07-01T04:34:35.850Z","avatar_url":"https://github.com/tabuckner.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDP-SASS\n\nA super simple, quick and dirty approximation of a material palette that matches the [@angular/material](https://github.com/angular/material2) signature of a Material Design palette. Designed to work well with [@angular/material](https://github.com/angular/material2).\n\n[StackBlitz Demo](https://stackblitz.com/edit/mdp-sass-demo)\n\n## Usage\n\nTo use, simple install, include where necessary, and call the function:\n\n```scss\n@import '~@angular/material/theming';\n@include mat-core();\n@import '~mdp-sass/mdp-sass';\n\n$my-base-color: #0e5ab2;\n$my-accent-color: #b389d7;\n$my-warn-color: #f7377b;\n\n$my-mat-primary-palette: mat-palette(get-mat-palette($my-base-color));\n$my-mat-accent-palette: mat-palette(get-mat-palette($my-accent-color));\n$my-mat-warn-palette: mat-palette(get-mat-palette($my-warn-color));\n\n$my-app-theme: mat-light-theme($my-mat-primary-palette, $my-mat-accent-palette, $my-mat-warn-palette);\n\n@include angular-material-theme($my-app-theme);\n```\n\n### `get-mat-palette()`\n\n`get-mat-palette($hex-value, $light-text: false)` Given a base hex value, will return a map formatted to match @angular/material's mat-color signature with contrast values.\n\n#### Optional Light Text Argument\n\nAs of v1.0.4, you may now force a light text for colors that are on the cusp of being dark enough to warrant white/light text.\n\n```scss\n@import '~@angular/material/theming';\n@include mat-core();\n@import 'node_modules/mdp-sass';\n\n$my-base-color: #0e5ab2;\n$my-accent-color: #b389d7;\n$my-warn-color: #f7377b;\n\n$my-mat-primary-palette: mat-palette(get-mat-palette($my-base-color));\n$my-mat-accent-palette-light-text: mat-palette(get-mat-palette($my-accent-color, true));\n$my-mat-warn-palette: mat-palette(get-mat-palette($my-warn-color));\n\n$my-app-theme: mat-light-theme($my-mat-primary-palette, $my-mat-accent-palette, $my-mat-warn-palette);\n```\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nNone, however it is designed to work w/ @angular/material.\n\n### Installing\n\nIt's just a SASS helper function. So however you see fit for now.\n\n## Running the tests\n\nComing Soon.\n\n### Pre-Commit linting tests / CI Tests\n\n\n### And coding style tests\n\nLinter rules.\n\n## Deployment\n\nPRs will be auto-deployed via CI/CI pipeline.\n\n## Contributing\n\nPlease submit a PR and add me as a reviewer.\n\n## Authors\n\n* **Taylor Buckner** - *Initial work* - [tabuckner](https://github.com/tabuckner)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [mbitson](https://github.com/mbitson) - For his [MCG](https://github.com/mbitson/mcg) project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabuckner%2Fmdp-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftabuckner%2Fmdp-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabuckner%2Fmdp-sass/lists"}