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: {
|
2024-07-03 15:33:51 +07:00
|
|
|
'primary': '#ED1C24',
|
2024-06-04 15:03:54 +07:00
|
|
|
'gray': {
|
2024-06-18 14:04:24 +07:00
|
|
|
500: '#bdbdbd',
|
2024-06-04 15:03:54 +07:00
|
|
|
600:' #757575'
|
2024-06-18 14:04:24 +07:00
|
|
|
},
|
|
|
|
|
black: {
|
|
|
|
|
Default: '#222',
|
|
|
|
|
'500': '#222',
|
|
|
|
|
'400': '#4f4f4f'
|
2024-06-04 15:03:54 +07:00
|
|
|
}
|
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-07-09 15:15:22 +07:00
|
|
|
'container-long': 'px-2 mx-auto w-full sm:w-620px md:w-760px lg:w-980px xl:w-1100px 2xl:w-1200px',
|
|
|
|
|
// Size tiền phong
|
|
|
|
|
'container-tp': "px-30px mx-auto w-full max-w-1385px"
|
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'],
|
2024-06-18 14:04:24 +07:00
|
|
|
beVietnam: ['Be Vietnam Pro', 'sans-serif'],
|
|
|
|
|
arial: "arial",
|
|
|
|
|
archivo: ["Archivo", 'sans-serif'],
|
2024-07-03 15:33:51 +07:00
|
|
|
merriweather: ["Merriweather", 'serif'],
|
|
|
|
|
gelasio: ["Gelasio", 'serif'],
|
|
|
|
|
raleway: ["raleway", 'sans-serif'],
|
2024-05-30 18:06:50 +07:00
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
transformers: [transformerVariantGroup(), transformerDirectives()],
|
|
|
|
|
}) satisfies ConfigBase;
|