-
Question from @jitendravyas |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 10 replies
-
These were more or less the features/benefits we wanted to gain from the ACSS syntax:
Dynamic libraries are a whole different ball gameIt is much more complex to create classes meant to be parsed by a tool (see dynamic libraries like ACSS or Blowdrycss) than classes for static libraries. This is because tools used by dynamic libraries must rely on specific patterns to help express rich styles (contextual styling, media queries, pseudo-classes, etc.) through syntax alone. Static libraries do not have such constraints. What does readable mean anyway?Let's take a look at various syntaxes for the sake of comparison:
I may be a bit biased, but it seems to me that the ACSS and Blowdrycss classes better associate with their corresponding style ( Notes:
When "not readable" is actually more readableLet's consider negative values, units, percentage, and decimal points:
With ACSS, we use Note:
Readable versus GuessableReadable is not the same as guessable. For example, it may be easy for one to understand what In my opinion, helping devs figure things out by themselves is a better approach because they only need to learn a mnemonic pattern rather than a new vocabulary. In other words, I think it's better to have a tool (i.e. a strict "syntax") to be able to mentally construct classes by oneself (ACSS/Blowdrycss) than to have to learn a slew of arbitrary names (i.e. Did you guess?I asked above what should be the class to be used for
I think it is correct to assume that even though the classes Note:
And there is this:
|
Beta Was this translation helpful? Give feedback.
-
Why not just emmet syntax:
Readable versus Guessable Yes, We, well at least me, were writing styles with the browser opening. Besides, we can have a vscode extension just like tailwindcss to help us. I'll give an example to show why I want But if we need an editor extension anyway, |
Beta Was this translation helpful? Give feedback.
-
why not use <style>
.w\:50\%{
width: 50%;
}
.c\:red{
color: red;
}
</style>
<div class="w:50% c:red">
Hello world
</div> |
Beta Was this translation helpful? Give feedback.
These were more or less the features/benefits we wanted to gain from the ACSS syntax:
Dyn…