{"id":29215330,"url":"https://github.com/mbejda/ngcolored","last_synced_at":"2025-07-03T00:09:20.542Z","repository":{"id":58237847,"uuid":"46640468","full_name":"mbejda/ngColored","owner":"mbejda","description":"Angular directive that displays colors. ","archived":false,"fork":false,"pushed_at":"2015-11-26T02:56:14.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T00:09:19.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.mbejda.com/angular-js-ngcolored-directive/","language":"JavaScript","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/mbejda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-22T00:45:58.000Z","updated_at":"2015-12-13T20:43:24.000Z","dependencies_parsed_at":"2022-08-31T00:30:16.512Z","dependency_job_id":null,"html_url":"https://github.com/mbejda/ngColored","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbejda/ngColored","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FngColored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FngColored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FngColored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FngColored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbejda","download_url":"https://codeload.github.com/mbejda/ngColored/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FngColored/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234965,"owners_count":23434922,"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-07-03T00:09:19.803Z","updated_at":"2025-07-03T00:09:20.502Z","avatar_url":"https://github.com/mbejda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://www.mbejda.com/content/images/2015/11/AngularJS-large-1.png#cover)\u003cbr\u003e\nAngular `ngColored` directive lets you display colors in your templates. \u003cbr\u003e\n![](https://www.mbejda.com/content/images/2015/11/Screen-Shot-2015-11-22-at-12-26-58-AM.png)\u003cbr\u003e\n\n\n## Installation\n```\nbower install ngColored --save\n```\nAdd `ngcolored` module into your Angular application : \n```\nangular\n    .module('coloredApp', [\n        'ngAnimate',\n        'ngCookies',\n        'ngResource',\n        'ngRoute',\n        'ngSanitize',\n        'ngTouch',\n        'ngcolored'\n    ])\n    .config(function($routeProvider) {\n\n    })\n```\n##Getting Started With ngColored\nAdd the `colored` directive into the templates : \n```\n  \u003ccolored color=\"colorModel\" width=\"125px\" height=\"125px\"\u003e\u003c/colored\u003e\n\n```\nIt works with Twitter Bootstrap 3.x by default. You can add a class attribute to the directive to add your own class styles. The `ngColored` module utilizes the following directive attributes : \n\n- color (ngModel)\n- width\n- height\n- class\n\n## Colors\nThe color attribute is a ngModel inside the parent controller. This allows the directive to have dynamic color changing capability. The color can either be a hex or rgba. \n\u003chr\u003e\nSource code can be found here : \n[https://github.com/mbejda/ngColored](https://github.com/mbejda/ngColored)\u003cbr\u003e\nFor any questions send me a tweet at \n[@notmilosbejda](https://twitter.com/notmilobejda)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbejda%2Fngcolored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbejda%2Fngcolored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbejda%2Fngcolored/lists"}