Skip to content

Commit 44359ca

Browse files
committed
refactor(theme): add fluent presets
1 parent 47d4efb commit 44359ca

File tree

6 files changed

+129
-0
lines changed

6 files changed

+129
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import '../index';
2+
3+
@include igx-core();
4+
@include igx-fluent-dark-theme($fluent-excel-palette);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import '../index';
2+
3+
@include igx-core();
4+
@include igx-fluent-dark-theme($fluent-word-palette);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import '../index';
2+
3+
@include igx-core();
4+
@include igx-fluent-theme($fluent-excel-palette);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import '../index';
2+
3+
@include igx-core();
4+
@include igx-fluent-theme($fluent-word-palette);
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
$fluent_h1: igx-type-style(
2+
$font-size: rem(68px),
3+
$font-weight: 700,
4+
$line-height: rem(76px),
5+
$text-transform: none,
6+
$margin-top: 0,
7+
$margin-bottom: 0
8+
);
9+
10+
$fluent_h2: igx-type-style(
11+
$font-size: rem(42px),
12+
$font-weight: 700,
13+
$line-height: rem(52px),
14+
$text-transform: none,
15+
$margin-top: 0,
16+
$margin-bottom: 0
17+
);
18+
19+
$fluent_h3: igx-type-style(
20+
$font-size: rem(32px),
21+
$font-weight: 600,
22+
$line-height: rem(40px),
23+
$text-transform: none,
24+
$margin-top: 0,
25+
$margin-bottom: 0
26+
);
27+
28+
$fluent_h4: igx-type-style(
29+
$font-size: rem(28px),
30+
$font-weight: 400,
31+
$line-height: rem(36px),
32+
$text-transform: none,
33+
$margin-top: 0,
34+
$margin-bottom: 0
35+
);
36+
37+
$fluent_h5: igx-type-style(
38+
$font-size: rem(20px),
39+
$font-weight: 400,
40+
$line-height: rem(28px),
41+
$text-transform: none,
42+
$margin-top: 0,
43+
$margin-bottom: 0
44+
);
45+
46+
$fluent_h6: igx-type-style(
47+
$font-size: rem(18px),
48+
$font-weight: 400,
49+
$line-height: rem(22px),
50+
$text-transform: none,
51+
$margin-top: 0,
52+
$margin-bottom: 0
53+
);
54+
55+
$fluent_body-1: igx-type-style(
56+
$font-size: rem(16px),
57+
$font-weight: 400,
58+
$line-height: rem(22px),
59+
$text-transform: none,
60+
$margin-top: 0,
61+
$margin-bottom: 0
62+
);
63+
64+
$fluent_body-2: igx-type-style(
65+
$font-size: rem(14px),
66+
$font-weight: 400,
67+
$line-height: rem(20px),
68+
$text-transform: none,
69+
$margin-top: 0,
70+
$margin-bottom: 0
71+
);
72+
73+
$fluent_subtitle-1: igx-type-style(
74+
$font-size: rem(12px),
75+
$font-weight: 400,
76+
$line-height: rem(16px),
77+
$text-transform: none,
78+
$margin-top: 0,
79+
$margin-bottom: 0
80+
);
81+
82+
$fluent_subtitle-2: igx-type-style(
83+
$font-size: rem(10px),
84+
$font-weight: 400,
85+
$line-height: rem(14px),
86+
$text-transform: none,
87+
$margin-top: 0,
88+
$margin-bottom: 0
89+
);
90+
91+
$fluent_button: igx-type-style(
92+
$font-size: rem(14px),
93+
$font-weight: 600,
94+
$line-height: rem(14px),
95+
$text-transform: capitalize,
96+
$margin-top: 0,
97+
$margin-bottom: 0
98+
);
99+
100+
$fluent-type-scale: igx-type-scale(
101+
$h1: $fluent_h1,
102+
$h2: $fluent_h2,
103+
$h3: $fluent_h3,
104+
$h4: $fluent_h4,
105+
$h5: $fluent_h5,
106+
$h6: $fluent_h6,
107+
$subtitle-1: $fluent_subtitle-1,
108+
$subtitle-2: $fluent_subtitle-2,
109+
$body-1: $fluent_body-1,
110+
$body-2: $fluent_body-2,
111+
$button: $fluent_button
112+
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import './fluent';

0 commit comments

Comments
 (0)