From 0086dbbf7c22826c0707ade2be6cfa9b09df0c4a Mon Sep 17 00:00:00 2001 From: Jon Kuperman Date: Thu, 27 Oct 2016 15:38:16 -0700 Subject: [PATCH] CSS in JS documentation --- docs/style.md | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 142 insertions(+) create mode 100644 docs/style.md diff --git a/docs/style.md b/docs/style.md new file mode 100644 index 00000000000..a2cdbe73c53 --- /dev/null +++ b/docs/style.md @@ -0,0 +1,141 @@ +# Overview + +All applicable styles should be colocated with their corresponding JavaScript component using [Aphrodite](https://github.com/Khan/aphrodite). + +## Legacy + +All legacy styles are processed with [Less](http://lesscss.org/) and can be found in the /less directory. These should still be maintained but all future CSS should be written in JavaScript and kept inside the appropriate component file. + +## Example + +Here is an example of a React component styled with Aphrodite. + +Aphrodite will automatically create a single `