From d80a18c0527baf459bc472b0c90f5fd397d05d1a Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sat, 30 Mar 2024 15:19:34 +0300 Subject: [PATCH] Initiated docs and default preset update --- assets/menu/menu.json | 54 ++--------- .../lib/themes/primeone/presets/aura/index.js | 48 +++++----- doc/theming/ArchitectureDoc.vue | 10 -- doc/theming/BuiltInThemesDoc.vue | 66 -------------- doc/theming/CSSVariablesDoc.vue | 5 - doc/theming/CustomThemeDoc.vue | 58 ------------ doc/theming/PrimeFlexDoc.vue | 35 ------- doc/theming/SwitchThemesDoc.vue | 73 --------------- doc/theming/UtilsDoc.vue | 49 ---------- doc/theming/styled/ArchitectureDoc.vue | 35 +++++++ doc/theming/styled/CSSLayerDoc.vue | 22 +++++ doc/theming/{ => styled}/CSSModulesDoc.vue | 0 doc/theming/styled/DarkModeToggleDoc.vue | 22 +++++ doc/theming/{ => styled}/ScaleDoc.vue | 0 doc/theming/{ => styled}/ScopedCSSDoc.vue | 0 .../styled/configuration/OptionsDoc.vue | 17 ++++ doc/theming/styled/configuration/ThemeDoc.vue | 38 ++++++++ .../unstyled/ArchitectureDoc.vue | 0 doc/{ => theming}/unstyled/ExampleDoc.vue | 0 doc/{ => theming}/unstyled/SetupDoc.vue | 0 doc/{ => theming}/unstyled/ThemeDoc.vue | 0 layouts/AppConfigurator.vue | 2 +- pages/theming/index.vue | 91 ------------------- pages/theming/styled/index.vue | 85 +++++++++++++++++ pages/{ => theming}/unstyled/index.vue | 8 +- themes/aura.js | 51 ++++++++++- 26 files changed, 307 insertions(+), 462 deletions(-) delete mode 100644 doc/theming/ArchitectureDoc.vue delete mode 100644 doc/theming/BuiltInThemesDoc.vue delete mode 100644 doc/theming/CSSVariablesDoc.vue delete mode 100644 doc/theming/CustomThemeDoc.vue delete mode 100644 doc/theming/PrimeFlexDoc.vue delete mode 100644 doc/theming/SwitchThemesDoc.vue delete mode 100644 doc/theming/UtilsDoc.vue create mode 100644 doc/theming/styled/ArchitectureDoc.vue create mode 100644 doc/theming/styled/CSSLayerDoc.vue rename doc/theming/{ => styled}/CSSModulesDoc.vue (100%) create mode 100644 doc/theming/styled/DarkModeToggleDoc.vue rename doc/theming/{ => styled}/ScaleDoc.vue (100%) rename doc/theming/{ => styled}/ScopedCSSDoc.vue (100%) create mode 100644 doc/theming/styled/configuration/OptionsDoc.vue create mode 100644 doc/theming/styled/configuration/ThemeDoc.vue rename doc/{ => theming}/unstyled/ArchitectureDoc.vue (100%) rename doc/{ => theming}/unstyled/ExampleDoc.vue (100%) rename doc/{ => theming}/unstyled/SetupDoc.vue (100%) rename doc/{ => theming}/unstyled/ThemeDoc.vue (100%) delete mode 100755 pages/theming/index.vue create mode 100755 pages/theming/styled/index.vue rename pages/{ => theming}/unstyled/index.vue (83%) diff --git a/assets/menu/menu.json b/assets/menu/menu.json index b2ce0f19b..360dc56cc 100644 --- a/assets/menu/menu.json +++ b/assets/menu/menu.json @@ -95,13 +95,11 @@ }, { "name": "FloatLabel", - "to": "/floatlabel", - "badge": "NEW" + "to": "/floatlabel" }, { "name": "IconField", - "to": "/iconfield", - "badge": "NEW" + "to": "/iconfield" }, { "name": "InputGroup", @@ -117,8 +115,7 @@ }, { "name": "InputOtp", - "to": "/inputotp", - "badge": "NEW" + "to": "/inputotp" }, { "name": "InputSwitch", @@ -273,8 +270,7 @@ }, { "name": "Stepper", - "to": "/stepper", - "badge": "NEW" + "to": "/stepper" }, { "name": "TabView", @@ -445,8 +441,7 @@ }, { "name": "MeterGroup", - "to": "/metergroup", - "badge": "NEW" + "to": "/metergroup" }, { "name": "ScrollTop", @@ -494,41 +489,11 @@ "children": [ { "name": "Styled Mode", - "children": [ - { - "name": "Overview", - "to": "/theming" - }, - { - "name": "Colors", - "to": "/colors" - }, - { - "name": "SASS API", - "href": "https://www.primefaces.org/designer/api/primevue/3.9.0" - } - ] + "to": "/theming/styled" }, { "name": "Unstyled Mode", - "children": [ - { - "name": "Overview", - "to": "/unstyled" - }, - { - "name": "Bootstrap", - "to": "/bootstrap" - }, - { - "name": "Bulma", - "to": "/bulma" - }, - { - "name": "UnoCSS", - "to": "/unocss" - } - ] + "to": "/theming/unstyled" } ] }, @@ -538,10 +503,9 @@ "to": "/passthrough" }, { - "name": "Tailwind", + "name": "Tailwind Presets", "icon": "pi pi-heart", - "href": "https://tailwind.primevue.org/", - "badge": "NEW" + "href": "https://tailwind.primevue.org/" }, { "name": "Figma UI Kit", diff --git a/components/lib/themes/primeone/presets/aura/index.js b/components/lib/themes/primeone/presets/aura/index.js index 3cc8664bc..26c54c86a 100644 --- a/components/lib/themes/primeone/presets/aura/index.js +++ b/components/lib/themes/primeone/presets/aura/index.js @@ -125,17 +125,17 @@ export default { }, anchorGutter: '2px', primary: { - 50: '{zinc.50}', - 100: '{zinc.100}', - 200: '{zinc.200}', - 300: '{zinc.300}', - 400: '{zinc.400}', - 500: '{zinc.500}', - 600: '{zinc.600}', - 700: '{zinc.700}', - 800: '{zinc.800}', - 900: '{zinc.900}', - 950: '{zinc.950}' + 50: '{emerald.50}', + 100: '{emerald.100}', + 200: '{emerald.200}', + 300: '{emerald.300}', + 400: '{emerald.400}', + 500: '{emerald.500}', + 600: '{emerald.600}', + 700: '{emerald.700}', + 800: '{emerald.800}', + 900: '{emerald.900}', + 950: '{emerald.950}' }, colorScheme: { light: { @@ -154,16 +154,16 @@ export default { 950: '{slate.950}' }, primary: { - color: '#09090b', + color: '{primary.500}', inverseColor: '#ffffff', - hoverColor: '#18181b', - activeColor: '#27272a' + hoverColor: '{primary.600}', + activeColor: '{primary.700}' }, highlight: { - background: '#09090b', - focusBackground: '#3f3f46', - color: '#ffffff', - focusColor: '#ffffff' + background: '{primary.50}', + focusBackground: '{primary.100}', + color: '{primary.700}', + focusColor: '{primary.800}' }, maskBackground: 'rgba(0,0,0,0.4)', formField: { @@ -200,14 +200,14 @@ export default { 950: '{zinc.950}' }, primary: { - color: '#fafafa', - inverseColor: '#09090b', - hoverColor: '#f4f4f5', - activeColor: '#e4e4e7' + color: '{primary.400}', + inverseColor: '{surface.900}', + hoverColor: '{primary.300}', + activeColor: '{primary.200}' }, highlight: { - background: 'rgba(250, 250, 250, .16)', - focusBackground: 'rgba(250, 250, 250, .24)', + background: 'color-mix(in srgb, {primary.400}, transparent 84%)', + focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)', color: 'rgba(255,255,255,.87)', focusColor: 'rgba(255,255,255,.87)' }, diff --git a/doc/theming/ArchitectureDoc.vue b/doc/theming/ArchitectureDoc.vue deleted file mode 100644 index 08b3ff4d7..000000000 --- a/doc/theming/ArchitectureDoc.vue +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/doc/theming/BuiltInThemesDoc.vue b/doc/theming/BuiltInThemesDoc.vue deleted file mode 100644 index 2a41ed30e..000000000 --- a/doc/theming/BuiltInThemesDoc.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/doc/theming/CSSVariablesDoc.vue b/doc/theming/CSSVariablesDoc.vue deleted file mode 100644 index 88625b93e..000000000 --- a/doc/theming/CSSVariablesDoc.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/doc/theming/CustomThemeDoc.vue b/doc/theming/CustomThemeDoc.vue deleted file mode 100644 index 1661235a8..000000000 --- a/doc/theming/CustomThemeDoc.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/doc/theming/PrimeFlexDoc.vue b/doc/theming/PrimeFlexDoc.vue deleted file mode 100644 index ce2fd35a8..000000000 --- a/doc/theming/PrimeFlexDoc.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/doc/theming/SwitchThemesDoc.vue b/doc/theming/SwitchThemesDoc.vue deleted file mode 100644 index 5c868020b..000000000 --- a/doc/theming/SwitchThemesDoc.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/doc/theming/UtilsDoc.vue b/doc/theming/UtilsDoc.vue deleted file mode 100644 index 4f0c64ad6..000000000 --- a/doc/theming/UtilsDoc.vue +++ /dev/null @@ -1,49 +0,0 @@ - diff --git a/doc/theming/styled/ArchitectureDoc.vue b/doc/theming/styled/ArchitectureDoc.vue new file mode 100644 index 000000000..9a70dc14b --- /dev/null +++ b/doc/theming/styled/ArchitectureDoc.vue @@ -0,0 +1,35 @@ + diff --git a/doc/theming/styled/CSSLayerDoc.vue b/doc/theming/styled/CSSLayerDoc.vue new file mode 100644 index 000000000..a4c9e2788 --- /dev/null +++ b/doc/theming/styled/CSSLayerDoc.vue @@ -0,0 +1,22 @@ + + + diff --git a/doc/theming/CSSModulesDoc.vue b/doc/theming/styled/CSSModulesDoc.vue similarity index 100% rename from doc/theming/CSSModulesDoc.vue rename to doc/theming/styled/CSSModulesDoc.vue diff --git a/doc/theming/styled/DarkModeToggleDoc.vue b/doc/theming/styled/DarkModeToggleDoc.vue new file mode 100644 index 000000000..a4c9e2788 --- /dev/null +++ b/doc/theming/styled/DarkModeToggleDoc.vue @@ -0,0 +1,22 @@ + + + diff --git a/doc/theming/ScaleDoc.vue b/doc/theming/styled/ScaleDoc.vue similarity index 100% rename from doc/theming/ScaleDoc.vue rename to doc/theming/styled/ScaleDoc.vue diff --git a/doc/theming/ScopedCSSDoc.vue b/doc/theming/styled/ScopedCSSDoc.vue similarity index 100% rename from doc/theming/ScopedCSSDoc.vue rename to doc/theming/styled/ScopedCSSDoc.vue diff --git a/doc/theming/styled/configuration/OptionsDoc.vue b/doc/theming/styled/configuration/OptionsDoc.vue new file mode 100644 index 000000000..b2f29f46e --- /dev/null +++ b/doc/theming/styled/configuration/OptionsDoc.vue @@ -0,0 +1,17 @@ + diff --git a/doc/theming/styled/configuration/ThemeDoc.vue b/doc/theming/styled/configuration/ThemeDoc.vue new file mode 100644 index 000000000..0b485674f --- /dev/null +++ b/doc/theming/styled/configuration/ThemeDoc.vue @@ -0,0 +1,38 @@ + + + diff --git a/doc/unstyled/ArchitectureDoc.vue b/doc/theming/unstyled/ArchitectureDoc.vue similarity index 100% rename from doc/unstyled/ArchitectureDoc.vue rename to doc/theming/unstyled/ArchitectureDoc.vue diff --git a/doc/unstyled/ExampleDoc.vue b/doc/theming/unstyled/ExampleDoc.vue similarity index 100% rename from doc/unstyled/ExampleDoc.vue rename to doc/theming/unstyled/ExampleDoc.vue diff --git a/doc/unstyled/SetupDoc.vue b/doc/theming/unstyled/SetupDoc.vue similarity index 100% rename from doc/unstyled/SetupDoc.vue rename to doc/theming/unstyled/SetupDoc.vue diff --git a/doc/unstyled/ThemeDoc.vue b/doc/theming/unstyled/ThemeDoc.vue similarity index 100% rename from doc/unstyled/ThemeDoc.vue rename to doc/theming/unstyled/ThemeDoc.vue diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index 2a0d17068..645908cbf 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -44,7 +44,7 @@ import { updatePreset, updateSurface } from 'primevue/themes'; export default { data() { return { - selectedPrimaryColor: 'noir', + selectedPrimaryColor: 'emerald', selectedSurfaceColor: null, primaryColors: [ { name: 'noir', palette: { 50: '#fafafa', 100: '#f4f4f5', 200: '#e4e4e7', 300: '#d4d4d8', 400: '#a1a1aa', 500: '#71717a', 600: '#52525b', 700: '#3f3f46', 800: '#27272a', 900: '#18181b', 950: '#09090b' } }, diff --git a/pages/theming/index.vue b/pages/theming/index.vue deleted file mode 100755 index 0c03d8c0b..000000000 --- a/pages/theming/index.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/pages/theming/styled/index.vue b/pages/theming/styled/index.vue new file mode 100755 index 000000000..89fac5591 --- /dev/null +++ b/pages/theming/styled/index.vue @@ -0,0 +1,85 @@ + + + diff --git a/pages/unstyled/index.vue b/pages/theming/unstyled/index.vue similarity index 83% rename from pages/unstyled/index.vue rename to pages/theming/unstyled/index.vue index 36bdc339f..06964b549 100644 --- a/pages/unstyled/index.vue +++ b/pages/theming/unstyled/index.vue @@ -19,10 +19,10 @@