CSS3
The most complete CSS support for Sublime Text
Details
Installs
- Total 501K
- Win 364K
- Mac 78K
- Linux 60K
Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 3 | 9 | 12 | 12 | 19 | 13 | 16 | 20 | 10 | 12 | 21 | 17 | 10 | 13 | 15 | 16 | 10 | 17 | 9 | 7 | 14 | 18 | 14 | 19 | 15 | 10 | 7 | 14 | 13 | 11 | 18 | 21 | 9 | 11 | 8 | 13 | 13 | 13 | 12 | 11 | 10 | 18 | 13 | 11 | 23 | 14 |
Mac | 0 | 3 | 1 | 5 | 4 | 2 | 1 | 1 | 0 | 5 | 0 | 2 | 1 | 1 | 1 | 0 | 14 | 4 | 2 | 0 | 3 | 2 | 2 | 1 | 2 | 4 | 1 | 2 | 2 | 3 | 3 | 3 | 3 | 0 | 0 | 4 | 2 | 3 | 1 | 2 | 1 | 1 | 3 | 1 | 4 | 5 |
Linux | 0 | 2 | 6 | 5 | 6 | 3 | 4 | 1 | 4 | 5 | 1 | 1 | 0 | 2 | 1 | 3 | 2 | 2 | 5 | 2 | 2 | 2 | 5 | 1 | 4 | 2 | 2 | 3 | 3 | 27 | 4 | 3 | 2 | 4 | 3 | 3 | 2 | 5 | 5 | 3 | 2 | 2 | 3 | 3 | 2 | 0 |
Readme
- Source
- raw.githubusercontent.com
CSS3
The most complete CSS and PostCSS-cssnext support for Sublime Text.
Features
- Absurdly Complete: I mined the entire set of draft specs and supported everything. Some of this stuff won't be implemented in browsers for years. If it's in the spec, it's supported.
- Future Proof: PostCSS-cssnext is fully supported. If
you use cssnext, you can use futuristic CSS like…
- nesting
- custom selectors
- custom properties
- custom media queries
- CSS Modules
- lots more
- Productive: Offers a full set of completions for properties, descriptors, @-rules, functions, and selectors. The completions are highly specific to what you're writing.
- Modern: Bad, old CSS is flagged. Unnecessarily prefixed properties aren't highlighted. Catches lots of mistakes. Encourages best practices.
- Faithful: Follows the W3C specs extremely closely.
- Fast: CSS3 has been designed for Sublime's new custom regex engine, which is crazy fast. The syntax highlighting typically takes less than 100ms, even for very large CSS files.
Before & After
Installation
- Install Package Control
Install CSS3
Platform Install Command Mac cmd+shift+p
→ Package Control: Install Package → CSS3Linux/Windows ctrl+shift+p
→ Package Control: Install Package → CSS3(Required) Disable the default CSS package
Platform Disable Command Mac cmd+shift+p
→ Package Control: Disable Package → CSSLinux/Windows ctrl+shift+p
→ Package Control: Disable Package → CSSMake sure you don't have any open files set to the default CSS syntax (bottom-right) or you may get an error message.
(Strongly Recommended) Enable completions inside completions
By default, Sublime will not offer completions inside completions. In other words, the completions menu is suppressed when you're tabbing through a snippet. This prevents a lot of CSS3 completions from appearing. Add these keys to your User Settings to fix this:
"auto_complete_commit_on_tab": true, "auto_complete_with_fields": true,
(Recommended) Hide CSS completions from Emmet
If you have Emmet installed, its completions will drown out the carefully researched, standards-based completions offered by this package. You can hide Emmet completions for CSS only by adding this line to your Emmet package settings. “json "abbreviation_preview”: “markup”
(Recommended) Set CSS3 as the default language for
.css
files- Open a
.css
file. - View → Syntax → Open all with current extension as… → CSS3
- Open a
Best Practices
- Always use quotes inside
url()
. Unquoted URLs are intentionally not highlighted.
Help Me Out!
If you think something's missing, make sure you're not asking for something on this list of bad CSS properties. If it's not on that list, open an issue and I'll investigate. Definitely check out the CONTRIBUTING guidelines before submitting your PR. It could save you a lot of time. I'll be monitoring the specs as they're updated on this W3C feed, but I still need your help. Let's keep bad code out of the Web!