Skip to content
/ hcss Public

hcss is css pre-processor(WIP). This is created mainly for using process of site-creation with Hugo.

License

Notifications You must be signed in to change notification settings

suquiya/hcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hcss(WIP)

hcss is pure Go css pre-processor. This is created for using process of site-creation with Golang HTML Template. Generated CSS can be used as Golang Template(Because of Part of Go HTML Template remain).

Inspired by scss and gcss syntax, but this may be simpler than sass(scss).

suquiya is a beginner of Go programming, so pull requests and issues are appropriated. To be honest, please help suquiya...

Syntax

Variables(Now implimating....)

Before Compile

$main-color= #d3381c
$text-color: {{ .Site.Params.TextColor }}

h1{
    color:$main-color;
}
div{
    color: $text-color
}

After Compile

h1{
    color: #d3381c;
}

div{
    color: {{ .Site.Params.TextColor }};
}

Either of "=" or ":" can be used in Var definition. newline and ";" is interpreted as end of Var definition.

TO DO

  • Add features
    • mixin
    • nest
    • Comment
    • Extend(I can not decide whether implement it or do not now.)
    • Import

Links

About

hcss is css pre-processor(WIP). This is created mainly for using process of site-creation with Hugo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages