Skip to content
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

Merged
merged 1 commit into from
Oct 23, 2017
Merged

Conversation

satya164
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Oct 22, 2017

Codecov Report

Merging #151 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99c3490...88c74f4. Read the comment docs.

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)
Copy link
Member

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:
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.

Copy link
Contributor

@zamotany zamotany left a 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.

@zamotany zamotany merged commit bbe92d7 into master Oct 23, 2017
@zamotany zamotany deleted the @satya164/benefits branch October 23, 2017 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants