From be13e705a595c6cf4d7a1a86eb3c7cfa76983420 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 1 Apr 2024 00:44:59 +0300 Subject: [PATCH] Add more info to scoped css and colors docs --- doc/colors/OverviewDoc.vue | 82 ----------------------------- doc/colors/PaletteDoc.vue | 25 --------- doc/colors/SurfacesDoc.vue | 63 ---------------------- doc/theming/styled/ColorsDoc.vue | 13 ++++- doc/theming/styled/ScopedCSSDoc.vue | 23 +++++++- pages/colors/index.vue | 49 ----------------- 6 files changed, 34 insertions(+), 221 deletions(-) delete mode 100644 doc/colors/OverviewDoc.vue delete mode 100644 doc/colors/PaletteDoc.vue delete mode 100644 doc/colors/SurfacesDoc.vue delete mode 100644 pages/colors/index.vue diff --git a/doc/colors/OverviewDoc.vue b/doc/colors/OverviewDoc.vue deleted file mode 100644 index ee5870bda..000000000 --- a/doc/colors/OverviewDoc.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - diff --git a/doc/colors/PaletteDoc.vue b/doc/colors/PaletteDoc.vue deleted file mode 100644 index cbc0ba8cf..000000000 --- a/doc/colors/PaletteDoc.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/doc/colors/SurfacesDoc.vue b/doc/colors/SurfacesDoc.vue deleted file mode 100644 index abc01170f..000000000 --- a/doc/colors/SurfacesDoc.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/doc/theming/styled/ColorsDoc.vue b/doc/theming/styled/ColorsDoc.vue index 33c727bf7..f13860983 100644 --- a/doc/theming/styled/ColorsDoc.vue +++ b/doc/theming/styled/ColorsDoc.vue @@ -4,6 +4,8 @@ Color palette of a preset is defined by the primitive design token group. The default colors are derived from the Tailwind colors with some extensions to make it consistent with the Tailwind Presets projects of the unstyled mode.

+

Colors can be accessed at CSS as a variable and programmatically using the $dt utility.

+
  • @@ -24,7 +26,16 @@ export default { data() { return { shades: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], - colors: ['emerald', 'green', 'lime', 'red', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose', 'slate', 'gray', 'zinc', 'neutral', 'stone'] + colors: ['emerald', 'green', 'lime', 'red', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose', 'slate', 'gray', 'zinc', 'neutral', 'stone'], + code1: { + basic: ` +// With CSS +var(--p-blue-500) + +// With JS +$dt('blue.500', 'value') +` + } }; } }; diff --git a/doc/theming/styled/ScopedCSSDoc.vue b/doc/theming/styled/ScopedCSSDoc.vue index 9e8c732a9..eb6fb098d 100644 --- a/doc/theming/styled/ScopedCSSDoc.vue +++ b/doc/theming/styled/ScopedCSSDoc.vue @@ -1,6 +1,6 @@