OLD | NEW |
1 /*! | 1 /*! |
2 * This file is part of universal-design-language | 2 * This file is part of universal-design-language |
3 * Copyright (C) 2016 Eyeo GmbH | 3 * Copyright (C) 2016 Eyeo GmbH |
4 * | 4 * |
5 * universal-design-language is free software: you can redistribute it and/or | 5 * universal-design-language is free software: you can redistribute it and/or |
6 * modify it under the terms of the GNU General Public License as published by | 6 * modify it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation, either version 3 of the License, or | 7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. | 8 * (at your option) any later version. |
9 * | 9 * |
10 * universal-design-language is distributed in the hope that it will be useful, | 10 * universal-design-language is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 13 * GNU General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License | 15 * You should have received a copy of the GNU General Public License |
16 * along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>. | 16 * along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>. |
17 */ | 17 */ |
18 | 18 |
19 /* colors | 19 /** UDL variables */ |
| 20 |
| 21 /* Table of contents |
| 22 ******************************************************************************* |
| 23 * - Basic colors |
| 24 * - Gray scale |
| 25 * - RGB scale |
| 26 * - Brand colors |
| 27 * - Primary |
| 28 * - Secondary |
| 29 * - Accent |
| 30 * - Error |
| 31 * - Fonts |
| 32 * - Font families |
| 33 * - Font sizes |
| 34 * - Font weights |
| 35 * - Spacing |
| 36 * - Breakpoints |
20 ******************************************************************************/ | 37 ******************************************************************************/ |
21 | 38 |
22 $white: #fafafa; | 39 /* Basic colors |
23 $gray-light: #e0e0e0; | |
24 $gray: #9e9e9e; | |
25 $gray-dark: #616161; | |
26 $black: #212121; | |
27 | |
28 $red-light: #ffcdd2; | |
29 $red: #f44336; | |
30 $red-dark: #b71c1c; | |
31 | |
32 $green-light: #c8e6c9; | |
33 $green: #4caf50; | |
34 $green-dark: #1b5e20; | |
35 | |
36 $blue-light: #bbdefb; | |
37 $blue: #2196f3; | |
38 $blue-dark: #0d47a1; | |
39 | |
40 $primary: $white; | |
41 $primary-foreground: $black; | |
42 $primary-background: $white; | |
43 | |
44 $inverted: $black; | |
45 $inverted-foreground: $white; | |
46 $inverted-background: $black; | |
47 | |
48 $secondary: $gray-dark; | |
49 $secondary-foreground: $gray-light; | |
50 $secondary-background: $gray-dark; | |
51 | |
52 $accent: $blue; | |
53 $accent-foreground: $white; | |
54 $accent-background: $blue-dark; | |
55 | |
56 $error: $red; | |
57 $error-foreground: $white; | |
58 $error-background: $red-dark; | |
59 | |
60 /* font sizes | |
61 ******************************************************************************/ | 40 ******************************************************************************/ |
62 | 41 |
63 $large-font: 24px; | 42 /* Gray scale */ |
64 $medium-font: 16px; | |
65 $small-font: 12px; | |
66 | 43 |
67 /* font weights | 44 $white: #fafafa !default; |
| 45 $gray-light: #e0e0e0 !default; |
| 46 $gray: #9e9e9e !default; |
| 47 $gray-dark: #616161 !default; |
| 48 $black: #212121 !default; |
| 49 |
| 50 /* RGB scale */ |
| 51 |
| 52 $red-light: #ffcdd2 !default; |
| 53 $red: #f44336 !default; |
| 54 $red-dark: #b71c1c !default; |
| 55 |
| 56 $green-light: #c8e6c9 !default; |
| 57 $green: #4caf50 !default; |
| 58 $green-dark: #1b5e20 !default; |
| 59 |
| 60 $blue-light: #bbdefb !default; |
| 61 $blue: #2196f3 !default; |
| 62 $blue-dark: #0d47a1 !default; |
| 63 |
| 64 /* Brand colors |
68 ******************************************************************************/ | 65 ******************************************************************************/ |
69 | 66 |
70 $bold-weight: 600; | 67 /* Primary - The most widely used across all screens and components. */ |
71 $normal-weight: 400; | |
72 $thin-weight: 300; | |
73 | 68 |
74 /* spacing | 69 $primary: $white !default; |
| 70 $primary-foreground: $black !default; |
| 71 $primary-background: $white !default; |
| 72 |
| 73 /* Secondary - Used to indicate a related action or information. */ |
| 74 |
| 75 $secondary: $gray-dark !default; |
| 76 $secondary-foreground: $gray-light !default; |
| 77 $secondary-background: $gray-dark !default; |
| 78 |
| 79 /* Accent - Used for action buttons and interactive elements. */ |
| 80 |
| 81 $accent: $blue !default; |
| 82 $accent-foreground: $white !default; |
| 83 $accent-background: $blue-dark !default; |
| 84 |
| 85 /* Error - Used for error messages and warnings. */ |
| 86 |
| 87 $error: $red !default; |
| 88 $error-foreground: $white !default; |
| 89 $error-background: $red-dark !default; |
| 90 |
| 91 /* Fonts |
75 ******************************************************************************/ | 92 ******************************************************************************/ |
76 | 93 |
77 $large-space: 56px; | 94 /* Font families */ |
78 $medium-space: 34px; | |
79 $small-space: 12px; | |
80 | 95 |
81 /* breakpoints | 96 $sans-font: sans-serif !default; |
| 97 $serif-font: serif !default; |
| 98 $monospace-font: monospace !default; |
| 99 |
| 100 /* Font sizes */ |
| 101 |
| 102 $large-font: 24px !default; |
| 103 $medium-font: 16px !default; |
| 104 $small-font: 12px !default; |
| 105 |
| 106 /* Font weights */ |
| 107 |
| 108 $bold-weight: 600 !default; |
| 109 $normal-weight: 400 !default; |
| 110 $thin-weight: 300 !default; |
| 111 |
| 112 /* Spacing |
82 ******************************************************************************/ | 113 ******************************************************************************/ |
83 | 114 |
84 $mobile-breakpoint: 576px; | 115 $large-space: 64px !default; |
85 $tablet-breakpoint: 768px; | 116 $medium-space: 32px !default; |
86 $desktop-breakpoint: 992px; | 117 $small-space: 16px !default; |
| 118 |
| 119 /* Breakpoints |
| 120 ******************************************************************************/ |
| 121 |
| 122 $mobile-breakpoint: 576px !default; |
| 123 $tablet-breakpoint: 768px !default; |
| 124 $desktop-breakpoint: 992px !default; |
OLD | NEW |