2024-05-30 18:06:50 +07:00
|
|
|
import type { ConfigBase } from "unocss";
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
defineConfig,
|
|
|
|
|
transformerVariantGroup,
|
|
|
|
|
transformerDirectives,
|
|
|
|
|
presetWebFonts,
|
|
|
|
|
presetUno,
|
|
|
|
|
presetMini,
|
|
|
|
|
} from "unocss";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
safelist: [],
|
|
|
|
|
|
|
|
|
|
theme: {
|
|
|
|
|
colors: {
|
|
|
|
|
'primary': {
|
2024-06-03 12:27:58 +07:00
|
|
|
100: '#e6f4ff',
|
|
|
|
|
500: "#2563eb",
|
|
|
|
|
600: "#3c7abc",
|
2024-05-30 18:06:50 +07:00
|
|
|
},
|
2024-06-04 15:03:54 +07:00
|
|
|
'gray': {
|
|
|
|
|
600:' #757575'
|
|
|
|
|
}
|
2024-05-30 18:06:50 +07:00
|
|
|
// 'red': '#ff0018',
|
|
|
|
|
// 'blue': '#2d6cf6',
|
|
|
|
|
// 'brown-700': '#99553D',
|
|
|
|
|
// 'gray-100': '#f5f5f5',
|
|
|
|
|
// 'gray-200': '#eee',
|
|
|
|
|
// 'gray-400': '#bdbdbd',
|
|
|
|
|
// 'gray-600': '#757575',
|
|
|
|
|
// 'gray-700': '#616161',
|
|
|
|
|
// 'green-100': '#2ED0A9',
|
|
|
|
|
// 'yellow-700': '#eaa23e',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
shortcuts: [
|
|
|
|
|
{
|
|
|
|
|
"after:no-content": "after:content-['']",
|
|
|
|
|
"before:no-content": "before:content-['']",
|
2024-05-31 15:31:05 +07:00
|
|
|
'container-xxl': 'px-[8px] mx-auto w-full sm:w-620px md:w-760px lg:w-980px xl:w-1100px 2xl:w-1200px',
|
2024-05-30 18:06:50 +07:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
rules: [
|
|
|
|
|
[
|
|
|
|
|
"text-fill-transparent",
|
|
|
|
|
{
|
|
|
|
|
"-webkit-text-fill-color": "transparent",
|
|
|
|
|
"text-fill-color": "transparent",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"backdrop-blur-xs",
|
|
|
|
|
{
|
|
|
|
|
"backdrop-filter": "blur(2px)",
|
|
|
|
|
"-webkit-backdrop-filter": "blur(2px)",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"max-w-6xl",
|
|
|
|
|
{
|
|
|
|
|
"max-width": "60rem",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"max-w-8xl",
|
|
|
|
|
{
|
|
|
|
|
"max-width": "85.375rem",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
extractors: [],
|
|
|
|
|
presets: [
|
|
|
|
|
presetUno(),
|
|
|
|
|
presetWebFonts({
|
|
|
|
|
provider: "google",
|
|
|
|
|
fonts: {
|
|
|
|
|
nunito: "Nunito",
|
|
|
|
|
playfair: ['Playfair Display', 'sans-serif'],
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
transformers: [transformerVariantGroup(), transformerDirectives()],
|
|
|
|
|
}) satisfies ConfigBase;
|