Skip to content

Applib-HarmonyOS/Theme

Repository files navigation

Neumorphism_Theme

Installation :

Install using npm

npm i hmos-neumorphism

Note :

Add this css snippet when passing input or button through slot .

button, input{
    width: 100%;
    height: 100%;
    background-color:transparent;
    text-color: black;
}

Theme

Import:

<element name='neutheme' src='../../../../../../node_modules/hmos-neumorphism/theme/theme.hml'></element>

Usage:

<!--You can choose between following themes:-->

<!--white-->
<!--silver-->
<!--gray-->
<!--black-->
<!--red-->
<!--maroon-->
<!--yellow-->
<!--olive-->
<!--lime-->
<!--green-->
<!--aqua-->
<!--teal-->
<!--blue-->
<!--navy-->
<!--pink-->
<!--purple-->

<neumorphism theme="silver" color="black">
</neumorphism>

Reference:

neumorphism.io

ismail9k.github.io/neomorphism