You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rapid inline component styling. Inbuilt Google fonts, intellisense and types.
Forget memorising long lists of CSS shortcodes
Add Google fonts to a component using only the font name
SSR capable with frameworks like Next
Coming soon:
Describe your style in a sentence, and it'll turn it into CSS
Remix Run template
Installation
npm i combronents
Usage
Import the Div, H1 etc. components
Pass in your desired styles, use intellisense for suggestions
import{Div,H1,Section}from"combronents";// Nested components aren't a problemconstGridWithTitle=()=>(<Divgridgap_2gtc_1fr_1frh_fullw_090pc><H1mt_3p_2bg_grey>Web3 is ForOurKids</H1></Div>);// Pull in Google fonts easilyconstWithGoogleFonts=()=>(<Divfont_orbitron_400fontsize_4>Orbitronwithweight400</Div>);// Target child elementsconstStyledChildren=()=>(<Divchild01_flex_center><Sectionborder_bluetext_green>Asectionstyledwithflex,centered,andwithablueborderandgreentext</Section></Div>);
Static vs Dynamic Key Codes
Static key codes are strongly typed:
<Divh_fullborder_solidborder_green/>
Generates this CSS:
height: full;
border:1px solid green;
Dynamic key codes are more creative:
<Divgtc_1fr_2fr/>
Generates:
display: grid;
grid-template-columns:1fr2fr;
Target Child Elements
<Divpos_relativechild01_absolute><div>
An absolutely positioned child
</div></Div>