Skip to content

Commit 0d3d1ec

Browse files
committed
WIP
1 parent 5c7936a commit 0d3d1ec

4 files changed

Lines changed: 71 additions & 4 deletions

File tree

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
11
# ITCSS Boilerplate
22

3-
Inverted Triangle CSS architecture by Harry Roberts @csswizardry
3+
Inverted Triangle CSS architecture boilerplate. Includes a Gulp task to build CSS for production.
4+
5+
## Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# build for development
12+
gulp build
13+
14+
# build for production with minification
15+
gulp build --dist
16+
```
17+
18+
## What is ITCSS?
19+
20+
ITCSS stands for _Inverted Triangle CSS_. It is a sane, scalable, managed CSS architecture from [CSS Wizardry](https://csswizardry.com/).
21+
22+
## Further reading
23+
24+
- [Manage large CSS projects with ITCSS](http://www.creativebloq.com/web-design/manage-large-css-projects-itcss-101517528)
25+
- [Five insights from the year with Inverted Triangle CSS.](https://www.xfive.co/blog/itcss-year-after/)

src/main.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,27 @@
66
* TABLE OF CONTENTS
77
*
88
* SETTINGS
9+
* Global..............
10+
*
911
* TOOLS
12+
*
1013
* GENERIC
14+
*
1115
* ELEMENTS
16+
*
1217
* OBJECTS
18+
*
1319
* COMPONENTS
20+
*
1421
* UTILITIES
1522
*/
1623

17-
// SETTINGS
24+
/**
25+
* #SETTINGS
26+
*/
1827
@import "settings/settings.global";
1928

20-
// GENERIC
21-
@import "./node_modules/normalize.css/normalize";
29+
/**
30+
* #GENERIC
31+
*/
32+
@import "node_modules/normalize.css/normalize";

src/settings/_settings.color.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* -------------------------------------------------------------------------- *\
2+
#COLOR
3+
\* -------------------------------------------------------------------------- */
4+
5+
// Brand
6+
$color-brand: $brand-color;
7+
$color-brand-secondary: $brand-color-secondary;
8+
9+
// Neutral
10+
$color-black: #111;
11+
$color-gray: #aaa;
12+
$color-silver: #ddd;
13+
$color-white: #fff;
14+
15+
// Social
16+
$color-facebook: #3b5998;
17+
$color-linkedin: #0077b5;
18+
$color-twitter: #1da1f2;
19+
$color-youtube: #ff0000;
20+
21+
// Utility
22+
$color-error: #ff4136;
23+
$color-warning: #ff851b;
24+
$color-highlighter: #ffdc00;
25+
$color-success: #2ecc40;
26+
$color-information: #0074d9;

src/settings/_settings.global.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
/* -------------------------------------------------------------------------- *\
22
#GLOBAL
33
\* -------------------------------------------------------------------------- */
4+
5+
// Color
6+
$brand-color: #001f3f;
7+
$brand-color-secondary: #01ff70;
8+
9+
// Font
10+
$font: Arial, sans-serif;
11+
$font-secondary: Georgia, serif;

0 commit comments

Comments
 (0)