{"id":18685819,"url":"https://github.com/grapesjs/style-bg","last_synced_at":"2025-04-12T04:51:44.118Z","repository":{"id":37531185,"uuid":"248630174","full_name":"GrapesJS/style-bg","owner":"GrapesJS","description":"Full-stack background style property type for GrapesJS, with the possibility to add images, colors, and gradients","archived":false,"fork":false,"pushed_at":"2023-06-12T11:22:52.000Z","size":365,"stargazers_count":37,"open_issues_count":3,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T04:51:41.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GrapesJS.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-20T00:03:10.000Z","updated_at":"2025-03-02T09:51:30.000Z","dependencies_parsed_at":"2024-01-23T21:43:06.514Z","dependency_job_id":null,"html_url":"https://github.com/GrapesJS/style-bg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-bg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-bg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-bg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-bg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/style-bg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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":"2024-11-07T10:24:23.046Z","updated_at":"2025-04-12T04:51:44.094Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grapesjs Style Bg\n\nFull-stack background style property type for GrapesJS, with the possibility to add images, colors, and gradients.\n\n\u003e Requires GrapesJS v0.20.1 or higher\n\n![gradient-prv](https://user-images.githubusercontent.com/11614725/77124488-461ed400-6a43-11ea-9cc5-f80bd3729ef3.jpg)\n\n[DEMO](https://codepen.io/artf/pen/GRGXdYe)\n\n## Summary\n\n* Plugin name: `grapesjs-style-bg`\n* This plugin updates the built-in `background` style property.\n\n\n\n## Options\n\n| Option | Description | Default |\n|-|-|-\n| `styleGradientOpts` | Options for the `grapesjs-style-gradient` plugin  | `{}` |\n| `propExtender` | Extend single style property definition of the `background` property. | `prop =\u003e prop` |\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-style-bg`\n* NPM\n  * `npm i grapesjs-style-bg`\n* GIT\n  * `git clone https://github.com/GrapesJS/style-bg.git`\n\n\n\n## Usage\n\nDirectly in the browser (remember to include the [Grapick](https://github.com/artf/grapick) CSS)\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003clink href=\"https://unpkg.com/grapick/dist/grapick.min.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-style-bg.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n      container: '#gjs',\n      // ...\n      plugins: ['grapesjs-style-bg'],\n      pluginsOpts: {\n        'grapesjs-style-bg': { /* options */ }\n      }\n  });\n\u003c/script\u003e\n```\n\nModern javascript\n```js\nimport grapesjs from 'grapesjs';\nimport plugin from 'grapesjs-style-bg';\nimport 'grapesjs/dist/css/grapes.min.css';\nimport 'grapick/dist/grapick.min.css';\n\nconst editor = grapesjs.init({\n  container : '#gjs',\n  // ...\n  plugins: [plugin],\n  pluginsOpts: {\n    [plugin]: { /* options */ }\n  }\n  // or\n  plugins: [\n    editor =\u003e plugin(editor, { /* options */ }),\n  ],\n});\n```\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/style-bg.git\n$ cd grapesjs-style-bg\n```\n\nInstall dependencies\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\nBuild the source\n\n```sh\n$ npm run build\n```\n\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstyle-bg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fstyle-bg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstyle-bg/lists"}