{"id":16349404,"url":"https://github.com/alecrust/suitcss-components-alert","last_synced_at":"2026-01-24T05:34:20.752Z","repository":{"id":57374251,"uuid":"116977011","full_name":"AlecRust/suitcss-components-alert","owner":"AlecRust","description":"Component CSS for alerts","archived":false,"fork":false,"pushed_at":"2018-09-05T09:21:04.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T22:22:34.686Z","etag":null,"topics":["component","component-css","suitcss"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/AlecRust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-10T15:44:07.000Z","updated_at":"2024-09-18T11:09:36.000Z","dependencies_parsed_at":"2022-09-17T16:51:19.261Z","dependency_job_id":null,"html_url":"https://github.com/AlecRust/suitcss-components-alert","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecRust%2Fsuitcss-components-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecRust%2Fsuitcss-components-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecRust%2Fsuitcss-components-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecRust%2Fsuitcss-components-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlecRust","download_url":"https://codeload.github.com/AlecRust/suitcss-components-alert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239590292,"owners_count":19664454,"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":["component","component-css","suitcss"],"created_at":"2024-10-11T00:59:35.085Z","updated_at":"2025-11-11T14:30:14.575Z","avatar_url":"https://github.com/AlecRust.png","language":"HTML","readme":"# SUIT CSS components-alert\n\nA SUIT CSS component that provides a structural UI alert template to be\nextended with modifiers.\n\nRead more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).\n\n## Installation\n\n* [yarn](https://yarnpkg.com/): `yarn add suitcss-components-alert`\n* [npm](https://www.npmjs.com/): `npm install suitcss-components-alert`\n* Download: [zip](https://github.com/AlecRust/suitcss-components-alert/releases/latest)\n\n## Available classes\n\n### Component structure\n\n* `Alert` - [core] The core alert component\n\n### Modifiers\n\n* `Alert--info` - Applies info colours to the alert\n* `Alert--success` - Applies success colours to the alert\n* `Alert--danger` - Applies danger colours to the alert\n* `Alert--warning` - Applies warning colours to the alert\n\n## Configurable variables\n\n* `--Alert-borderColor`\n* `--Alert-borderWidth`\n* `--Alert-padding`\n\n* `--Alert--info-backgroundColor`\n* `--Alert--info-borderColor`\n* `--Alert--info-textColor`\n\n* `--Alert--success-backgroundColor`\n* `--Alert--success-borderColor`\n* `--Alert--success-textColor`\n\n* `--Alert--danger-backgroundColor`\n* `--Alert--danger-borderColor`\n* `--Alert--danger-textColor`\n\n* `--Alert--warning-backgroundColor`\n* `--Alert--warning-borderColor`\n* `--Alert--warning-textColor`\n\n## Use\n\nExamples:\n\n```html\n\u003cdiv class=\"Alert\"\u003e\n  This is a default alert.\n\u003c/div\u003e\n```\n\n```html\n\u003cdiv class=\"Alert Alert--success\"\u003e\n  This is a success alert.\n\u003c/div\u003e\n```\n\n### Theming / extending\n\nThe CSS is focused on common structural requirements for alerts. You can extend it\nwith application-specific theme styles in your app.\n\n## Testing\n\n```\nyarn install\n```\n\nTo generate a build:\n\n```\nyarn build\n```\n\nTo lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](https://stylelint.io/)\n\n```\nyarn lint\n```\n\nTo generate the testing build.\n\n```\nyarn build-test\n```\n\nTo watch the files for making changes to test:\n\n```\nyarn watch\n```\n\nBasic visual tests are in `test/index.html`.\n\n## Browser support\n\n* Google Chrome\n* Firefox\n* Opera\n* Safari\n* Internet Explorer 9+\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecrust%2Fsuitcss-components-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecrust%2Fsuitcss-components-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecrust%2Fsuitcss-components-alert/lists"}