Refactor
parent
63b5b8be8e
commit
5774c84a3a
19
README.md
19
README.md
|
@ -33,17 +33,15 @@ const app = createApp(App);
|
|||
app.use(PrimeVue);
|
||||
```
|
||||
|
||||
## Styles
|
||||
|
||||
Theme, core and icons are the necessary css files of the components, visit the [Themes](https://primevue.org/theming) section for the complete list of available themes to choose from.
|
||||
## Theming
|
||||
PrimeVue has two theming has modes; styled or unstyled.
|
||||
|
||||
### Styled Mode
|
||||
Styled mode is based on pre-skinned components with opinionated themes like Material, Bootstrap or PrimeOne themes. Theme is the required css file to be imported, visit the [Themes](https://primevue.org/theming) section for the complete list of available themes to choose from.
|
||||
|
||||
```javascript
|
||||
// theme
|
||||
import 'primevue/resources/themes/lara-light-blue/theme.css';
|
||||
|
||||
// core
|
||||
import 'primevue/resources/primevue.min.css';
|
||||
```
|
||||
|
||||
Each PrimeVue theme has its own font family so it is suggested to apply it to your application for a unified look.
|
||||
|
@ -54,7 +52,16 @@ body {
|
|||
}
|
||||
```
|
||||
|
||||
### Unstyled Mode
|
||||
Unstyled mode is disabled by default for all components. Using the PrimeVue plugin during installation, set `unstyled` as true to enable it globally. Visit the [Unstyled mode](https://primevue.org/unstyled) documentation for more information and examples.
|
||||
|
||||
```javascript
|
||||
import { createApp } from "vue";
|
||||
import PrimeVue from "primevue/config";
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(PrimeVue, { unstyled: true });
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ export default defineConfig({
|
|||
[`${path}main.js`]: {
|
||||
content: `import "primeflex/primeflex.css";
|
||||
import "primevue/resources/themes/lara-light-blue/theme.css";
|
||||
import "primevue/resources/primevue.min.css";
|
||||
import "primevue/resources/primevue.min.css"; /* Deprecated */
|
||||
import "primeicons/primeicons.css";
|
||||
import "./index.css";
|
||||
import "./flags.css";
|
||||
|
|
Loading…
Reference in New Issue