Last active
July 23, 2016 14:49
-
-
Save scottcorgan/fd8c93cccc78fc162b12063d018f1d6d to your computer and use it in GitHub Desktop.
Sublime Text Snippet for Elm Css File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
module Component.${1} exposing (CssClasses(..), css, class, classList) | |
import Css exposing (..) | |
import Css.Namespace exposing (namespace) | |
import Html.CssHelpers | |
styleNamespace : String | |
styleNamespace = | |
"${2}" | |
type CssClasses | |
= ${3} | |
{ class, classList } = | |
Html.CssHelpers.withNamespace styleNamespace | |
css : Css.Stylesheet | |
css = | |
(stylesheet << namespace styleNamespace) | |
[ | |
] | |
]]></content> | |
<tabTrigger>styles</tabTrigger> | |
<scope>source.elm</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment