qrframe/uno.config.ts

54 wiersze
1.6 KiB
TypeScript
Czysty Zwykły widok Historia

2024-05-05 03:34:27 +00:00
import { defineConfig } from "unocss";
import transformerVariantGroup from "@unocss/transformer-variant-group";
export default defineConfig({
blocklist: ["m55"],
2024-05-05 03:34:27 +00:00
transformers: [transformerVariantGroup()],
theme: {
colors: {
fore: {
base: "#fafafa",
2024-05-06 03:40:20 +00:00
subtle: "#858c8a",
border: "#4c4f4e",
2024-05-05 03:34:27 +00:00
},
back: {
2024-05-06 03:40:20 +00:00
base: "#0e0f0f",
subtle: "#1a1b1c",
2024-08-31 00:19:53 +00:00
distinct: "#3d3e3e"
2024-05-05 03:34:27 +00:00
},
},
2024-06-30 08:45:24 +00:00
animation: {
2024-07-08 03:59:52 +00:00
keyframes: {
"collapsible-exit":
"{ from { height: var(--kb-collapsible-content-height); } to { height: 0; } }",
"collapsible-enter":
"{ from { height: 0; } to { height: var(--kb-collapsible-content-height); } }",
2024-08-24 04:33:22 +00:00
"slide-in":
"{ from { transform: translateX(calc(100% + 16px)); } to { transform: translateX(0); } }",
"swipe-out":
"{ from { transform: translateX(var(--kb-toast-swipe-end-x)); } to { transform: translateX(calc(100% + 16px)); } }",
"fade-out": "{ from { opacity: 0.5; } to { opacity: 0; } }",
2024-07-05 03:48:54 +00:00
},
2024-07-08 03:59:52 +00:00
durations: {
"collapsible-exit": "300ms",
"collapsible-enter": "300ms",
2024-08-24 04:33:22 +00:00
"swipe-out": "200ms",
"slide-in": "100ms",
"fade-out": "100ms",
2024-07-05 03:48:54 +00:00
},
2024-07-08 03:59:52 +00:00
timingFns: {
"collapsible-exit": "ease-out",
"collapsible-enter": "ease-out",
2024-08-24 04:33:22 +00:00
"swipe-out": "ease-out",
"slide-in": "ease-in",
"fade-out": "ease-in",
2024-06-30 08:45:24 +00:00
},
},
2024-05-05 03:34:27 +00:00
},
2024-05-06 03:40:20 +00:00
preflights: [
{
getCSS: ({ theme }) =>
`*{--un-default-border-color:${theme.colors.fore.border};}`,
},
],
2024-05-05 03:34:27 +00:00
});