{"id":14972439,"url":"https://github.com/p2pu/p2pu-theme","last_synced_at":"2025-10-26T19:31:26.886Z","repository":{"id":6506020,"uuid":"7746627","full_name":"p2pu/p2pu-theme","owner":"p2pu","description":"Customized bootstrap for P2PU","archived":false,"fork":false,"pushed_at":"2023-03-09T08:56:35.000Z","size":9659,"stargazers_count":2,"open_issues_count":2,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-30T06:04:36.388Z","etag":null,"topics":["bootstrap","css"],"latest_commit_sha":null,"homepage":"","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/p2pu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-22T05:27:19.000Z","updated_at":"2021-11-23T09:06:33.000Z","dependencies_parsed_at":"2024-09-14T15:56:51.487Z","dependency_job_id":"3bcb071e-dd52-4928-b924-4e384cc0ed5c","html_url":"https://github.com/p2pu/p2pu-theme","commit_stats":{"total_commits":525,"total_committers":43,"mean_commits":"12.209302325581396","dds":0.7676190476190476,"last_synced_commit":"d3aac8f5330ba8324a956a71ab567811d82e8f44"},"previous_names":["p2pu/p2pu-css-framework"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fp2pu-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fp2pu-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fp2pu-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fp2pu-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p2pu","download_url":"https://codeload.github.com/p2pu/p2pu-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"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":["bootstrap","css"],"created_at":"2024-09-24T13:46:55.136Z","updated_at":"2025-10-26T19:31:26.414Z","avatar_url":"https://github.com/p2pu.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/p2pu/p2pu-css-framework.svg?branch=master)](https://travis-ci.org/p2pu/p2pu-css-framework)\n\n# P2PU CSS Framework\n\n\u003e a.k.a. \"P2PUstrap\"\n\nWe use this framework to make sure all our web properties follow the same consistent brand. You can use it too if you want a website that looks like ours!\n\n## Getting started\n\nThe theme is based on Bootstrap 5 and includes CSS and JavaScript. You can use just the CSS, but then some Bootstrap components may not work (like menu dropdowns or modals). \n\n### Include precompiled CSS and JS from our CDN\n\n**TODO** CDN isn't being updated atm, need to migrate to github actions. You can copy the files in `dist/` of this repo to your site. Include the CSS `\u003chead\u003e` and the JavaScript at the end of `\u003cbody\u003e` and add material icons and fontawesome somehow. See `demo/index.html` for details. It might not be 100% working right now.\n\nIn your `\u003chead\u003e` tag:\n```\t\n\u003clink rel=\"stylesheet\" href=\"https://d3gh4aef1l5qvi.cloudfront.net/discourse.css\"\u003e\n```\nAt the end of your `\u003cbody\u003e` tag:\n```\n\u003cscript\n  src=\"https://code.jquery.com/jquery-3.3.1.min.js\"\n  integrity=\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\"\n  crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js\" integrity=\"sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js\" integrity=\"sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\n\u003cscript src=\"https://d3gh4aef1l5qvi.cloudfront.net/base.js\"\u003e\u003c/script\u003e\n```\nAs you can see, you'll need to include Bootstrap and its dependencies, jQuery and popper.js. \n\n### Install the package\nNPM:\n```\nnpm install p2pu-theme\n```\n\nDon't forget to install the peer dependencies: `jQuery`, `bootstrap` and `popper.js`. \n\n**TODO** Update these instructions for using it with Webpack 5. The TLDR is in a js file, include both the css file and the js, file, make sure you have your loaders set up to do what it needs to, basically the [instructions for using bootstrap 5 with webpack](https://getbootstrap.com/docs/5.3/getting-started/webpack/). You still need bootstrap, popper, material icons and fontawesome. I hope to shorten that list soon.\n\n## Extending the framework\n\nIf you're using the `p2pu-theme` package, you can extend the library to suit your own needs. \n\n### Extending Styles\n\nThe CSS is built from [sass](http://sass-lang.com/). You'll find the partials in `p2pu-theme/src/scss`. The first place to start is the `_variables.scss` file, where you can change the variables that are used throughout bootstrap and the p2pu-theme. You can then create your own partials and add them to the end of `base.scss` or create your own base file and import only the partials you want. \n\nRun `npm run build` to compile the CSS files, which will be output to the `dist` folder.\n\n### Extending JavaScript\n\nAdd your JavaScript files to the `js` folder and import them in the `index.js` file. \n\nRun `npm run build` to compile the package, which will be output to the `dist` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fp2pu-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp2pu%2Fp2pu-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fp2pu-theme/lists"}