-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindi.config.js
122 lines (110 loc) · 3.38 KB
/
windi.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import { defineConfig } from 'windicss/helpers'
// @ts-check - enable TS check for js file
export default defineConfig({
// attributify: true,
darkMode: 'class',
extract: {
include: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/protonemedia/laravel-splade/lib/**/*.vue',
'./vendor/protonemedia/laravel-splade/resources/views/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./resources/js/**/*.vue',
],
exclude: ['node_modules/**/*', '.git'],
},
alias: {
'hstack': 'flex items-center',
'vstack': 'flex flex-col',
'icon': 'w-6 h-6 fill-current',
'app': 'text-red',
'app-border': 'border-gray-200 dark:border-dark-300',
},
presets: [],
theme: {
fontFamily: {
sans: 'v-sans',
},
// extend: {
// screens: {
// 'sm': '640px',
// 'md': '768px',
// 'lg': '1024px',
// 'xl': '1280px',
// '2xl': '1536px',
// },
// colors: {
// blue: colors.sky,
// red: colors.rose,
// pink: colors.fuchsia,
// },
// spacing: {
// 128: '32rem',
// 144: '36rem',
// },
// borderRadius: {
// '4xl': '2rem',
// },
// },
},
shortcuts: {
'btn': 'outline outline-1 flex items-center gap-2 rounded font-semibold px-1.5 py-0.5 transition-all ease-in-out duration-300',
'btn-primary': 'outline-gray-800 bg-gray-800 text-gray-300 dark:(text-gray-400 bg-gray-600 outline-gray-600) hover:(dark:text-gray-500 bg-gray-500 outline-gray-500 text-gray-300)',
'btn-outline': 'outline-gray-600 dark:outline-gray-400 hover:(dark:(outline-gray-400 text-gray-400) outline-gray-500 text-gray-500)',
'btn-lg': 'py-5 px-5 text-2xl',
'explainer': 'text-xs text-gray-400',
},
plugins: [
// plugin(({ addUtilities }) => {
// const newUtilities = {
// '.skew-10deg': {
// transform: 'skewY(-10deg)',
// },
// '.skew-15deg': {
// transform: 'skewY(-15deg)',
// },
// }
// addUtilities(newUtilities)
// }),
// plugin(({ addComponents }) => {
// const buttons = {
// '.btn': {
// padding: '.5rem 1rem',
// borderRadius: '.25rem',
// fontWeight: '600',
// },
// '.btn-blue': {
// 'backgroundColor': '#3490dc',
// 'color': '#fff',
// '&:hover': {
// backgroundColor: '#2779bd',
// },
// },
// '.btn-red': {
// 'backgroundColor': '#e3342f',
// 'color': '#fff',
// '&:hover': {
// backgroundColor: '#cc1f1a',
// },
// },
// }
// addComponents(buttons)
// }),
// plugin(({ addDynamic, variants }) => {
// addDynamic('skew', ({ Utility, Style }) => {
// return Utility.handler
// .handleStatic(Style('skew'))
// .handleNumber(0, 360, 'int', number => `skewY(-${number}deg)`)
// .createProperty('transform')
// }, variants('skew'))
// }),
require('windicss/plugin/filters'),
require('windicss/plugin/forms'),
require('windicss/plugin/aspect-ratio'),
require('windicss/plugin/line-clamp'),
require('windicss/plugin/typography')({
modifiers: ['DEFAULT', 'sm', 'lg', 'red'],
}),
],
})