Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Conversation

@mmahalwy
Copy link
Contributor

@mmahalwy mmahalwy commented Oct 1, 2017

Why?

Firstly, we have been using a hacky library called webpack-isomorphic-tools to get styles working on the server. There are alternatives now, such as getting webpack to serve server files but regardless this is a great opportunity to transition into css-in-js. What's most powerful about it is code-splitting CSS comes for free since it's in the JS bundle. Additionally, we will continue to make more DLS components that are easily customizable thanks to styled-components

@ahmedre
Copy link
Contributor

ahmedre commented Oct 1, 2017

Deployed to: http://staging.quran.com:32960

`;

const disabled = css`
opacity: 0.5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent, if you use VS Code, it has support for styled-components

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do. Hmm, not sure why didn't indent. Will fix

import React, { PropTypes } from 'react';
import * as customPropTypes from 'customPropTypes';
import styled from 'styled-components';
import { lighten } from 'polish';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean polished?

Copy link
Contributor

@thabti thabti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

module 'polish' should be 'polished'

@mmahalwy
Copy link
Contributor Author

mmahalwy commented Oct 2, 2017

@sabeurthabti good catch. Weird my webpack didn't scream.

@mmahalwy
Copy link
Contributor Author

@sabeurthabti PTAL. Fixed

@mmahalwy
Copy link
Contributor Author

rebuild

@ahmedre
Copy link
Contributor

ahmedre commented Oct 11, 2017

Deployed to: http://staging.quran.com:32962

@mmahalwy mmahalwy merged commit cc9a9a6 into master Oct 11, 2017
@mmahalwy mmahalwy deleted the move-more-to-styled-components branch October 11, 2017 23:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants