Skip to content

Commit

Permalink
github-style markdown formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
axrs committed Dec 10, 2019
1 parent 8ae7f20 commit 972e33c
Show file tree
Hide file tree
Showing 5 changed files with 1,087 additions and 108 deletions.
43 changes: 26 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,61 @@
# 1.1.0
# Changelog


## 1.1.0

Added:

- CSS live-reloading. PR #25. Credits: @AndreTheHunter
* CSS live-reloading. PR [#25](https://github.com/axrs/re-css/issues/25). Credits: [**@AndreTheHunter**](https://github.com/AndreTheHunter)

Changed:

- Updated dependencies
* Updated dependencies

# 1.0.0

## 1.0.0

Added:

- CSS property support detection with `supports?`
- the ability to change properties through transformation fns
* CSS property support detection with `supports?`
* the ability to change properties through transformation fns

Misc:

- Use Bash as CLI instead of Lumo
* Use Bash as CLI instead of Lumo


# 0.2.1
## 0.2.1

Added:

- the ability to use `defkeyframes` (and possibly other @ style css attributes)
* the ability to use `defkeyframes` (and possibly other @ style css attributes)

# 0.2.0

## 0.2.0

Removed:

- `styled` and changed to `classes`. Now only returns a map of `{:class "generated class names"}` instead of all attrs
* `styled` and changed to `classes`. Now only returns a map of `{:class "generated class names"}` instead of all attrs


# 0.1.1
## 0.1.1

Added:

- defining attributes as functions to be evaluated before style mount.
* defining attributes as functions to be evaluated before style mount.

Changed:

- CSS string generation to before style mount. PR #14.
* CSS string generation to before style mount. PR [#14](https://github.com/axrs/re-css/issues/14).

# 0.1.0

## 0.1.0

Added:

- support for global shared styles (i.e. @font-face). PR #13. Credits: @AndreTheHunter
* support for global shared styles (i.e. `@font-face`. PR [#13](https://github.com/axrs/re-css/issues/13). Credits: [**@AndreTheHunter**](https://github.com/AndreTheHunter)


# 0.0.1
## 0.0.1

Initial release
84 changes: 27 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
# re-css

CSS-in-JS integration with [reagent][1] (for use in SPA frameworks like [re-frame][2])
CSS-in-JS integration with [reagent](https://github.com/reagent-project/reagent) (for use in SPA frameworks like [re-frame](https://github.com/day8/re-frame))

[![Clojars Project](https://img.shields.io/clojars/v/io.axrs/re-css.svg)](https://clojars.org/io.axrs/re-css)
[![CircleCI](https://circleci.com/gh/axrs/re-css.svg?style=svg)](https://circleci.com/gh/axrs/re-css)

[![Clojars Project][13]][3]
[![CircleCI][17]][16]

## Table of Contents

- [Overview](#overview)
* [Overview](#overview)

* [Getting Started](#getting-started)

- [Getting Started](#getting-started)
* [Example](#example)

- [Example](#example)
* [Code Quality](#code-quality)

- [Code Quality](#code-quality)

## Overview

**re-css** provides a simplistic macro to independently style reagent components (Form-1, Form-2, and Form-3) in [re-frame][2]
or [reagent][1] applications. Ultimately removing the pains of cascading styles, name collisions and code/style separation.
**re-css** provides a simplistic macro to independently style reagent components (Form-1, Form-2, and Form-3) in [re-frame](https://github.com/day8/re-frame)
or [reagent](https://github.com/reagent-project/reagent) applications. Ultimately removing the pains of cascading styles, name collisions and code/style separation.

**re-css** injects individual inline stylesheets (defined adjacent to the component as EDN structures) into
the HEAD of the document JUST before the component is mounted; and subsequently removes the styles once the
component has been removed. All styles are [Garden][14] structures.
component has been removed. All styles are [Garden](https://github.com/noprompt/garden) structures.

**re-css** aims to:

- Bring CSS and component code together
- Reduce unnecessary CSS declaration (by only defining what the component needs, not what it has to override)
- Remove a potential build tool (SASS/LESS)
- Eliminate class name collisions
- Provide a clean path moving forward (assist moving away from legacy styles)
* Bring CSS and component code together
* Reduce unnecessary CSS declaration (by only defining what the component needs, not what it has to override)
* Remove a potential build tool (SASS/LESS)
* Eliminate class name collisions
* Provide a clean path moving forward (assist moving away from legacy styles)


## Getting Started

Expand All @@ -40,7 +43,7 @@ component has been removed. All styles are [Garden][14] structures.
### Example

![Example][15]
![Example](example/example.gif)

```clojure
(ns io.axrs.re-css.example.core
Expand Down Expand Up @@ -118,9 +121,9 @@ component has been removed. All styles are [Garden][14] structures.
[:button (merge attrs (classes attrs [:button])) text])})
```

[View Full Example][4]
[View Full Example](example/src/io/axrs/re_css/example/core.cljs)

> Running the example using [Shadow-CLJS][7]:
> Running the example using [Shadow-CLJS](http://shadow-cljs.org/):

```bash
git clone git@github.com:axrs/re-css.git
Expand All @@ -130,46 +133,13 @@ npx shadow-cljs watch example
# Open a browser to http://localhost:8080
```


## Code Quality

**re-css** uses several code quality tools (like linting) to ensure consistency in formatting between editors and developers.
These tools should be automatically applied before each commit through the use of the [`pre-commit` hook][12].

| Source | Tool | Website |
| ----------------- | ------ | ------------------------------------------ |
| Markdown | Remark | [https://remark.js.org/][5] |
| CLJ/CLJC/CLJS/EDN | cljfmt | [https://github.com/weavejester/cljfmt][6] |

[1]: https://github.com/reagent-project/reagent

[2]: https://github.com/Day8/re-frame

[4]: example/src/io/axrs/re_css/example/core.cljs

[5]: https://remark.js.org/

[6]: https://github.com/weavejester/cljfmt

[7]: http://shadow-cljs.org/

[8]: #overview

[9]: #getting-started

[10]: #example

[11]: #code-quality

[12]: githooks/pre-commit

[3]: https://clojars.org/io.axrs/re-css

[13]: https://img.shields.io/clojars/v/io.axrs/re-css.svg

[14]: https://github.com/noprompt/garden

[15]: example/example.gif

[16]: https://circleci.com/gh/axrs/re-css
These tools should be automatically applied before each commit through the use of the [`pre-commit` hook](githooks/pre-commit).

[17]: https://circleci.com/gh/axrs/re-css.svg?style=svg
| Source | Tool | Website |
| ----------------- | ------ | --------------------------------------- |
| Markdown | Remark | <https://remark.js.org/> |
| CLJ/CLJC/CLJS/EDN | cljfmt | <https://github.com/weavejester/cljfmt> |

0 comments on commit 972e33c

Please sign in to comment.