Tensiva

Dynamic CSS

Dynamic CSS allows you to use semantic utility classes directly in HTML, automatically transforming them into valid CSS at both server-side (SSR) and runtime (client-side).

General Rules

What I wantClassCSS generated
Width 200 pixelswidth-200pxwidth: 200px;
Height 50 pixelsheight-50pxheight: 50px;
Border radius 16 pixelsborderRadius-16pxborder-radius: 16px;
Border 1 pixel solid blueborder-1px__solid__blueborder: 1px solid blue;
Padding 8 pixels 4 pixelspadding-8px__4pxpadding: 8px 4px;
Font size 16pxfontSize-16pxfont-size: 16px;
Font weight 600fontWeight-600font-weight: 600;

- is used to separate the property and the value.

__ adds a space between values.

Media Queries

What I wantClassCSS generated
Width 200 pixels on mobile, 400 pixels on desktopwidth-200px md_width-400px.element { width: 200px; }
@media (min-width: 960px) { .element { width: 400px; } }

md_ is used to add a media query for the medium screen size.

Media Query List

Info

If you don't specify a media query, the class will be applied to all screen sizes.
PrefixNameMin width
xxs_Extra extra small0px
xs_Extra small300px
sm_Small600px
md_Medium960px
lg_Large1264px
xl_Extra large1904px
xxl_Extra extra large2544px