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

Commit b5fd502

Browse files
stylus - Add new Stylus to set up CSS variables
1 parent e0ed638 commit b5fd502

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/base/css-variables.styl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* @group CSS variables */
2+
3+
colors = {
4+
primary : #0047dd
5+
secondary : #0057a8
6+
tertiary : #777777
7+
disable : #F1F3F4
8+
info : #008196
9+
inverse : #ffffff
10+
link : #1b6ec2
11+
danger : #b2081a
12+
success : #2e6430
13+
warning : #993900
14+
bg-primary : #c6cdff
15+
bg-secondary : #a9d2ff
16+
bg-tertiary : #d5d5d5
17+
bg-disable : #F1F3F4
18+
bg-info : #f7ffff
19+
bg-inverse : #ffffff
20+
bg-link : #1b6ec2
21+
bg-danger : #ffc0ad
22+
bg-success : #a5dfa2
23+
bg-warning : #ffc286
24+
25+
}
26+
27+
for name, color in colors
28+
:root
29+
--color-{name}(color)
30+
--color-bg-{name}(color)
31+
32+
/* @end */

0 commit comments

Comments
 (0)