2626
2727</div >
2828
29- ## ✨Feature
29+ ## ✨Features
3030
31- ✅ Style vue component or styled component
31+ ✅ ** Component Styling ** - Style Vue components, styled components, and HTML elements
3232
33- ✅ Set default attrs
33+ ✅ ** Props & Attrs ** - Pass props, set default attributes, and override attrs dynamically
3434
35- ✅ Passed props
35+ ✅ ** Theming System ** - Built-in theme provider with nested theme support
3636
37- ✅ Support theming
37+ ✅ ** Performance Optimized ** - Smart caching, batch updates, and async processing
3838
39- ✅ Generate keyframes
39+ ✅ ** CSS Features ** - Keyframes, global styles, CSS mixins, and nesting support
4040
41- ✅ Generate css mixin
41+ ✅ ** Tailwind Integration ** - Seamless Tailwind CSS class integration
4242
43- ✅ Create global style
43+ ✅ ** Plugin System ** - Extensible plugin architecture with hooks
4444
45- ✅ Add or override attrs
45+ ✅ ** Developer Experience ** - TypeScript support, performance monitoring, and auto-prefixing
4646
47- ✅ Support nesting css.
48-
49- ✅ Auto-prefix css.
50-
51- ...
47+ ✅ ** Production Ready** - Optimized for performance with configurable caching and batching
5248
5349## 📖Documentation
5450
5551For detailed introduction and usage instructions, please refer to [ the documentation website] ( https://vue-styled-components.com )
5652
57- ## 🚀Getting Start
53+ ## 🚀Quick Start
5854
59- ### 📦Install
55+ ### 📦Installation
6056
6157``` sh
6258npm i @vue-styled-components/core
@@ -70,109 +66,19 @@ yarn add @vue-styled-components/core
7066pnpm i @vue-styled-components/core
7167```
7268
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
10670
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:
12872
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 ) 👈**
17474
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
17682
17783## 🧑🤝🧑Contributors
17884
0 commit comments