You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove all color-100 tokens since we are using bootstrap's built-in
functions for color lightening
- Update changed hex values
Signed-off-by: Derick Montague <[email protected]>
Change-Id: I08894fdb64021e38ea8b5c0f47e127d72f3d3ecd
Copy file name to clipboardExpand all lines: docs/themes/readme.md
+40-16Lines changed: 40 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ This folder contains Sass helpers and default styles for customizing the OpenBMC
48
48
└─ _toasts.scss
49
49
└─ helpers
50
50
├─ _colors.scss
51
+
├─ _functions.scss
51
52
├─ _index.scss
52
53
├─ _motion.scss
53
54
└─ _variables.scss
@@ -66,16 +67,9 @@ The colors.scss file sets all the SASS variables and color maps for the OpenBMC
66
67
$black: #000;
67
68
$white: #fff;
68
69
69
-
$blue-100: #eff2fb;
70
70
$blue-500: #2d60e5;
71
-
72
-
$green-100: #ecfdf1;
73
71
$green-500: #0a7d06;
74
-
75
-
$red-100: #feeeed;
76
72
$red-500: #da1416;
77
-
78
-
$yellow-100: #fff8e4;
79
73
$yellow-500: #efc100;
80
74
81
75
$gray-100: #f4f4f4;
@@ -120,14 +114,6 @@ $primary: $blue;
120
114
$secondary: $gray-800;
121
115
$success: $green;
122
116
$warning: $yellow;
123
-
124
-
// Sass Color Variable Accents
125
-
// Used for component styles and are
126
-
// not available as variants
127
-
$danger-light: $red-100;
128
-
$info-light: $blue-100;
129
-
$warning-light: $yellow-100;
130
-
$success-light: $green-100;
131
117
```
132
118
133
119
##### Custom Theme Colors Map
@@ -149,6 +135,44 @@ $theme-colors: (
149
135
-[Learn more about Bootstrap variables](https://getbootstrap.com/docs/4.0/getting-started/theming/#css-variables)
150
136
-[View the color palette and hex values in the color guidelines](/guide/guidelines/colors)
151
137
138
+
#### _functions.scss
139
+
Two functions provide a customized way to set color highlights. The `theme-color-light` and `theme-color-dark` are custom functions used to create colors for the `alert`, `badge`, `card`, and `toast` components. They have also set color highlights for some pseudo-elements like `: hover`.
140
+
141
+
##### Functions
142
+
```scss
143
+
// This function is usually used to get a lighter
144
+
// theme variant color to use as a background color
145
+
@functiontheme-color-light($variant) {
146
+
@returntheme-color-level($variant, -11.3);
147
+
}
148
+
149
+
@functiontheme-color-dark($variant) {
150
+
@returntheme-color-level($variant, 2);
151
+
}
152
+
```
153
+
154
+
##### Examples
155
+
```scss{8-10,16}
156
+
.b-table-sort-icon-left {
157
+
background-position: left calc(1.5rem / 2) center !important;
This bezier curves and durations in this file determine the motion styles throughout the application. These guidelines from the Cabon Design System avoid easing curves that are unnatural, distracting, or purely decorative.
0 commit comments