- Defining styles
- Applying defined styles to other styles
- Applying defined styles to selector styles
- Built-in styles
- Nesting styles
- Importing and exporting
- Private and public style properties
- Full CSS compatibility
- Variables
- Functions
- Comments (sorry but not implemented yet)
- Better property overwriting
Yeah so that's a lot of work!
@style buttonStyle {
@(fn-sans-serif, round, text-white);
@(w-6em, h-3em);
background-color: lightgreen;
&:hover {
color: green;
@(bold);
}
}
.buttonStyle {
font-family: sans-serif;
border-radius: 0.3em;
color: white;
width: 6em;
height: 3em;
background-color: lightgreen;
}
.buttonStyle:hover {
color: green;
font-weight: bold;
}
- Download the npm package by
npm i bruhcss
- To transpile a file, type in the terminal
npx bruhcss <filename>
. If you want to specify an out file, add the flag-o <filename>
Coming soon: --watch
flag
Bruh