{"id":29150541,"url":"https://github.com/roborourke/wp-sass","last_synced_at":"2025-06-30T23:10:52.399Z","repository":{"id":3769447,"uuid":"4846180","full_name":"roborourke/wp-sass","owner":"roborourke","description":"Sass for WordPress","archived":false,"fork":false,"pushed_at":"2016-09-14T16:55:00.000Z","size":132,"stargazers_count":90,"open_issues_count":16,"forks_count":24,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-06-28T16:12:06.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/roborourke.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}},"created_at":"2012-06-30T22:38:39.000Z","updated_at":"2024-09-21T15:04:37.000Z","dependencies_parsed_at":"2022-09-13T09:50:41.799Z","dependency_job_id":null,"html_url":"https://github.com/roborourke/wp-sass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roborourke/wp-sass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roborourke","download_url":"https://codeload.github.com/roborourke/wp-sass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-sass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262864258,"owners_count":23376461,"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":"2025-06-30T23:10:51.407Z","updated_at":"2025-06-30T23:10:52.359Z","avatar_url":"https://github.com/roborourke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enable Sass and Scss in WordPress\n\nThis plugin allows you to write and edit .sass and .scss files directly and\nhave WordPress do the job of compiling and caching the resulting CSS. It\neliminates the extra step of having to compile the files into CSS yourself\nbefore deploying them.\n\n## Installation:\n\nIf you are using git to clone the repository do the following:\n\n    git clone git://github.com/sanchothefat/wp-sass.git wp-sass\n    git submodule update --init --recursive\n\nIf you are downloading the zip or tar don't forget to download the phpsass\ndependency too https://github.com/richthegeek/phpsass and copy it into the `phpsass`\nfolder.\n\n## Usage:\n\nYou can either install the script as a standard plugin or use it as an include within a theme or plugin.\n\nFor use with themes add the following lines to your functions.php:\n\n```php\n\u003c?php\n\n// Include the class (unless you are using the script as a plugin)\nrequire_once( 'wp-sass/wp-sass.php' );\n\n// enqueue a .less style sheet\nif ( ! is_admin() )\n    wp_enqueue_style( 'style', get_stylesheet_directory_uri() . '/style.scss' );\nelse\n\twp_enqueue_style( 'admin', get_stylesheet_directory_uri() . '/admin.sass.php' );\n\n// you can also use .less files as mce editor style sheets\nadd_editor_style( 'editor-style.sass' );\n\n?\u003e\n```\n\nAny registered styles with the .sass or .scss suffix will be compiled and the file URL\nrewritten.\n\n### Using PHP in .sass and .scss files\n\nYou can also create `.sass.php` or `.scss.php` files that will be preprocessed in the WordPress context.\nWhat this means is that you can use WordPress functions within the stylesheets themselves eg:\n\n```sass\n$red: \u003c?php echo get_option( 'redcolour', '#c00' ); ?\u003e;\n\nbody {\n  background: $red;\n}\n```\n\n## Further Reading\n\n[Read the Sass and Scss documentation here](http://sass-lang.com/)\n\n\n## License\n\nThe software is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froborourke%2Fwp-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froborourke%2Fwp-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froborourke%2Fwp-sass/lists"}