Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,27 @@ $ npm
$ npm start
```

## Overview:

Here's what we are doing:

- Writing a CSS [mixin] containing classes of the DOM elements we want to styled as a part of our theme
- Including our mixin in the stylesheet meant to be imported in the entry javascript(index.js) or the topmost component(App.js)
- Writing a short script to change the class of the <body> element using a dropdown in our App component

## Solution:

#### [Theme.less](https://github.com/bearded-impala/CSS-Theming/blob/master/src/styles/Theme.less)

This stylesheet contains a generic [mixin] style template for your user interface

#### [App.less](https://github.com/bearded-impala/CSS-Theming/blob/master/src/styles/App.less)

The stylesheet for your App.js:

- holds all the colors in the form of [variables]
- includes the theme mixin with color variables as its arguments

#### [index.html](https://github.com/bearded-impala/CSS-Theming/blob/master/index.html)

```
Expand All @@ -35,16 +54,5 @@ $ npm start
...
```

#### [Theme.less](https://github.com/bearded-impala/CSS-Theming/blob/master/src/styles/Theme.less)

This stylesheet contains a generic [mixin] style template for your user interface

#### [App.less](https://github.com/bearded-impala/CSS-Theming/blob/master/src/styles/App.less)

The stylesheet for your App.js:

- holds all the colors in the form of [variables]
- includes the theme mixin with color variables as its arguments

[mixin]: http://lesscss.org/features/#mixins-feature
[variables]: http://lesscss.org/features/#variables-feature