chiya/assets/css/app.css

101 lines
2.3 KiB
CSS
Raw Normal View History

2023-03-05 16:07:40 +01:00
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
2023-04-07 10:31:54 +02:00
@import "./reset.css";
2023-03-13 02:03:48 +01:00
@import "./lolight.css";
@import "./lightbox.css";
2023-03-15 10:21:08 +01:00
@layer base {
:root[data-theme=default] {
--color-primary: 68 68 68;
2023-03-15 16:15:24 +01:00
--color-background: 255 255 255;
--color-text-base: 68 68 68;
--color-text-heading: 68 68 68;
--color-text-muted: 153 153 153;
--color-text-dim: 204 204 204;
}
:root[data-theme=default][data-mode=dark] {
--color-primary: 255 255 255;
--color-background: 34 34 34;
--color-text-base: 204 204 204;
--color-text-heading: 255 255 255;
--color-text-muted: 102 102 102;
--color-text-dim: 68 68 68;
2023-03-15 10:21:08 +01:00
}
2023-03-15 16:27:15 +01:00
2023-03-30 14:34:26 +02:00
:root[data-theme=frame] {
--color-primary: 91 82 254;
--color-background: 237 238 242;
--color-text-base: 38 43 55;
--color-text-heading: 57 65 83;
--color-text-muted: 57 65 83;
--color-text-dim: 76 87 111;
}
:root[data-theme=frame][data-mode=dark] {
--color-primary: 91 82 254;
--color-background: 38 43 55;
--color-text-base: 204 204 204;
--color-text-heading: 204 204 204;
--color-text-muted: 76 87 111;
--color-text-dim: 57 65 83;
2023-03-15 16:27:15 +01:00
}
2023-03-31 22:56:34 +02:00
:root[data-theme=gruvbox] {
--color-primary: 175 58 3;
--color-background: 251 241 199;
--color-text-base :40 40 40;
--color-text-heading: 66 123 88;
--color-text-muted: 60 56 54;
--color-text-dim: 102 92 84;
}
:root[data-theme=gruvbox][data-mode=dark] {
--color-primary: 214 93 14;
--color-background: 40 40 40;
--color-text-base: 251 241 199;
--color-text-heading: 104 157 106;
--color-text-muted: 235 219 178;
--color-text-dim: 189 174 147;
}
2023-03-15 10:21:08 +01:00
}
/*
Invert prose styles based on the variant of the theme.
*/
:root[data-mode=dark] .prose {
@apply prose-invert;
}
.prose :where(a):not(:where([class~="not-prose"] *)) {
2023-04-01 16:05:12 +02:00
@apply underline decoration-1 decoration-theme-primary;
}
.prose :where(h2):not(:where([class~="not-prose"] *)) {
2023-04-04 15:37:52 +02:00
@apply font-serif text-theme-heading;
}
2023-03-31 17:01:27 +02:00
.prose img {
2023-04-04 10:06:10 +02:00
@apply rounded border border-theme-dim;
2023-03-31 17:01:27 +02:00
}
2023-03-17 21:21:01 +01:00
/* Set width and color for identity icons */
a[rel] svg {
width: 1em;
fill: rgb(var(--color-text-heading));
2023-03-17 21:21:01 +01:00
}
/* Set width and color for identity icons */
svg {
width: 1.5em;
}
.alert {
@apply p-3 mt-3 rounded;
}
.alert-danger {
@apply bg-red-100 text-red-500 dark:bg-red-950 dark:text-red-500;
}