From 90262941451a015ab261e6e2d7976c24754e18e5 Mon Sep 17 00:00:00 2001 From: endigo9740 Date: Thu, 22 Sep 2022 17:03:03 -0500 Subject: [PATCH 01/11] Create generator page, update docs, build new generator --- src/docs/DocsThemer/DocsThemer.svelte | 143 +++++ src/docs/DocsThemer/DocsThemerHex.svelte | 151 ----- src/docs/DocsThemer/DocsThemerTailwind.svelte | 111 ---- src/docs/DocsThemer/Swatches.svelte | 13 +- src/docs/DocsThemer/colors.ts | 555 ++++++++++-------- src/docs/DocsThemer/helpers.ts | 54 ++ src/lib/utilities/CodeBlock/CodeBlock.svelte | 2 +- src/routes/(inner)/guides/themes/+page.svelte | 174 ++---- .../guides/themes/generator/+page.svelte | 57 ++ 9 files changed, 636 insertions(+), 624 deletions(-) create mode 100644 src/docs/DocsThemer/DocsThemer.svelte delete mode 100644 src/docs/DocsThemer/DocsThemerHex.svelte delete mode 100644 src/docs/DocsThemer/DocsThemerTailwind.svelte create mode 100644 src/docs/DocsThemer/helpers.ts create mode 100644 src/routes/(inner)/guides/themes/generator/+page.svelte diff --git a/src/docs/DocsThemer/DocsThemer.svelte b/src/docs/DocsThemer/DocsThemer.svelte new file mode 100644 index 0000000000..5854ce725d --- /dev/null +++ b/src/docs/DocsThemer/DocsThemer.svelte @@ -0,0 +1,143 @@ + + +
+
+ + Tailwind + Custom + + {#if $storeMode} + Reference + {:else} + Get Inspired + {/if} +
+ + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+

Each color you {$storeMode ? 'select' : 'input'} represents swatch 500 (ex: bg-primary-500).

+
+ + + +
diff --git a/src/docs/DocsThemer/DocsThemerHex.svelte b/src/docs/DocsThemer/DocsThemerHex.svelte deleted file mode 100644 index b2d9d4fb60..0000000000 --- a/src/docs/DocsThemer/DocsThemerHex.svelte +++ /dev/null @@ -1,151 +0,0 @@ - - -
- -
- - - - - - - - - - - -
- - -
- -
-
diff --git a/src/docs/DocsThemer/DocsThemerTailwind.svelte b/src/docs/DocsThemer/DocsThemerTailwind.svelte deleted file mode 100644 index 865f562e6d..0000000000 --- a/src/docs/DocsThemer/DocsThemerTailwind.svelte +++ /dev/null @@ -1,111 +0,0 @@ - - -
- -
- - - - - - - - - - - -
- - -
- -
-
diff --git a/src/docs/DocsThemer/Swatches.svelte b/src/docs/DocsThemer/Swatches.svelte index 8527ddf018..ce928ab117 100644 --- a/src/docs/DocsThemer/Swatches.svelte +++ b/src/docs/DocsThemer/Swatches.svelte @@ -1,15 +1,18 @@ -
- {#each objValuesToArry(palette) as shade, i} -
-
{labels[i]}
+
+ {#each objectValues(palette) as shade, i} +
+ +
{labels[i]}
+ +
{/each}
diff --git a/src/docs/DocsThemer/colors.ts b/src/docs/DocsThemer/colors.ts index f146b59cc6..0e2d886152 100644 --- a/src/docs/DocsThemer/colors.ts +++ b/src/docs/DocsThemer/colors.ts @@ -1,267 +1,334 @@ // https://tailwindcss.com/docs/customizing-colors#default-color-palette -export const tailwindColors = { - slate: { - '50': { hex: '#f8fafc', rgb: '248 250 252' }, - '100': { hex: '#f1f5f9', rgb: '241 245 249' }, - '200': { hex: '#e2e8f0', rgb: '226 232 240' }, - '300': { hex: '#cbd5e1', rgb: '203 213 225' }, - '400': { hex: '#94a3b8', rgb: '148 163 184' }, - '500': { hex: '#64748b', rgb: '100 116 139' }, - '600': { hex: '#475569', rgb: '71 85 105' }, - '700': { hex: '#334155', rgb: '51 65 85' }, - '800': { hex: '#1e293b', rgb: '30 41 59' }, - '900': { hex: '#0f172a', rgb: '15 23 42' } + +export const colorsTailwind: any[] = [ + { + label: 'slate', + shades: { + '50': { hex: '#f8fafc', rgb: '248 250 252' }, + '100': { hex: '#f1f5f9', rgb: '241 245 249' }, + '200': { hex: '#e2e8f0', rgb: '226 232 240' }, + '300': { hex: '#cbd5e1', rgb: '203 213 225' }, + '400': { hex: '#94a3b8', rgb: '148 163 184' }, + '500': { hex: '#64748b', rgb: '100 116 139' }, + '600': { hex: '#475569', rgb: '71 85 105' }, + '700': { hex: '#334155', rgb: '51 65 85' }, + '800': { hex: '#1e293b', rgb: '30 41 59' }, + '900': { hex: '#0f172a', rgb: '15 23 42' } + } }, - gray: { - '50': { hex: '#f9fafb', rgb: '249 250 251' }, - '100': { hex: '#f3f4f6', rgb: '243 244 246' }, - '200': { hex: '#e5e7eb', rgb: '229 231 235' }, - '300': { hex: '#d1d5db', rgb: '209 213 219' }, - '400': { hex: '#9ca3af', rgb: '156 163 175' }, - '500': { hex: '#6b7280', rgb: '107 114 128' }, - '600': { hex: '#4b5563', rgb: '75 85 99' }, - '700': { hex: '#374151', rgb: '55 65 81' }, - '800': { hex: '#1f2937', rgb: '31 41 55' }, - '900': { hex: '#111827', rgb: '17 24 39' } + { + label: 'gray', + shades: { + '50': { hex: '#f9fafb', rgb: '249 250 251' }, + '100': { hex: '#f3f4f6', rgb: '243 244 246' }, + '200': { hex: '#e5e7eb', rgb: '229 231 235' }, + '300': { hex: '#d1d5db', rgb: '209 213 219' }, + '400': { hex: '#9ca3af', rgb: '156 163 175' }, + '500': { hex: '#6b7280', rgb: '107 114 128' }, + '600': { hex: '#4b5563', rgb: '75 85 99' }, + '700': { hex: '#374151', rgb: '55 65 81' }, + '800': { hex: '#1f2937', rgb: '31 41 55' }, + '900': { hex: '#111827', rgb: '17 24 39' } + } }, - zinc: { - '50': { hex: '#fafafa', rgb: '250 250 250' }, - '100': { hex: '#f4f4f5', rgb: '244 244 245' }, - '200': { hex: '#e4e4e7', rgb: '228 228 231' }, - '300': { hex: '#d4d4d8', rgb: '212 212 216' }, - '400': { hex: '#a1a1aa', rgb: '161 161 170' }, - '500': { hex: '#71717a', rgb: '113 113 122' }, - '600': { hex: '#52525b', rgb: '82 82 91' }, - '700': { hex: '#3f3f46', rgb: '63 63 70' }, - '800': { hex: '#27272a', rgb: '39 39 42' }, - '900': { hex: '#18181b', rgb: '24 24 27' } + { + label: 'zinc', + shades: { + '50': { hex: '#fafafa', rgb: '250 250 250' }, + '100': { hex: '#f4f4f5', rgb: '244 244 245' }, + '200': { hex: '#e4e4e7', rgb: '228 228 231' }, + '300': { hex: '#d4d4d8', rgb: '212 212 216' }, + '400': { hex: '#a1a1aa', rgb: '161 161 170' }, + '500': { hex: '#71717a', rgb: '113 113 122' }, + '600': { hex: '#52525b', rgb: '82 82 91' }, + '700': { hex: '#3f3f46', rgb: '63 63 70' }, + '800': { hex: '#27272a', rgb: '39 39 42' }, + '900': { hex: '#18181b', rgb: '24 24 27' } + } }, - neutral: { - '50': { hex: '#fafafa', rgb: '250 250 250' }, - '100': { hex: '#f5f5f5', rgb: '245 245 245' }, - '200': { hex: '#e5e5e5', rgb: '229 229 229' }, - '300': { hex: '#d4d4d4', rgb: '212 212 212' }, - '400': { hex: '#a3a3a3', rgb: '163 163 163' }, - '500': { hex: '#737373', rgb: '115 115 115' }, - '600': { hex: '#525252', rgb: '82 82 82' }, - '700': { hex: '#404040', rgb: '64 64 64' }, - '800': { hex: '#262626', rgb: '38 38 38' }, - '900': { hex: '#171717', rgb: '23 23 23' } + { + label: 'neutral', + shades: { + '50': { hex: '#fafafa', rgb: '250 250 250' }, + '100': { hex: '#f5f5f5', rgb: '245 245 245' }, + '200': { hex: '#e5e5e5', rgb: '229 229 229' }, + '300': { hex: '#d4d4d4', rgb: '212 212 212' }, + '400': { hex: '#a3a3a3', rgb: '163 163 163' }, + '500': { hex: '#737373', rgb: '115 115 115' }, + '600': { hex: '#525252', rgb: '82 82 82' }, + '700': { hex: '#404040', rgb: '64 64 64' }, + '800': { hex: '#262626', rgb: '38 38 38' }, + '900': { hex: '#171717', rgb: '23 23 23' } + } }, - stone: { - '50': { hex: '#fafaf9', rgb: '250 250 249' }, - '100': { hex: '#f5f5f4', rgb: '245 245 244' }, - '200': { hex: '#e7e5e4', rgb: '231 229 228' }, - '300': { hex: '#d6d3d1', rgb: '214 211 209' }, - '400': { hex: '#a8a29e', rgb: '168 162 158' }, - '500': { hex: '#78716c', rgb: '120 113 108' }, - '600': { hex: '#57534e', rgb: '87 83 78' }, - '700': { hex: '#44403c', rgb: '68 64 60' }, - '800': { hex: '#292524', rgb: '41 37 36' }, - '900': { hex: '#1c1917', rgb: '28 25 23' } + { + label: 'stone', + shades: { + '50': { hex: '#fafaf9', rgb: '250 250 249' }, + '100': { hex: '#f5f5f4', rgb: '245 245 244' }, + '200': { hex: '#e7e5e4', rgb: '231 229 228' }, + '300': { hex: '#d6d3d1', rgb: '214 211 209' }, + '400': { hex: '#a8a29e', rgb: '168 162 158' }, + '500': { hex: '#78716c', rgb: '120 113 108' }, + '600': { hex: '#57534e', rgb: '87 83 78' }, + '700': { hex: '#44403c', rgb: '68 64 60' }, + '800': { hex: '#292524', rgb: '41 37 36' }, + '900': { hex: '#1c1917', rgb: '28 25 23' } + } }, - red: { - '50': { hex: '#fef2f2', rgb: '254 242 242' }, - '100': { hex: '#fee2e2', rgb: '254 226 226' }, - '200': { hex: '#fecaca', rgb: '254 202 202' }, - '300': { hex: '#fca5a5', rgb: '252 165 165' }, - '400': { hex: '#f87171', rgb: '248 113 113' }, - '500': { hex: '#ef4444', rgb: '239 68 68' }, - '600': { hex: '#dc2626', rgb: '220 38 38' }, - '700': { hex: '#b91c1c', rgb: '185 28 28' }, - '800': { hex: '#991b1b', rgb: '153 27 27' }, - '900': { hex: '#7f1d1d', rgb: '127 29 29' } + { + label: 'red', + shades: { + '50': { hex: '#fef2f2', rgb: '254 242 242' }, + '100': { hex: '#fee2e2', rgb: '254 226 226' }, + '200': { hex: '#fecaca', rgb: '254 202 202' }, + '300': { hex: '#fca5a5', rgb: '252 165 165' }, + '400': { hex: '#f87171', rgb: '248 113 113' }, + '500': { hex: '#ef4444', rgb: '239 68 68' }, + '600': { hex: '#dc2626', rgb: '220 38 38' }, + '700': { hex: '#b91c1c', rgb: '185 28 28' }, + '800': { hex: '#991b1b', rgb: '153 27 27' }, + '900': { hex: '#7f1d1d', rgb: '127 29 29' } + } }, - orange: { - '50': { hex: '#fff7ed', rgb: '255 247 237' }, - '100': { hex: '#ffedd5', rgb: '255 237 213' }, - '200': { hex: '#fed7aa', rgb: '254 215 170' }, - '300': { hex: '#fdba74', rgb: '253 186 116' }, - '400': { hex: '#fb923c', rgb: '251 146 60' }, - '500': { hex: '#f97316', rgb: '249 115 22' }, - '600': { hex: '#ea580c', rgb: '234 88 12' }, - '700': { hex: '#c2410c', rgb: '194 65 12' }, - '800': { hex: '#9a3412', rgb: '154 52 18' }, - '900': { hex: '#7c2d12', rgb: '124 45 18' } + { + label: 'orange', + shades: { + '50': { hex: '#fff7ed', rgb: '255 247 237' }, + '100': { hex: '#ffedd5', rgb: '255 237 213' }, + '200': { hex: '#fed7aa', rgb: '254 215 170' }, + '300': { hex: '#fdba74', rgb: '253 186 116' }, + '400': { hex: '#fb923c', rgb: '251 146 60' }, + '500': { hex: '#f97316', rgb: '249 115 22' }, + '600': { hex: '#ea580c', rgb: '234 88 12' }, + '700': { hex: '#c2410c', rgb: '194 65 12' }, + '800': { hex: '#9a3412', rgb: '154 52 18' }, + '900': { hex: '#7c2d12', rgb: '124 45 18' } + } }, - amber: { - '50': { hex: '#fffbeb', rgb: '255 251 235' }, - '100': { hex: '#fef3c7', rgb: '254 243 199' }, - '200': { hex: '#fde68a', rgb: '253 230 138' }, - '300': { hex: '#fcd34d', rgb: '252 211 77' }, - '400': { hex: '#fbbf24', rgb: '251 191 36' }, - '500': { hex: '#f59e0b', rgb: '245 158 11' }, - '600': { hex: '#d97706', rgb: '217 119 6' }, - '700': { hex: '#b45309', rgb: '180 83 9' }, - '800': { hex: '#92400e', rgb: '146 64 14' }, - '900': { hex: '#78350f', rgb: '120 53 15' } + { + label: 'amber', + shades: { + '50': { hex: '#fffbeb', rgb: '255 251 235' }, + '100': { hex: '#fef3c7', rgb: '254 243 199' }, + '200': { hex: '#fde68a', rgb: '253 230 138' }, + '300': { hex: '#fcd34d', rgb: '252 211 77' }, + '400': { hex: '#fbbf24', rgb: '251 191 36' }, + '500': { hex: '#f59e0b', rgb: '245 158 11' }, + '600': { hex: '#d97706', rgb: '217 119 6' }, + '700': { hex: '#b45309', rgb: '180 83 9' }, + '800': { hex: '#92400e', rgb: '146 64 14' }, + '900': { hex: '#78350f', rgb: '120 53 15' } + } }, - yellow: { - '50': { hex: '#fefce8', rgb: '254 252 232' }, - '100': { hex: '#fef9c3', rgb: '254 249 195' }, - '200': { hex: '#fef08a', rgb: '254 240 138' }, - '300': { hex: '#fde047', rgb: '253 224 71' }, - '400': { hex: '#facc15', rgb: '250 204 21' }, - '500': { hex: '#eab308', rgb: '234 179 8' }, - '600': { hex: '#ca8a04', rgb: '202 138 4' }, - '700': { hex: '#a16207', rgb: '161 98 7' }, - '800': { hex: '#854d0e', rgb: '133 77 14' }, - '900': { hex: '#713f12', rgb: '113 63 18' } + { + label: 'yellow', + shades: { + '50': { hex: '#fefce8', rgb: '254 252 232' }, + '100': { hex: '#fef9c3', rgb: '254 249 195' }, + '200': { hex: '#fef08a', rgb: '254 240 138' }, + '300': { hex: '#fde047', rgb: '253 224 71' }, + '400': { hex: '#facc15', rgb: '250 204 21' }, + '500': { hex: '#eab308', rgb: '234 179 8' }, + '600': { hex: '#ca8a04', rgb: '202 138 4' }, + '700': { hex: '#a16207', rgb: '161 98 7' }, + '800': { hex: '#854d0e', rgb: '133 77 14' }, + '900': { hex: '#713f12', rgb: '113 63 18' } + } }, - lime: { - '50': { hex: '#f7fee7', rgb: '247 254 231' }, - '100': { hex: '#ecfccb', rgb: '236 252 203' }, - '200': { hex: '#d9f99d', rgb: '217 249 157' }, - '300': { hex: '#bef264', rgb: '190 242 100' }, - '400': { hex: '#a3e635', rgb: '163 230 53' }, - '500': { hex: '#84cc16', rgb: '132 204 22' }, - '600': { hex: '#65a30d', rgb: '101 163 13' }, - '700': { hex: '#4d7c0f', rgb: '77 124 15' }, - '800': { hex: '#3f6212', rgb: '63 98 18' }, - '900': { hex: '#365314', rgb: '54 83 20' } + { + label: 'lime', + shades: { + '50': { hex: '#f7fee7', rgb: '247 254 231' }, + '100': { hex: '#ecfccb', rgb: '236 252 203' }, + '200': { hex: '#d9f99d', rgb: '217 249 157' }, + '300': { hex: '#bef264', rgb: '190 242 100' }, + '400': { hex: '#a3e635', rgb: '163 230 53' }, + '500': { hex: '#84cc16', rgb: '132 204 22' }, + '600': { hex: '#65a30d', rgb: '101 163 13' }, + '700': { hex: '#4d7c0f', rgb: '77 124 15' }, + '800': { hex: '#3f6212', rgb: '63 98 18' }, + '900': { hex: '#365314', rgb: '54 83 20' } + } }, - green: { - '50': { hex: '#f0fdf4', rgb: '240 253 244' }, - '100': { hex: '#dcfce7', rgb: '220 252 231' }, - '200': { hex: '#bbf7d0', rgb: '187 247 208' }, - '300': { hex: '#86efac', rgb: '134 239 172' }, - '400': { hex: '#4ade80', rgb: '74 222 128' }, - '500': { hex: '#22c55e', rgb: '34 197 94' }, - '600': { hex: '#16a34a', rgb: '22 163 74' }, - '700': { hex: '#15803d', rgb: '21 128 61' }, - '800': { hex: '#166534', rgb: '22 101 52' }, - '900': { hex: '#14532d', rgb: '20 83 45' } + { + label: 'green', + shades: { + '50': { hex: '#f0fdf4', rgb: '240 253 244' }, + '100': { hex: '#dcfce7', rgb: '220 252 231' }, + '200': { hex: '#bbf7d0', rgb: '187 247 208' }, + '300': { hex: '#86efac', rgb: '134 239 172' }, + '400': { hex: '#4ade80', rgb: '74 222 128' }, + '500': { hex: '#22c55e', rgb: '34 197 94' }, + '600': { hex: '#16a34a', rgb: '22 163 74' }, + '700': { hex: '#15803d', rgb: '21 128 61' }, + '800': { hex: '#166534', rgb: '22 101 52' }, + '900': { hex: '#14532d', rgb: '20 83 45' } + } }, - emerald: { - '50': { hex: '#ecfdf5', rgb: '236 253 245' }, - '100': { hex: '#d1fae5', rgb: '209 250 229' }, - '200': { hex: '#a7f3d0', rgb: '167 243 208' }, - '300': { hex: '#6ee7b7', rgb: '110 231 183' }, - '400': { hex: '#34d399', rgb: '52 211 153' }, - '500': { hex: '#10b981', rgb: '16 185 129' }, - '600': { hex: '#059669', rgb: '5 150 105' }, - '700': { hex: '#047857', rgb: '4 120 87' }, - '800': { hex: '#065f46', rgb: '6 95 70' }, - '900': { hex: '#064e3b', rgb: '6 78 59' } + { + label: 'emerald', + shades: { + '50': { hex: '#ecfdf5', rgb: '236 253 245' }, + '100': { hex: '#d1fae5', rgb: '209 250 229' }, + '200': { hex: '#a7f3d0', rgb: '167 243 208' }, + '300': { hex: '#6ee7b7', rgb: '110 231 183' }, + '400': { hex: '#34d399', rgb: '52 211 153' }, + '500': { hex: '#10b981', rgb: '16 185 129' }, + '600': { hex: '#059669', rgb: '5 150 105' }, + '700': { hex: '#047857', rgb: '4 120 87' }, + '800': { hex: '#065f46', rgb: '6 95 70' }, + '900': { hex: '#064e3b', rgb: '6 78 59' } + } }, - teal: { - '50': { hex: '#f0fdfa', rgb: '240 253 250' }, - '100': { hex: '#ccfbf1', rgb: '204 251 241' }, - '200': { hex: '#99f6e4', rgb: '153 246 228' }, - '300': { hex: '#5eead4', rgb: '94 234 212' }, - '400': { hex: '#2dd4bf', rgb: '45 212 191' }, - '500': { hex: '#14b8a6', rgb: '20 184 166' }, - '600': { hex: '#0d9488', rgb: '13 148 136' }, - '700': { hex: '#0f766e', rgb: '15 118 110' }, - '800': { hex: '#115e59', rgb: '17 94 89' }, - '900': { hex: '#134e4a', rgb: '19 78 74' } + { + label: 'teal', + shades: { + '50': { hex: '#f0fdfa', rgb: '240 253 250' }, + '100': { hex: '#ccfbf1', rgb: '204 251 241' }, + '200': { hex: '#99f6e4', rgb: '153 246 228' }, + '300': { hex: '#5eead4', rgb: '94 234 212' }, + '400': { hex: '#2dd4bf', rgb: '45 212 191' }, + '500': { hex: '#14b8a6', rgb: '20 184 166' }, + '600': { hex: '#0d9488', rgb: '13 148 136' }, + '700': { hex: '#0f766e', rgb: '15 118 110' }, + '800': { hex: '#115e59', rgb: '17 94 89' }, + '900': { hex: '#134e4a', rgb: '19 78 74' } + } }, - cyan: { - '50': { hex: '#ecfeff', rgb: '236 254 255' }, - '100': { hex: '#cffafe', rgb: '207 250 254' }, - '200': { hex: '#a5f3fc', rgb: '165 243 252' }, - '300': { hex: '#67e8f9', rgb: '103 232 249' }, - '400': { hex: '#22d3ee', rgb: '34 211 238' }, - '500': { hex: '#06b6d4', rgb: '6 182 212' }, - '600': { hex: '#0891b2', rgb: '8 145 178' }, - '700': { hex: '#0e7490', rgb: '14 116 144' }, - '800': { hex: '#155e75', rgb: '21 94 117' }, - '900': { hex: '#164e63', rgb: '22 78 99' } + { + label: 'cyan', + shades: { + '50': { hex: '#ecfeff', rgb: '236 254 255' }, + '100': { hex: '#cffafe', rgb: '207 250 254' }, + '200': { hex: '#a5f3fc', rgb: '165 243 252' }, + '300': { hex: '#67e8f9', rgb: '103 232 249' }, + '400': { hex: '#22d3ee', rgb: '34 211 238' }, + '500': { hex: '#06b6d4', rgb: '6 182 212' }, + '600': { hex: '#0891b2', rgb: '8 145 178' }, + '700': { hex: '#0e7490', rgb: '14 116 144' }, + '800': { hex: '#155e75', rgb: '21 94 117' }, + '900': { hex: '#164e63', rgb: '22 78 99' } + } }, - sky: { - '50': { hex: '#f0f9ff', rgb: '240 249 255' }, - '100': { hex: '#e0f2fe', rgb: '224 242 254' }, - '200': { hex: '#bae6fd', rgb: '186 230 253' }, - '300': { hex: '#7dd3fc', rgb: '125 211 252' }, - '400': { hex: '#38bdf8', rgb: '56 189 248' }, - '500': { hex: '#0ea5e9', rgb: '14 165 233' }, - '600': { hex: '#0284c7', rgb: '2 132 199' }, - '700': { hex: '#0369a1', rgb: '3 105 161' }, - '800': { hex: '#075985', rgb: '7 89 133' }, - '900': { hex: '#0c4a6e', rgb: '12 74 110' } + { + label: 'sky', + shades: { + '50': { hex: '#f0f9ff', rgb: '240 249 255' }, + '100': { hex: '#e0f2fe', rgb: '224 242 254' }, + '200': { hex: '#bae6fd', rgb: '186 230 253' }, + '300': { hex: '#7dd3fc', rgb: '125 211 252' }, + '400': { hex: '#38bdf8', rgb: '56 189 248' }, + '500': { hex: '#0ea5e9', rgb: '14 165 233' }, + '600': { hex: '#0284c7', rgb: '2 132 199' }, + '700': { hex: '#0369a1', rgb: '3 105 161' }, + '800': { hex: '#075985', rgb: '7 89 133' }, + '900': { hex: '#0c4a6e', rgb: '12 74 110' } + } }, - blue: { - '50': { hex: '#eff6ff', rgb: '239 246 255' }, - '100': { hex: '#dbeafe', rgb: '219 234 254' }, - '200': { hex: '#bfdbfe', rgb: '191 219 254' }, - '300': { hex: '#93c5fd', rgb: '147 197 253' }, - '400': { hex: '#60a5fa', rgb: '96 165 250' }, - '500': { hex: '#3b82f6', rgb: '59 130 246' }, - '600': { hex: '#2563eb', rgb: '37 99 235' }, - '700': { hex: '#1d4ed8', rgb: '29 78 216' }, - '800': { hex: '#1e40af', rgb: '30 64 175' }, - '900': { hex: '#1e3a8a', rgb: '30 58 138' } + { + label: 'blue', + shades: { + '50': { hex: '#eff6ff', rgb: '239 246 255' }, + '100': { hex: '#dbeafe', rgb: '219 234 254' }, + '200': { hex: '#bfdbfe', rgb: '191 219 254' }, + '300': { hex: '#93c5fd', rgb: '147 197 253' }, + '400': { hex: '#60a5fa', rgb: '96 165 250' }, + '500': { hex: '#3b82f6', rgb: '59 130 246' }, + '600': { hex: '#2563eb', rgb: '37 99 235' }, + '700': { hex: '#1d4ed8', rgb: '29 78 216' }, + '800': { hex: '#1e40af', rgb: '30 64 175' }, + '900': { hex: '#1e3a8a', rgb: '30 58 138' } + } }, - indigo: { - '50': { hex: '#eef2ff', rgb: '238 242 255' }, - '100': { hex: '#e0e7ff', rgb: '224 231 255' }, - '200': { hex: '#c7d2fe', rgb: '199 210 254' }, - '300': { hex: '#a5b4fc', rgb: '165 180 252' }, - '400': { hex: '#818cf8', rgb: '129 140 248' }, - '500': { hex: '#6366f1', rgb: '99 102 241' }, - '600': { hex: '#4f46e5', rgb: '79 70 229' }, - '700': { hex: '#4338ca', rgb: '67 56 202' }, - '800': { hex: '#3730a3', rgb: '55 48 163' }, - '900': { hex: '#312e81', rgb: '49 46 129' } + { + label: 'indigo', + shades: { + '50': { hex: '#eef2ff', rgb: '238 242 255' }, + '100': { hex: '#e0e7ff', rgb: '224 231 255' }, + '200': { hex: '#c7d2fe', rgb: '199 210 254' }, + '300': { hex: '#a5b4fc', rgb: '165 180 252' }, + '400': { hex: '#818cf8', rgb: '129 140 248' }, + '500': { hex: '#6366f1', rgb: '99 102 241' }, + '600': { hex: '#4f46e5', rgb: '79 70 229' }, + '700': { hex: '#4338ca', rgb: '67 56 202' }, + '800': { hex: '#3730a3', rgb: '55 48 163' }, + '900': { hex: '#312e81', rgb: '49 46 129' } + } }, - violet: { - '50': { hex: '#f5f3ff', rgb: '245 243 255' }, - '100': { hex: '#ede9fe', rgb: '237 233 254' }, - '200': { hex: '#ddd6fe', rgb: '221 214 254' }, - '300': { hex: '#c4b5fd', rgb: '196 181 253' }, - '400': { hex: '#a78bfa', rgb: '167 139 250' }, - '500': { hex: '#8b5cf6', rgb: '139 92 246' }, - '600': { hex: '#7c3aed', rgb: '124 58 237' }, - '700': { hex: '#6d28d9', rgb: '109 40 217' }, - '800': { hex: '#5b21b6', rgb: '91 33 182' }, - '900': { hex: '#4c1d95', rgb: '76 29 149' } + { + label: 'violet', + shades: { + '50': { hex: '#f5f3ff', rgb: '245 243 255' }, + '100': { hex: '#ede9fe', rgb: '237 233 254' }, + '200': { hex: '#ddd6fe', rgb: '221 214 254' }, + '300': { hex: '#c4b5fd', rgb: '196 181 253' }, + '400': { hex: '#a78bfa', rgb: '167 139 250' }, + '500': { hex: '#8b5cf6', rgb: '139 92 246' }, + '600': { hex: '#7c3aed', rgb: '124 58 237' }, + '700': { hex: '#6d28d9', rgb: '109 40 217' }, + '800': { hex: '#5b21b6', rgb: '91 33 182' }, + '900': { hex: '#4c1d95', rgb: '76 29 149' } + } }, - purple: { - '50': { hex: '#faf5ff', rgb: '250 245 255' }, - '100': { hex: '#f3e8ff', rgb: '243 232 255' }, - '200': { hex: '#e9d5ff', rgb: '233 213 255' }, - '300': { hex: '#d8b4fe', rgb: '216 180 254' }, - '400': { hex: '#c084fc', rgb: '192 132 252' }, - '500': { hex: '#a855f7', rgb: '168 85 247' }, - '600': { hex: '#9333ea', rgb: '147 51 234' }, - '700': { hex: '#7e22ce', rgb: '126 34 206' }, - '800': { hex: '#6b21a8', rgb: '107 33 168' }, - '900': { hex: '#581c87', rgb: '88 28 135' } + { + label: 'purple', + shades: { + '50': { hex: '#faf5ff', rgb: '250 245 255' }, + '100': { hex: '#f3e8ff', rgb: '243 232 255' }, + '200': { hex: '#e9d5ff', rgb: '233 213 255' }, + '300': { hex: '#d8b4fe', rgb: '216 180 254' }, + '400': { hex: '#c084fc', rgb: '192 132 252' }, + '500': { hex: '#a855f7', rgb: '168 85 247' }, + '600': { hex: '#9333ea', rgb: '147 51 234' }, + '700': { hex: '#7e22ce', rgb: '126 34 206' }, + '800': { hex: '#6b21a8', rgb: '107 33 168' }, + '900': { hex: '#581c87', rgb: '88 28 135' } + } }, - fuchsia: { - '50': { hex: '#fdf4ff', rgb: '253 244 255' }, - '100': { hex: '#fae8ff', rgb: '250 232 255' }, - '200': { hex: '#f5d0fe', rgb: '245 208 254' }, - '300': { hex: '#f0abfc', rgb: '240 171 252' }, - '400': { hex: '#e879f9', rgb: '232 121 249' }, - '500': { hex: '#d946ef', rgb: '217 70 239' }, - '600': { hex: '#c026d3', rgb: '192 38 211' }, - '700': { hex: '#a21caf', rgb: '162 28 175' }, - '800': { hex: '#86198f', rgb: '134 25 143' }, - '900': { hex: '#701a75', rgb: '112 26 117' } + { + label: 'fuchsia', + shades: { + '50': { hex: '#fdf4ff', rgb: '253 244 255' }, + '100': { hex: '#fae8ff', rgb: '250 232 255' }, + '200': { hex: '#f5d0fe', rgb: '245 208 254' }, + '300': { hex: '#f0abfc', rgb: '240 171 252' }, + '400': { hex: '#e879f9', rgb: '232 121 249' }, + '500': { hex: '#d946ef', rgb: '217 70 239' }, + '600': { hex: '#c026d3', rgb: '192 38 211' }, + '700': { hex: '#a21caf', rgb: '162 28 175' }, + '800': { hex: '#86198f', rgb: '134 25 143' }, + '900': { hex: '#701a75', rgb: '112 26 117' } + } }, - pink: { - '50': { hex: '#fdf2f8', rgb: '253 242 248' }, - '100': { hex: '#fce7f3', rgb: '252 231 243' }, - '200': { hex: '#fbcfe8', rgb: '251 207 232' }, - '300': { hex: '#f9a8d4', rgb: '249 168 212' }, - '400': { hex: '#f472b6', rgb: '244 114 182' }, - '500': { hex: '#ec4899', rgb: '236 72 153' }, - '600': { hex: '#db2777', rgb: '219 39 119' }, - '700': { hex: '#be185d', rgb: '190 24 93' }, - '800': { hex: '#9d174d', rgb: '157 23 77' }, - '900': { hex: '#831843', rgb: '131 24 67' } + { + label: 'pink', + shades: { + '50': { hex: '#fdf2f8', rgb: '253 242 248' }, + '100': { hex: '#fce7f3', rgb: '252 231 243' }, + '200': { hex: '#fbcfe8', rgb: '251 207 232' }, + '300': { hex: '#f9a8d4', rgb: '249 168 212' }, + '400': { hex: '#f472b6', rgb: '244 114 182' }, + '500': { hex: '#ec4899', rgb: '236 72 153' }, + '600': { hex: '#db2777', rgb: '219 39 119' }, + '700': { hex: '#be185d', rgb: '190 24 93' }, + '800': { hex: '#9d174d', rgb: '157 23 77' }, + '900': { hex: '#831843', rgb: '131 24 67' } + } }, - rose: { - '50': { hex: '#fff1f2', rgb: '255 241 242' }, - '100': { hex: '#ffe4e6', rgb: '255 228 230' }, - '200': { hex: '#fecdd3', rgb: '254 205 211' }, - '300': { hex: '#fda4af', rgb: '253 164 175' }, - '400': { hex: '#fb7185', rgb: '251 113 133' }, - '500': { hex: '#f43f5e', rgb: '244 63 94' }, - '600': { hex: '#e11d48', rgb: '225 29 72' }, - '700': { hex: '#be123c', rgb: '190 18 60' }, - '800': { hex: '#9f1239', rgb: '159 18 57' }, - '900': { hex: '#881337', rgb: '136 19 55' } + { + label: 'rose', + shades: { + '50': { hex: '#fff1f2', rgb: '255 241 242' }, + '100': { hex: '#ffe4e6', rgb: '255 228 230' }, + '200': { hex: '#fecdd3', rgb: '254 205 211' }, + '300': { hex: '#fda4af', rgb: '253 164 175' }, + '400': { hex: '#fb7185', rgb: '251 113 133' }, + '500': { hex: '#f43f5e', rgb: '244 63 94' }, + '600': { hex: '#e11d48', rgb: '225 29 72' }, + '700': { hex: '#be123c', rgb: '190 18 60' }, + '800': { hex: '#9f1239', rgb: '159 18 57' }, + '900': { hex: '#881337', rgb: '136 19 55' } + } } -}; +]; diff --git a/src/docs/DocsThemer/helpers.ts b/src/docs/DocsThemer/helpers.ts new file mode 100644 index 0000000000..6900edcad1 --- /dev/null +++ b/src/docs/DocsThemer/helpers.ts @@ -0,0 +1,54 @@ +// Doc Themer Helper Functions + +// @ts-ignore +import paletteGenerator from '@bobthered/tailwindcss-palette-generator'; +import { colorsTailwind } from './colors'; + +// Find Color +export function findColor(colorName: string): any { + return colorsTailwind.find((c) => c.label === colorName); +} + +// Source: https://github.com/bobthered/tailwindcss-palette-generator +export function genHexPalette(key: string, hexColor: string): any { + // Generate base palette + const hexShades: any = paletteGenerator({ names: [key], colors: [hexColor] }); + delete hexShades[key][950]; // drop swatch 950 + // Generate RGB values and map data structure + let hexRgbShades: any = {}; + let shadeValues: string[] = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900']; + Object.values(hexShades[key]).forEach((hexColor, i) => { + hexRgbShades[shadeValues[i]] = { hex: hexColor, rgb: hexToRgb(hexColor) }; + }); + // Update Hex Palette + return { label: key, shades: hexRgbShades, source: hexColor }; +} + +// Source: https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb +export function hexToRgb(hex: any): string { + hex = hex.replace('#', ''); + const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); + if (result) { + const color = { r: parseInt(result[1], 16), g: parseInt(result[2], 16), b: parseInt(result[3], 16) }; + return `${color.r} ${color.g} ${color.b}`; + } + return '(invalid)'; +} + +// Generates the CSS snippet +export function generateCssCode(isTailwind: boolean, currentPalette: any): string { + let css: string = ''; + Object.entries(currentPalette).forEach((set: any, i: number) => { + const [key, v] = set; + // Generate label + const generatedLabel: string = v.source ? v.source : v.label + ' | ' + v.shades['500'].hex; + // Set First Row of Set + css += `${i === 0 ? `\t/* =~= Skeleton Theme | ${isTailwind ? 'Tailwind' : 'Custom'} =~= */\n` : '\n'}\t/* ~ ${key} (${generatedLabel}) ~ */`; + // Per each entry, add custom property key/value row + Object.entries(v.shades).forEach((shade: any) => { + const [shadeKey, shadeValue] = shade; + css += `\n\t--color-${key}-${shadeKey}: ${shadeValue['rgb']}; /* ⬅ ${shadeValue['hex']} */`; + }); + }); + return `:root {\n${css}\n}`; +} diff --git a/src/lib/utilities/CodeBlock/CodeBlock.svelte b/src/lib/utilities/CodeBlock/CodeBlock.svelte index bc1b6b46b1..78b05b1e02 100644 --- a/src/lib/utilities/CodeBlock/CodeBlock.svelte +++ b/src/lib/utilities/CodeBlock/CodeBlock.svelte @@ -50,7 +50,7 @@ {#if language && code}
-
+
{languageFormatter(language)} diff --git a/src/routes/(inner)/guides/themes/+page.svelte b/src/routes/(inner)/guides/themes/+page.svelte index cd47db7a08..5ba19a9b6e 100644 --- a/src/routes/(inner)/guides/themes/+page.svelte +++ b/src/routes/(inner)/guides/themes/+page.svelte @@ -1,16 +1,12 @@
@@ -60,110 +55,65 @@

Skeleton themes integrate with Tailwind using CSS custom properties converted to RGB values. This enables the use of background opacity as well as support for - dark mode. Components intelligently implement each color from the theme's palette. + dark mode. Components intelligently adapt to your theme color palette.

- +
-

Preset Themes

-

A handful of curated preset themes are available below.

- - SvelteKit - Vite (Svelte) - Astro - - - {#if $storeFramework === 'sveltekit'} -

Import your desired preset into src/routes/+layout.svelte.

- - - {:else if $storeFramework === 'vite'} -

Import your desired preset into /src/main.js.

- - - {:else if $storeFramework === 'astro'} -

Import your desired preset into /src/layouts/LayoutBasic.astro.

- - {/if} - -

Tap any theme below to automatically copy the import statement to your clipboard.

- -
- - - - -
-

Theme Generator

-

Use the form below to craft a custom theme. Each color represents swatch 500 (ex: bg-primary-500).

- -
-
- - Tailwind Mode - Hex Mode - - - {#if $storeGenerator === 'tailwind'} - - Create a theme using Tailwind's color palette. This typically provides the best results. - - {/if} - {#if $storeGenerator === 'hex'} - For advanced users. Enter hex color values to generate a completely unique theme. - {/if} -
-
- - {#if $storeGenerator === 'tailwind'}{/if} - {#if $storeGenerator === 'hex'}{/if} +

Select a Theme

+

Select from any of our curated preset themes, or use the theme generator to create your own custom theme.

+
+ +

Tap any theme below to automatically copy the import statement to your clipboard.

+ + + + SvelteKit + Vite (Svelte) + Astro + + + {#if $storeFramework === 'sveltekit'} +

Import your desired preset into src/routes/+layout.svelte.

+ + + {:else if $storeFramework === 'vite'} +

Import your desired preset into /src/main.js.

+ + + {:else if $storeFramework === 'astro'} +

Import your desired preset into /src/layouts/LayoutBasic.astro.

+ + {/if} +
+ +
+
+

Create your own custom theme.

+ Themes Generator →
-

- TIP: Use Palette Generator to complete custom palette curation. The - Hex-To-RGB extension - can convert colors from Hex → RGB in bulk within VS Code. -

- - - SvelteKit - Vite (Svelte) - Astro - - - {#if $storeFramework === 'sveltekit'} -

Add your custom theme to /src/theme.postcss, then import this file into /src/routes/+layout.svelte.

- - - {:else if $storeFramework === 'vite'} -

Add your custom theme to /src/theme.css, then import this file into /src/main.js:

- - - {:else if $storeFramework === 'astro'} -

Add your custom theme to /src/styles/theme.css, then import this file into /src/layouts/LayoutBasic.astro.

- - {/if}
diff --git a/src/routes/(inner)/guides/themes/generator/+page.svelte b/src/routes/(inner)/guides/themes/generator/+page.svelte new file mode 100644 index 0000000000..22d6a9e9f2 --- /dev/null +++ b/src/routes/(inner)/guides/themes/generator/+page.svelte @@ -0,0 +1,57 @@ + + +
+ + + Themes + Generator + + + +
+

Theme Generator

+ + SvelteKit + Vite (Svelte) + Astro + + {#if $storeFramework === 'sveltekit'} +

Add your custom theme to /src/theme.postcss, then import this file into /src/routes/+layout.svelte.

+ + {:else if $storeFramework === 'vite'} +

Add your custom theme to /src/theme.css, then import this file into /src/main.js:

+ + {:else if $storeFramework === 'astro'} +

Add your custom theme to /src/styles/theme.css, then import this file into /src/layouts/LayoutBasic.astro.

+ + {/if} +
+ +
+ + +
+ +
+ + + + Pro Tip + Use Palette Generator to curate a theme from scratch, then pair with the + Hex-To-RGB extension + to convert colors to RGB in bulk with VS Code. + +
From 6e8a31f8abd9a996ce5f810717ac0195cfc82a6d Mon Sep 17 00:00:00 2001 From: endigo9740 Date: Thu, 22 Sep 2022 17:45:04 -0500 Subject: [PATCH 02/11] Transitions and cleanup --- src/docs/DocsThemer/DocsThemer.svelte | 12 +-- src/docs/DocsThemer/Swatches.svelte | 8 +- src/lib/themes/theme-test.css | 90 +++++++++---------- .../guides/themes/generator/+page.svelte | 6 +- 4 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/docs/DocsThemer/DocsThemer.svelte b/src/docs/DocsThemer/DocsThemer.svelte index 5854ce725d..3f3c6f73a3 100644 --- a/src/docs/DocsThemer/DocsThemer.svelte +++ b/src/docs/DocsThemer/DocsThemer.svelte @@ -23,10 +23,10 @@ surface: findColor('gray') }; const formDataHex: any = { - primary: findColor('emerald').shades['500'].hex, - accent: findColor('indigo').shades['500'].hex, - warning: findColor('rose').shades['500'].hex, - surface: findColor('gray').shades['500'].hex + primary: findColor('sky').shades['500'].hex, + accent: findColor('violet').shades['500'].hex, + warning: findColor('pink').shades['500'].hex, + surface: findColor('neutral').shades['500'].hex }; let paletteHex: any = { primary: genHexPalette('primary', formDataHex.primary), @@ -61,7 +61,7 @@ Custom {#if $storeMode} - Reference + Color Reference {:else} Get Inspired {/if} @@ -135,7 +135,7 @@
-

Each color you {$storeMode ? 'select' : 'input'} represents swatch 500 (ex: bg-primary-500).

+

Each color {$storeMode ? 'selected' : 'input'} represents swatch 500.

diff --git a/src/docs/DocsThemer/Swatches.svelte b/src/docs/DocsThemer/Swatches.svelte index ce928ab117..696ae1593a 100644 --- a/src/docs/DocsThemer/Swatches.svelte +++ b/src/docs/DocsThemer/Swatches.svelte @@ -6,13 +6,13 @@ } -
+
{#each objectValues(palette) as shade, i} -
+
-
{labels[i]}
+
{labels[i]}
-
+
{/each}
diff --git a/src/lib/themes/theme-test.css b/src/lib/themes/theme-test.css index 82091883c3..138804410f 100644 --- a/src/lib/themes/theme-test.css +++ b/src/lib/themes/theme-test.css @@ -1,47 +1,47 @@ :root { - /* --- Tailwind Theme --- */ - /* primary (yellow) */ - --color-primary-50: 254 252 232; - --color-primary-100: 254 249 195; - --color-primary-200: 254 240 138; - --color-primary-300: 253 224 71; - --color-primary-400: 250 204 21; - --color-primary-500: 234 179 8; - --color-primary-600: 202 138 4; - --color-primary-700: 161 98 7; - --color-primary-800: 133 77 14; - --color-primary-900: 113 63 18; - /* accent (orange) */ - --color-accent-50: 255 247 237; - --color-accent-100: 255 237 213; - --color-accent-200: 254 215 170; - --color-accent-300: 253 186 116; - --color-accent-400: 251 146 60; - --color-accent-500: 249 115 22; - --color-accent-600: 234 88 12; - --color-accent-700: 194 65 12; - --color-accent-800: 154 52 18; - --color-accent-900: 124 45 18; - /* warning (teal) */ - --color-warning-50: 240 253 250; - --color-warning-100: 204 251 241; - --color-warning-200: 153 246 228; - --color-warning-300: 94 234 212; - --color-warning-400: 45 212 191; - --color-warning-500: 20 184 166; - --color-warning-600: 13 148 136; - --color-warning-700: 15 118 110; - --color-warning-800: 17 94 89; - --color-warning-900: 19 78 74; - /* surface (rose) */ - --color-surface-50: 255 241 242; - --color-surface-100: 255 228 230; - --color-surface-200: 254 205 211; - --color-surface-300: 253 164 175; - --color-surface-400: 251 113 133; - --color-surface-500: 244 63 94; - --color-surface-600: 225 29 72; - --color-surface-700: 190 18 60; - --color-surface-800: 159 18 57; - --color-surface-900: 136 19 55; + /* =~= Skeleton Theme | Custom =~= */ + /* ~ primary (#0ea5e9) ~ */ + --color-primary-50: 245 252 254; /* ⬅ #f5fcfe */ + --color-primary-100: 231 246 254; /* ⬅ #e7f6fe */ + --color-primary-200: 207 238 252; /* ⬅ #cfeefc */ + --color-primary-300: 168 224 250; /* ⬅ #a8e0fa */ + --color-primary-400: 81 193 245; /* ⬅ #51c1f5 */ + --color-primary-500: 13 156 222; /* ⬅ #0d9cde */ + --color-primary-600: 9 112 159; /* ⬅ #09709f */ + --color-primary-700: 7 81 116; /* ⬅ #075174 */ + --color-primary-800: 4 47 67; /* ⬅ #042f43 */ + --color-primary-900: 2 24 34; /* ⬅ #021822 */ + /* ~ accent (#8b5cf6) ~ */ + --color-accent-50: 248 245 254; /* ⬅ #f8f5fe */ + --color-accent-100: 238 231 254; /* ⬅ #eee7fe */ + --color-accent-200: 220 207 252; /* ⬅ #dccffc */ + --color-accent-300: 193 168 250; /* ⬅ #c1a8fa */ + --color-accent-400: 130 81 246; /* ⬅ #8251f6 */ + --color-accent-500: 75 12 223; /* ⬅ #4b0cdf */ + --color-accent-600: 54 8 160; /* ⬅ #3608a0 */ + --color-accent-700: 39 6 116; /* ⬅ #270674 */ + --color-accent-800: 23 4 68; /* ⬅ #170444 */ + --color-accent-900: 11 2 34; /* ⬅ #0b0222 */ + /* ~ warning (#ec4899) ~ */ + --color-warning-50: 254 246 250; /* ⬅ #fef6fa */ + --color-warning-100: 253 232 242; /* ⬅ #fde8f2 */ + --color-warning-200: 250 209 230; /* ⬅ #fad1e6 */ + --color-warning-300: 246 172 209; /* ⬅ #f6acd1 */ + --color-warning-400: 238 89 163; /* ⬅ #ee59a3 */ + --color-warning-500: 212 22 117; /* ⬅ #d41675 */ + --color-warning-600: 152 16 84; /* ⬅ #981054 */ + --color-warning-700: 111 12 61; /* ⬅ #6f0c3d */ + --color-warning-800: 65 7 36; /* ⬅ #410724 */ + --color-warning-900: 32 3 18; /* ⬅ #200312 */ + /* ~ surface (#737373) ~ */ + --color-surface-50: 250 250 250; /* ⬅ #fafafa */ + --color-surface-100: 242 242 242; /* ⬅ #f2f2f2 */ + --color-surface-200: 230 230 230; /* ⬅ #e6e6e6 */ + --color-surface-300: 209 209 209; /* ⬅ #d1d1d1 */ + --color-surface-400: 163 163 163; /* ⬅ #a3a3a3 */ + --color-surface-500: 117 117 117; /* ⬅ #757575 */ + --color-surface-600: 84 84 84; /* ⬅ #545454 */ + --color-surface-700: 61 61 61; /* ⬅ #3d3d3d */ + --color-surface-800: 36 36 36; /* ⬅ #242424 */ + --color-surface-900: 18 18 18; /* ⬅ #121212 */ } diff --git a/src/routes/(inner)/guides/themes/generator/+page.svelte b/src/routes/(inner)/guides/themes/generator/+page.svelte index 22d6a9e9f2..32f07cb14a 100644 --- a/src/routes/(inner)/guides/themes/generator/+page.svelte +++ b/src/routes/(inner)/guides/themes/generator/+page.svelte @@ -43,9 +43,9 @@
-
- -
+ + +
From c623d8ad6728fa91be7e2a4a2fd3d8b2f9a12d68 Mon Sep 17 00:00:00 2001 From: endigo9740 Date: Fri, 23 Sep 2022 11:16:52 -0500 Subject: [PATCH 03/11] Current progress --- src/docs/DocsThemer/DocsThemer.svelte | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/docs/DocsThemer/DocsThemer.svelte b/src/docs/DocsThemer/DocsThemer.svelte index 3f3c6f73a3..049e8cfeb0 100644 --- a/src/docs/DocsThemer/DocsThemer.svelte +++ b/src/docs/DocsThemer/DocsThemer.svelte @@ -1,4 +1,5 @@ + + +
@@ -75,7 +80,7 @@