From c3b6af01408ade3d9ea98e7b0a3b09e361795210 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sat, 5 Oct 2024 11:43:14 +0300 Subject: [PATCH] New docs for the styled mode --- .../doc/theming/styled/ArchitectureDoc.vue | 6 +- .../showcase/doc/theming/styled/ColorsDoc.vue | 5 +- .../doc/theming/styled/PresetsDoc.vue | 403 +++++++++++++++++- .../doc/theming/styled/ReservedKeysDoc.vue | 2 +- .../styled/configuration/OptionsDoc.vue | 4 +- .../styled/customization/ExtendDoc.vue | 49 +++ apps/showcase/pages/theming/styled/index.vue | 26 +- 7 files changed, 472 insertions(+), 23 deletions(-) create mode 100644 apps/showcase/doc/theming/styled/customization/ExtendDoc.vue diff --git a/apps/showcase/doc/theming/styled/ArchitectureDoc.vue b/apps/showcase/doc/theming/styled/ArchitectureDoc.vue index 268eb759b..c70ef19c3 100644 --- a/apps/showcase/doc/theming/styled/ArchitectureDoc.vue +++ b/apps/showcase/doc/theming/styled/ArchitectureDoc.vue @@ -3,7 +3,7 @@

PrimeVue is a design agnostic library so unlike some other UI libraries it does not enforce a certain styling such as material design. Styling is decoupled from the components using the themes instead. A theme consists of two parts; base and preset. The base is the style rules with CSS variables as placeholders whereas the preset is a set of design tokens to feed a base by mapping the tokens to CSS variables. A base may be configured with different - presets, currently Aura, Lara and Nora are the available presets and in upcoming version more presets will be available such as Material Design. + presets, currently Aura, Material, Lara and Nora are the available built-in options.

Architecture

The core of the styled mode architecture is based on a concept named design token, a preset defines the token configuration in 3 tiers; primitive, semantic and component.

@@ -33,9 +33,9 @@

Video Tutorial

-

Watch the PrimeVue Theming Demystified video to learn more about the architecture with examples.

+

Watch the PrimeVue Theming Demystified series to learn more about the architecture with examples.

- +
diff --git a/apps/showcase/doc/theming/styled/ColorsDoc.vue b/apps/showcase/doc/theming/styled/ColorsDoc.vue index efe863f0e..fb1e4bf61 100644 --- a/apps/showcase/doc/theming/styled/ColorsDoc.vue +++ b/apps/showcase/doc/theming/styled/ColorsDoc.vue @@ -1,9 +1,6 @@