Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit e0ed638

Browse files
stylus - Add new Stylus to generate primary colours
1 parent e5480ca commit e0ed638

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"gulp-csscomb": "^3.1.0",
7070
"gulp-csslint": "^1.0.1",
7171
"gulp-git": "^2.10.1",
72+
"gulp-group-css-media-queries": "^1.2.2",
7273
"gulp-header": "^2.0.9",
7374
"gulp-rename": "^2.0.0",
7475
"gulp-size": "^3.0.0",
@@ -78,5 +79,8 @@
7879
"mocha": "^8.3.2",
7980
"should": "^13.2.3",
8081
"vinyl-paths": "3.0.1"
82+
},
83+
"dependencies": {
84+
"stylint": "^2.0.0"
8185
}
8286
}

src/base/colours.styl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* @group Primary Colours */
2+
3+
colors = primary,secondary,tertiary,disable,info,inverse,link,danger,success,warning
4+
5+
for color, i in colors
6+
.{colors[i]}
7+
color: '$%s' % ((colors[i]))
8+
9+
.color-{colors[i]}
10+
color: '$%s' % ((colors[i]))
11+
12+
.background-color-{colors[i]}
13+
background-color: '$%s' % ((colors[i]))
14+
15+
.border-color-{colors[i]}
16+
border: 1px solid '$%s' % ((colors[i]))
17+
18+
/* @end */

0 commit comments

Comments
 (0)