userstyles-world / userstyles.world

⭐ Website to browse and share UserCSS userstyles. A modern replacement for UserStyles.org made by the userstyles community.
https://userstyles.world
GNU Affero General Public License v3.0
324 stars 15 forks source link

Import from github #198

Closed LamprechtHase closed 1 year ago

LamprechtHase commented 1 year ago

I like to import a style hosted on github and I'm facing the issue that the "Import URL" field on "https://userstyles.world/import" won't accept anything I enter. I assume that this should be a link to the CSS code like "https://raw.githubusercontent.com/.../userContent.css" for example. How is importing a style from github supposed to work?

vednoc commented 1 year ago

The file needs to have .user.css extension, or .user.styl if you're using Stylus-lang preprocessor. You can see examples of import URLs for most of my userstyles: https://userstyles.world/user/vednoc.

LamprechtHase commented 1 year ago

Thank you very much! Changing the extension solved the issue.

LamprechtHase commented 1 year ago

Meanwhile I found some very helpful documentation: https://github.com/openstyles/stylus/wiki/Writing-UserCSS