Complete SASS/SCSS snippets for Sublime Text 3
// Name ${1:name}
// Desc
// Return
@mixin ${1:name}() {
@content;
}// Name ${1:name}
// Desc
// Return
@function ${1:name}() {
@warn 'warn me';
@return false;
}@include ${1:mixin}();@extend .${1:elem};@import '${1:this}';@each ${1:key}, ${2:var} in $map[item1, item2, item3...] {
.#{$key} {
}
}@for ${1:i} from 1 through 3 {
.item-#{$i} {
}
}@if something == true {
} @else if 0 < 1 {
} @else {
}if(${1:condition}, $if-true, $if-false) {
}@while ${1:i} > 0 {
.item-#{$i} {
}
}@warn 'warning must be inside of function, do not forget this';@error 'fatal error';@debug ${1:debug};${1:var}: ${2:val};${1:map}: (
item1: 0
);${1:map}: list1 list2 list3;${1:var}: ${2:val} !default;@at-root {
${1:class} { }
${2:class2} { }
}@if(${1:condition}, $if-true, $if-false)unique-id()feature-exists(${1:feature})variable-exists(${1:variable})global-variable-exists(${1:variable})function-exists(${1:function})mixin-exists(${1:mixin})inspect(${1:value})type-of(${1:value})unit(${1:number})unitless(${1:number})comparable(${1:number1}, ${2:number2})call(${1:name}, ${2:args})selector-nest(${1:selectors})selector-append(${1:selectors})selector-extend(${1:selector}, ${2:extendee}, ${3:extender})selector-parse(${1:selector})selector-replace(${1:selector}, ${2:original}, ${3:replacement})selector-unify(${1:selector1}, ${2:selector2})is-superselector(${1:super}, ${2:sub})simple-selectors(${1:selector})percentage(${1:number})round(${1:number})ceil(${1:number})floor(${1:number})abs(${1:number})min(${1:number})max(${1:number})random(${1:limit})map-has-key(${1:map}, ${2:key})map-keys(${1:map})map-values(${1:map})map-get(${1:map}, ${2:key})map-merge(${1:map1}, ${2:map2})map-remove(${1:map}, ${1:keys})keywords(${1:args})length(${1:list})nth(${1:list}, ${2:n})set-nth(${1:list}, ${2:n}, ${3:value})join(${1:list}, ${2:list2}, ${3:separator})append(${1:list}, ${2:val}, ${3:separator})zip(${1:lists})index(${1:list}, ${2:val})list-separator(${1:separator})rgb(${1:red}, ${2:green}, ${3:blue})rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})red(${1:color})green(${1:color})blue(${1:color})mix(${1:color}, ${2:color2}, ${3:weight})hsl(${1:hue}, ${2:saturation}, ${3:lightness})hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})hue(${1:color})saturation(${1:color})lightness(${1:color})darken(${1:color}, ${2:amount})lighten(${1:color}, ${2:amount})adjust-hue(${1:color}, ${2:degrees})saturate(${1:color}, ${2:amount})desaturate(${1:color}, ${2:amount})grayscale(${1:color})complement(${1:color})invert(${1:color})adjust-color(${1:color}, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])scale-color(${1:color}, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])change-color(${1:color}, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])ie-hex-str(${1:color})alpha(${1:color})opacify(${1:color}, ${2:amount})transparentize(${1:color}, ${2:amount})unquote(${1:string})quote(${1:string})str-length(${1:string})str-insert(${1:string}, ${2:insert}, ${3:index})str-index(${1:string}, ${2:substring})str-slice(${1:string}, ${2:start}, ${3:end})to-upper-case(${1:string})to-lower-case(${1:string})- Fork
- Create your own branch
git checkout -b new-snippet - Add and commit
git add -A && commit -m 'add new-snippet' - Push
git push origin new-feature - Submit a Pull Request