Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
= CSjS | ||
|
||
Generate CSS style rules within Javascript. | ||
|
||
This project comes from my frustration of trying to build standalone Javascript widgets. Web | ||
projects always involve the combination of HTML DOM, CSS and Javascript. It's often simpler to | ||
generate the necessary DOM within your Javascript, removing any coupling (and a simpler calling | ||
convention) to a specific web page. But most widgets have certain style rules. To avoid | ||
any coupling with the CSS at all, styles can be included inline, but these gets bulky | ||
and hard to read. The "rule" nature of CSS is nice. So widgets then have a Javascript | ||
and CSS component. Wouldn't it be nice, though, to remove that CSS component. | ||
|
||
With the advent of SASS, the coupling is even more complicated, as now there's some other | ||
tool completely unrelated to your component, written in some other language. Wouldn't | ||
a unified approach be nice? | ||
|
||
|
||
= Similar projects | ||
http://revnode.com/oss/css/ |