-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add a doc on benefits of using linaria #151
Conversation
Codecov Report
@@ Coverage Diff @@
## master #151 +/- ##
=======================================
Coverage 97.57% 97.57%
=======================================
Files 20 20
Lines 412 412
Branches 80 80
=======================================
Hits 402 402
Misses 10 10 Continue to review full report at Codecov.
|
README.md
Outdated
@@ -180,6 +180,7 @@ export function App() { | |||
* [Theming](/docs/THEMING.md) | |||
* [Server Rendering](/docs/SERVER_RENDERING.md) | |||
* [Bundlers integration](/docs/BUNDLERS_INTEGRATION.md) | |||
* [Why use Linaria](/docs/BENEFITS.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could shift it up to be first in the list for visibility?
docs/BENEFITS.md
Outdated
|
||
### Full power of CSS | ||
|
||
Unlike inline styles, you the full power of CSS with Linaria, such as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have the full power
docs/BENEFITS.md
Outdated
|
||
### Zero-runtime | ||
|
||
Linaria is unique in the sense that it doesn't need a runtime to work. Styles are parsed, evaluated and generated at build time. It can help you improve the load time by loading CSS and JavaScript in parallel, and improve runtime performance since no extra work such as parsing needs to be done at runtime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> and improve runtime performance because no extra work, such as parsing, needs to be done at runtime.
docs/BENEFITS.md
Outdated
|
||
### 3. Maximum expressiveness | ||
|
||
Since Linaria supports JavaScript expressions, you can have generate style rules inside a declaration programmatically with JavaScript. You can also share constants and helper functions between your CSS and JavaScript, compose styles together and much more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linaria supports JavaScript expressions, which enables you to generate style rules inside a declaration programmatically with JavaScript. You can also share constants and helper functions between your CSS and JavaScript, compose styles together and much more.
1dc84c2
to
8ee22f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add link to BENEFITS.md
on the top of readme (between Features and Try Linaria online.
8ee22f3
to
678c3fe
Compare
678c3fe
to
88c74f4
Compare
No description provided.