Skip to content

Instantly share code, notes, and snippets.

@FrankFang
Last active November 28, 2022 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankFang/feaa895f358ce6c0e67a3318bd3ea265 to your computer and use it in GitHub Desktop.
Save FrankFang/feaa895f358ce6c0e67a3318bd3ea265 to your computer and use it in GitHub Desktop.
import * as React from 'react'
declare module 'react' {
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
flex?: boolean
relative?: boolean
text?: string
grid?: boolean
before?: string
after?: string
shadow?: boolean
w?: string
h?: string
bg?: string
rounded?: string
fixed?: boolean
b?: string
z?: string
block?: boolean
'focus:shadow'?: boolean
}
interface SVGProps<T> extends SVGAttributes<T>, ClassAttributes<T> {
w?: string
h?: string
}
}
import {
defineConfig, presetAttributify, presetIcons,
presetTypography, presetUno, transformerAttributifyJsx
} from 'unocss'
export default defineConfig({
theme: {
},
shortcuts: {
'j-btn': 'h-48px w-100% bg-#5C33BE b-none text-white text-18px rounded-8px',
'j-input-text': 'h-48px px-16px leading-32px py-8px b-#5C33BE b-1 focus:shadow focus:shadow-inset rounded-8px text-18px',
'j-form': 'px-16px flex flex-col gap-y-24px children-flex children-flex-col',
'j-form-label': 'text-18px mb-8px',
},
safelist: [],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: { 'display': 'inline-block', 'vertical-align': 'middle' },
}),
presetTypography(),
],
transformers: [
transformerAttributifyJsx()
],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment