{"id":15140300,"url":"https://github.com/nextcss/deprecated-material-colors","last_synced_at":"2025-09-29T08:31:55.949Z","repository":{"id":46862150,"uuid":"337797202","full_name":"nextcss/deprecated-material-colors","owner":"nextcss","description":"Next.css material-colors module","archived":true,"fork":false,"pushed_at":"2022-11-16T03:32:23.000Z","size":189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T22:29:26.915Z","etag":null,"topics":["background","beta-release","beta-testing","border","css","css-framework","css-modules","css3","foreground","front-end","frontend","good-first-issue","html","library","material-colors","nextcss","open-source","opensource","sass"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/nextcss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://paypal.me/toviszsolt"]}},"created_at":"2021-02-10T17:18:57.000Z","updated_at":"2023-08-19T15:16:35.000Z","dependencies_parsed_at":"2023-01-21T19:05:14.085Z","dependency_job_id":null,"html_url":"https://github.com/nextcss/deprecated-material-colors","commit_stats":null,"previous_names":["nextcss/material-colors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcss%2Fdeprecated-material-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcss%2Fdeprecated-material-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcss%2Fdeprecated-material-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcss%2Fdeprecated-material-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextcss","download_url":"https://codeload.github.com/nextcss/deprecated-material-colors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234604488,"owners_count":18859164,"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":["background","beta-release","beta-testing","border","css","css-framework","css-modules","css3","foreground","front-end","frontend","good-first-issue","html","library","material-colors","nextcss","open-source","opensource","sass"],"created_at":"2024-09-26T08:02:01.168Z","updated_at":"2025-09-29T08:31:50.626Z","avatar_url":"https://github.com/nextcss.png","language":"SCSS","readme":"# Next.css Material Colors Module\n\nMaterial Colors Module is part of [Next.css framework](https://github.com/nextcss). This module contains original Material Color Palette CSS styles for your Next.css project. You can use in all modern websites with module bundlers, like webpack, rollup, parcel.\n\n**[Next.css on GitHub](https://github.com/nextcss)**\n\n## How to Install\n\nYou can install with npm or yarn package managers.\n\n```shell\nnpm i @nextcss/material-colors\nyarn add @nextcss/material-colors\n```\n\nSimple import to your project, and add class rules to you HTML tags.\nCheck available selector rules below.\n\n```javascript\nimport '@nextcss/material-colors';\n```\n\n## Features\n\n- Text colors (foreground)\n- Background colors\n- Border colors\n- Hover states\n- Active states\n- Focus states\n- Focus-In states\n\n## How to use\n\n```html\n\u003c!-- Set background color --\u003e\n\u003ch1 class=\"bg-blue-500\"\u003e...\u003c/h1\u003e\n\n\u003c!-- Set background, border and text colors --\u003e\n\u003cdiv class=\"bg-pink-50 b-pink-100 fg-pink-700\"\u003e...\u003c/div\u003e\n\n\u003c!-- Set text color, background and hover state background --\u003e\n\u003cbutton class=\"fg-white bg-blue-500 hover:bg-blue-700\"\u003e...\u003c/button\u003e\n```\n\nSelector formula\n\n**`[state:]prefix-color[-scale]`**\n\n#### state\n\nAfter _state_ must use colon, _state_ is not required.\n\n`hover`,`active`,`focus`,`focus-in`\n\n#### prefix\n\nAfter _prefix_ must use hyphen, _state_ is required.\n\n`fg` - foreground, `bg` - background, `b` - border\n\n#### color (scalable)\n\nAfter _color_ must be set _scale_ value. _color_ is required.\n\n`red`, `pink`, `purple`, `deep-purple`, `indigo`, `blue`, `light-blue`,`cyan`,`teal`,`green`,`light-green`,`lime`,`yellow`,`amber`,`orange`,`deep-orange`,`brown`,`grey`,`blues-grey`\n\n#### color (not scalable)\n\nAfter _color_ can not set _scale_ value. _color_ is required.\n\n`black`,`white`\n\n#### scale\n\nBefore _scale_ must use hyphen, _scale_ is required for scalable _color_ only.\n\n`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`\n\n## Production build\n\nWe strongly recommend to use `postcss` with `autoprefixer` and `postcss-purgecss`. This stack will extend the CSS rules with browser specific prefixes, like `-webkit` and will remove unused styles in production build.\n\n```shell\nnpm i -D postcss autoprefixer @fullhuman/postcss-purgecss\n```\n\nOur `postcss.config.js` config. You need to configure the `content` parameter for your project.\n\n```js\nmodule.exports = {\n  plugins:\n    process.env.NODE_ENV === 'production'\n      ? [\n          'autoprefixer',\n          [\n            '@fullhuman/postcss-purgecss',\n            {\n              content: ['./{pages,components}/**/*.{js,jsx}'],\n              safelist: ['html', 'body'],\n              defaultExtractor: (content) =\u003e content.match(/[\\w-/:]+(?\u003c!:)/g) || [],\n            },\n          ],\n        ]\n      : ['autoprefixer'],\n};\n```\n\n## License\n\nMIT License. Copyright (c) 2021 Zsolt Tovis\n","funding_links":["https://paypal.me/toviszsolt"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcss%2Fdeprecated-material-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextcss%2Fdeprecated-material-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcss%2Fdeprecated-material-colors/lists"}