{"id":13448276,"url":"https://github.com/badsyntax/SassBeautify","last_synced_at":"2025-03-22T09:31:05.131Z","repository":{"id":136895508,"uuid":"9676914","full_name":"badsyntax/SassBeautify","owner":"badsyntax","description":"[not maintained] A Sublime Text plugin that beautifies Sass files.","archived":false,"fork":false,"pushed_at":"2016-06-14T14:16:59.000Z","size":178,"stargazers_count":143,"open_issues_count":55,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-16T02:47:37.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/badsyntax/SassBeautify","language":"Python","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/badsyntax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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":"2013-04-25T17:08:16.000Z","updated_at":"2023-04-13T14:26:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b358117-7898-430e-9807-c6b3a464c955","html_url":"https://github.com/badsyntax/SassBeautify","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2FSassBeautify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2FSassBeautify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2FSassBeautify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2FSassBeautify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax","download_url":"https://codeload.github.com/badsyntax/SassBeautify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"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-07-31T05:01:40.823Z","updated_at":"2025-03-22T09:31:04.781Z","avatar_url":"https://github.com/badsyntax.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SassBeautify\n\nhttps://sublime.wbond.net/packages/SassBeautify\n\nA Sublime Text plugin that beautifies Sass files. (Compatible with Sublime Text 2 \u0026 3.)\n\n![ScreenShot](https://raw.github.com/badsyntax/SassBeautify/master/assets/screenshot.png)\n\n## Dependencies\n\nThis plugin uses `sass-convert`, and so you need to have sass installed. Read the [sass download page](http://sass-lang.com/download.html) to view the installation options.\n\nIt's a good idea to always use the latest version of Sass.\n\n## Installation\n\n**Option 1 (recommended)**\n\nInstall via package control:\n\n1. Ensure you have package control installed, see here: https://sublime.wbond.net/installation\n2. Install the package: open up the command palette (ctrl/cmd + shift + p), execute the following command:\n'Package Control: Install Package', then enter 'SassBeautify'\n\n**Option 2**\n\nManual download:\n\n1. Download the zip file file here: https://github.com/badsyntax/SassBeautify/archive/master.zip\n2. Unzip the archive, rename the 'SassBeautify-master' folder to 'SassBeautify' and move it into your Sublime Text 'Packages' directory.\n\n## Usage\n\n**Default usage**\n\nRun the plugin from the command palette:\n\n1. Open the command palette (ctrl/cmd + shift + p)\n2. Enter 'SassBeautify'\n\n**Conversion usage**\n\nRun the conversion commands from the command palette:\n\n1. Open the command palette (ctrl/cmd + shift + p)\n2. Type 'SassBeautify'\n3. Choose one of the following options:\n  * Convert from CSS to current type\n  * Convert from SCSS to current type\n  * Convert from SASS to current type\n\n## Settings\n\nOnce installed, you can customize how the beautification works by changing the package settings.\n\n1. Open the default settings from the preferences menu: `Preferences \u003e\u003e Package Settings \u003e\u003e SassBeautify \u003e\u003e Settings - Default`\n2. Copy the settings and paste them into your user settings file: `Preferences \u003e\u003e Package Settings \u003e\u003e SassBeautify \u003e\u003e Settings - User`\n3. Change the user settings.\n\n### Settings overview\n\nThe following settings can be adjusted:\n\n```javascript\n{\n  // How many spaces to use for each level of indentation. \"t\" means use hard tabs.\n  \"indent\": 4,\n  // Convert underscores to dashes.\n  \"dasherize\": false,\n  // Output the old-style \":prop val\" property syntax. Only meaningful when generating Sass.\n  \"old\": false,\n  // Custom environment PATH.\n  \"path\": false,\n  // Custom environment GEM_PATH.\n  \"gemPath\": false,\n  // Beautify the sass file after saving it?\n  \"beautifyOnSave\": false,\n  // Keep \"inline\" comments inline?\n  \"inlineComments\": false,\n  // Add a new line between selectors?\n  \"newlineBetweenSelectors\": false,\n  // Use single quotes everywhere\n  \"useSingleQuotes\": false\n}\n```\n\n### Key bindings\n\nThe plugin does not set any default key bindings, thus you will need to specify your own.\n\nIn your keymap file (Preferences \u003e\u003e Key bindings - User), add a custom key binding:\n\n```json\n[\n    {\n        \"keys\": [\"alt+w\"],\n        \"command\": \"sass_beautify\"\n    }\n]\n```\n\n\n## Issues with ruby, Sass and your PATH\n\nIf you installed ruby and sass via a version manager tool like [RVM](https://rvm.io/), [rbenv](https://github.com/sstephenson/rbenv) or via an installer like [ruby installer](http://rubyinstaller.org/), then you're likely to encounter issues with running `sass-convert` from Sublime Text. \n\n### Compatibility with RVM/rbenv\n\nYou need to specify the custom `PATH` and `GEM_PATH `values in your SassBeautify user settings.\n\nFollow the steps below:\n\n1. Open up terminal\n2. Run: `echo $PATH`\n3. Copy the *entire* `PATH` into the 'path' setting\n4. Run: `echo $GEM_PATH`\n5. Copy the *entire* `GEM_PATH` into the 'gemPath' setting\n\n### Compatibility with RubyInstaller\n\nDuring the install process, there should be an option to add ruby to your environment PATH. Ensure this option is selected.\n\n## Issues\n\nThis plugin should work on Linux (tested on Ubuntu 12.04), Windows (tested on Windows 7/8) and OSX (tested on 10.5.7).\n\nPlease [create an issue](https://github.com/badsyntax/SassBeautify/issues) if you find it doesn't work as expected on your setup.\n\n## Thanks\n\nThanks to the [contributors](https://github.com/badsyntax/SassBeautify/graphs/contributors) and to all the people \nwho have tested and reported issues.\n\n## License\n\nLicensed under the MIT license. Created by [Richard Willis](http://badsyntax.co/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2FSassBeautify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadsyntax%2FSassBeautify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2FSassBeautify/lists"}