diff --git a/index.html b/index.html index d0f31d675..e278e5b44 100644 --- a/index.html +++ b/index.html @@ -30,8 +30,8 @@
You can use Shoelace with just about every browser. The CDN version is great for - prototyping, but to take full advantage you should - build it from source. + prototyping, but to take advantage of all its features you should + build Shoelace from source.
@@ -39,15 +39,20 @@
:root {
- --info-color: white;
- --info-bg: color(teal shade(25%));
+ /* Use CSS variables */
+ --state-primary: #09d;
+
+ /* Use color functions instead of hard-coding values */
+ --alert-bg-color: color(var(--state-primary) tint(75%));
+ --alert-color: color(var(--state-primary) lightness(25%));
}
-.info {
- color: var(--info-color);
- background: var(--info-bg);
+/* Nest selectors for better legibility */
+.alert {
+ background-color: var(--alert-bg-color);
+ color: var(--alert-color);
- &.info-big {
+ &.alert-lg {
font-size: 2rem;
}
}