Last active
November 28, 2022 10:00
-
-
Save FrankFang/feaa895f358ce6c0e67a3318bd3ea265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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