Welcome to mirror list, hosted at ThFree Co, Russian Federation.

variables.less « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6d44df2b423b0d7a0aa53ab799eb0e2fbf4a82ec (plain)
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
// Core variables

// Global
@html-font-size: 10px;
@html-line-height: 1.428571429;
@body-bg: #fff;
@body-font-color: lighten(@dark-color, 5%);
@font-size: 1.4rem;
@font-size-sm: 1.2rem;
@font-size-lg: 1.6rem;

// Fonts
// Credit: https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
@base-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto;
@fallback-font-family: "Helvetica Neue", sans-serif;
@cjk-font-family: @base-font-family, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", Meiryo, "Malgun Gothic", @fallback-font-family;
@body-font-family: @base-font-family, @fallback-font-family;

// Sizes
@layout-padding: 1rem;
@layout-padding-lg: 1.5rem;
@control-min-width: 18rem;
@border-radius: .2rem;
@border-width: .1rem;

// Colors
// Core colors
@primary-color: #5764c6;
@primary-color-dark: darken(@primary-color, 3%);
@primary-color-light: lighten(@primary-color, 3%);
@secondary-color: lighten(@primary-color, 40%);
@secondary-color-dark: darken(@secondary-color, 3%);
@secondary-color-light: lighten(@secondary-color, 3%);

@link-color: @primary-color;
@link-color-dark: darken(@link-color, 10%);

// Gray colors
@dark-color: #454d5d;
@light-color: #fff;
@gray-color: lighten(@dark-color, 40%);
@gray-color-dark: darken(@gray-color, 20%);
@gray-color-light: lighten(@gray-color, 20%);

@border-color: lighten(@gray-color-light, 3%);
@border-color-dark: darken(@border-color, 15%);
@bg-color: lighten(@dark-color, 66%);
@bg-color-dark: darken(@bg-color, 3%);
@bg-color-light: @light-color;

// Control colors
@control-color-success: #32b643;
@control-color-warning: #ffb700;
@control-color-danger: #e85600;

// Other colors
@code-color: #e06870;
@highlight-color: #ffe9b3;

// Responsive breakpoints
@size-xs: 480px;
@size-sm: 600px;
@size-md: 840px;
@size-lg: 960px;
@size-xl: 1280px;
@size-2x: 1440px;

// Z-index and shadows
@zindex-0: 1;
@zindex-1: 100;
@zindex-2: 200;
@zindex-3: 300;
@zindex-4: 400;

@shadow-0: 0 0 .2rem rgba(0, 0, 0, .3);
@shadow-1: 0 .1rem .4rem rgba(0, 0, 0, .3);
@shadow-2: 0 .2rem .8rem rgba(0, 0, 0, .3);
@shadow-3: 0 .3rem 1.2rem rgba(0, 0, 0, .3);
@shadow-4: 0 .4rem 1.6rem rgba(0, 0, 0, .3);