Skip to content

zhaoyuanbang/vite-components-playground

 
 

Repository files navigation

vite-components-playground

This is a vue3 components playground use vite.

If you are using vue2 you can use litter bother vue-general-components

Doc site

npm run dev

Use vite-plugin-vuedoc to change markdown to vue , Tailwind for site css framework.

this framework is still not the best.

Build site

npm run build

Build components

npm run build:all

Use rollup-plugin-vue , rollup-plugin-esbuild build vue components.

Core Concepts

tailwindcss

I used tailwindcss on the project, and you can follow its component development scenario to develop the components。Its Utility-First principle can help us to normalize the style code. If you find three duplicates of the style you have written, you can extract the utility classes. see utility classes

more detail check doc css-utility-classes-and-separation-of-concerns

Style writing specification:

  • Utility-First
  • Dark mode
  • Responsive Design

More design specifications can be found at: https://tailwindcss.com/

TODO: write tailwindcss plugins with style, and the vscode plugin

General Rules for components

Components have a certain degree of generality, in the design of components need to consider similar general rules and configuration to the global. For example, support default support different component size, support text text-direction, and so on.

ant-design config provider

TODO

  • Product
    • vite2
    • github action
    • netlify
  • add core concepts
  • add test
  • practice

more detail see my blog

License

MIT © xxholly32 (xiangxiao)

Releases

No releases published

Packages

No packages published

Languages

  • Vue 32.3%
  • JavaScript 27.1%
  • TypeScript 25.2%
  • CSS 11.6%
  • HTML 2.4%
  • Shell 1.4%