26
26
27
27
</div >
28
28
29
- ## ✨Feature
29
+ ## ✨Features
30
30
31
- ✅ Style vue component or styled component
31
+ ✅ ** Component Styling ** - Style Vue components, styled components, and HTML elements
32
32
33
- ✅ Set default attrs
33
+ ✅ ** Props & Attrs ** - Pass props, set default attributes, and override attrs dynamically
34
34
35
- ✅ Passed props
35
+ ✅ ** Theming System ** - Built-in theme provider with nested theme support
36
36
37
- ✅ Support theming
37
+ ✅ ** Performance Optimized ** - Smart caching, batch updates, and async processing
38
38
39
- ✅ Generate keyframes
39
+ ✅ ** CSS Features ** - Keyframes, global styles, CSS mixins, and nesting support
40
40
41
- ✅ Generate css mixin
41
+ ✅ ** Tailwind Integration ** - Seamless Tailwind CSS class integration
42
42
43
- ✅ Create global style
43
+ ✅ ** Plugin System ** - Extensible plugin architecture with hooks
44
44
45
- ✅ Add or override attrs
45
+ ✅ ** Developer Experience ** - TypeScript support, performance monitoring, and auto-prefixing
46
46
47
- ✅ Support nesting css.
48
-
49
- ✅ Auto-prefix css.
50
-
51
- ...
47
+ ✅ ** Production Ready** - Optimized for performance with configurable caching and batching
52
48
53
49
## 📖Documentation
54
50
55
51
For detailed introduction and usage instructions, please refer to [ the documentation website] ( https://vue-styled-components.com )
56
52
57
- ## 🚀Getting Start
53
+ ## 🚀Quick Start
58
54
59
- ### 📦Install
55
+ ### 📦Installation
60
56
61
57
``` sh
62
58
npm i @vue-styled-components/core
@@ -70,109 +66,19 @@ yarn add @vue-styled-components/core
70
66
pnpm i @vue-styled-components/core
71
67
```
72
68
73
- ### 💅Basic
74
-
75
- ``` vue
76
- <script setup lang="ts">
77
- import { styled } from '@vue-styled-components/core';
78
- import OtherComponent from './VueComponent.vue';
79
-
80
- const StyledDiv = styled('div')`
81
- width: 100px;
82
- height: 100px;
83
- background-color: #ccc;
84
- color: #000;
85
- `;
86
- const StyledStyledDiv = styled(StyledDiv)`
87
- width: 100px;
88
- height: 100px;
89
- background-color: #000;
90
- color: #fff;
91
- `;
92
- const StyledOtherComponent = styled(OtherComponent)`
93
- width: 100px;
94
- height: 100px;
95
- background-color: red;
96
- color: #fff;
97
- `;
98
- </script>
99
-
100
- <template>
101
- <StyledDiv>Styled Div</StyledDiv>
102
- <StyledStyledDiv>Styled Styled Div</StyledStyledDiv>
103
- <StyledOtherComponent>Styled Other Vue Component</StyledOtherComponent>
104
- </template>
105
- ```
69
+ ### 💡Usage
106
70
107
- ### 🔧Attrs Setting
108
-
109
- ``` vue
110
- <script setup lang="ts">
111
- import { styled } from '@vue-styled-components/core';
112
-
113
- const StyledDiv = styled.div.attrs({
114
- class: 'styled-div'
115
- })`
116
- width: 100px;
117
- height: 100px;
118
- background-color: #ccc;
119
- color: #000;
120
- `;
121
- </script>
122
-
123
- <template>
124
- <StyledDiv>Styled Div</StyledDiv>
125
- <!-- <div class="styled-div">Styled Div</div> -->
126
- </template>
127
- ```
71
+ Get started quickly with our comprehensive documentation and examples:
128
72
129
- ### 🕹️Control Dynamic Style by Props
130
-
131
- You must define the props in the ` styled ` function if you want to use them in the style. Because Vue components
132
- require explicit props declaration so that Vue knows what external props passed to the component should be treated as
133
- fallthrough attributes.(see [ Props Declaration] ( https://vuejs.org/guide/components/props.html#props-declaration ) )
134
-
135
- ``` vue
136
- <script setup lang="ts">
137
- import { styled } from '@vue-styled-components/core';
138
-
139
- const StyledDiv = styled('div', {
140
- color: String
141
- })`
142
- width: 100px;
143
- height: 100px;
144
- background-color: #ccc;
145
- color: ${(props) => props.color};
146
- `;
147
- </script>
148
-
149
- <template>
150
- <StyledDiv color="red">Styled Div</StyledDiv>
151
- </template>
152
- ```
153
-
154
- ### 🧙Theming
155
-
156
- ``` vue
157
- <script setup lang="ts">
158
- import { styled, ThemeProvider } from '@vue-styled-components/core';
159
-
160
- const StyledDiv = styled.div`
161
- width: 100px;
162
- height: 100px;
163
- background-color: #ccc;
164
- color: ${(props) => props.theme.color};
165
- `;
166
- </script>
167
-
168
- <template>
169
- <ThemeProvider :theme="{ color: '#fff' }">
170
- <StyledDiv>Styled Div</StyledDiv>
171
- </ThemeProvider>
172
- </template>
173
- ```
73
+ ** 👉 [ Visit Documentation Website] ( https://vue-styled-components.com ) 👈**
174
74
175
- ** More details see [ docs site] ( https://v-vibe.github.io/vue-styled-components/ ) **
75
+ The documentation includes:
76
+ - 📚 Complete API reference
77
+ - 🎯 Step-by-step tutorials
78
+ - 💡 Best practices and patterns
79
+ - 🔧 Configuration options
80
+ - 🎨 Advanced theming guide
81
+ - ⚡ Performance optimization tips
176
82
177
83
## 🧑🤝🧑Contributors
178
84
0 commit comments