-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
96 lines (86 loc) 路 2.21 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@use './../src' as lui;
@use './../src/typo' as typo;
@use './../src/color' as color;
@use './../src/var' as var;
$colors: (
background: white,
primary: yellow,
secondary: blueviolet,
'primary-20%': rgba(255, 255, 0, .2),
text: (
primary: black,
secondary: blue,
)
);
$measures: (
size: (
'1x': 100px,
'2x': 200px,
'3x': 300px,
'4x': 400px,
'5x': 500px,
'6x': 600px,
'6.5x': 650px,
)
);
$typographies: (
heading: (
// avoid creating css variables for root properties
__include-root__: false,
family: 'Outfit',
weight: 600,
display: ( size: 5rem, line-height: 5.5rem, letter-spacing: -0.125rem),
h1: ( size: 3.5rem, line-height: 4.375rem, letter-spacing: -0.063rem),
h2: ( size: 2.813rem, line-height: 3.25rem, letter-spacing: normal, weight: 700,),
// ...
),
text: (
family: 'Inter',
size: 16px,
weight: 400,
line-height: 1.5rem,
letter-spacing: 0.031rem,
bold: ( weight: 600 ),
xl: (
size: 1.5rem,
line-height: 1.875rem,
letter-spacing: 0rem,
bold: ( weight: 600, )
),
sm: (
size: 0.875rem,
)
)
);
@include lui.init(
$theme: (
colors: $colors,
variables: ( m: $measures ),
typographies: $typographies,
),
$breakpoints: ( xs: 0, sm: 22px ),
$options: (
reboot: true,
common: true,
theme: true,
color-utilities: true,
utilities: false,
fg-var-name: 'text/secondary',
)
);
.typo-module-test {
@include typo.typography('heading/h1');
}
.color-module-test {
background-color: color.get('primary', 'rgb', #fff);
background-color: color.get('primary', 'contrast');
background-color: color.get('primary', 'contrast-rgb');
background-color: color.get('primary');
background-color: color.get('text.primary');
background-color: color.get('primary-20%');
}
.var-module-test {
width: var.get('m/1x');
height: var.get('m/6.5x');
font-size: var.get('m.4x');
}