components/src/Text/Text.module.styl
Florian Bouillon c47a02c529
feat: Remove post install compilation
Signed-off-by: Avior <github@avior.me>
2022-10-04 00:51:39 +02:00

44 lines
579 B
Stylus

@import "../config"
.text
margin 0
font-size rem(16)
font-weight normal
+ .text
margin-top 8px
.white
color white
.black
color black
.main
color nativeRGB(var(--theme-500))
for size in 36 28 24 20 18 16 14
.size-{size}
font-size rem(size)
for weight in 'normal' 'bold'
.weight-{weight}
font-weight unquote(weight)
.weight-light
font-weight 300
.align-center
text-align center
.align-right
text-align right
.align-left
text-align left
@media (prefers-color-scheme dark)
.white:not(.noDarkTheme)
color black
.black:not(.noDarkTheme)
color white