From a2eb02409e18ca96b2853b06194f9f689929aef4 Mon Sep 17 00:00:00 2001 From: Will Stensvold Date: Thu, 4 Jun 2026 00:27:23 -0500 Subject: [PATCH] remove unnecessary files and amek global scss work --- ; | 205 -------------------------------------- src/app.scss | 7 -- src/styles/functions.scss | 4 + src/styles/variables.scss | 0 vite.config.js | 23 ++++- 5 files changed, 23 insertions(+), 216 deletions(-) delete mode 100644 ; delete mode 100644 src/app.scss create mode 100644 src/styles/functions.scss create mode 100644 src/styles/variables.scss diff --git a/; b/; deleted file mode 100644 index 4cc9b79..0000000 --- a/; +++ /dev/null @@ -1,205 +0,0 @@ - - - - Sludge Farm Pork - - - -
-

Farm Raised Pork

-
this ain't your grocery store's pork
-
All priced at {data.PRICE_PER_LB}$/#
-
- {#each data.pork as { name, src, cured, tubed, lb_package, flavors, avg_weight }} - -

{name}

- {#if src != undefined} - A photo of {name} - {:else} -
- {/if} -
- {#if cured} - Cured! - {/if} - {#if tubed} - Tubed! - {/if} -

- Weight: - {#if lb_package} - 1 lb - {:else} - {avg_weight.min}~ {avg_weight.max} lbs - {/if} -

-
- - {#if flavors != undefined} -
    -
  • Flavors:
  • - {#each flavors as flavor} -
  • - {flavor} -
  • - {/each} -
- {/if} -
- {/each} - - - - -
-
- - diff --git a/src/app.scss b/src/app.scss deleted file mode 100644 index 86b2c91..0000000 --- a/src/app.scss +++ /dev/null @@ -1,7 +0,0 @@ -$blue: oklch(0.76 0.0358 233.23); -$yellow: oklch(0.84 0.123 100); -$orange: oklch(0.76 0.239 65); -$brown: oklch(0.36 0.042 42); -$green: oklch(0.22 0.0211 174); -$green-42: oklch(0.42 0.042 142); - diff --git a/src/styles/functions.scss b/src/styles/functions.scss new file mode 100644 index 0000000..41959b4 --- /dev/null +++ b/src/styles/functions.scss @@ -0,0 +1,4 @@ +@use 'sass:color'; +@function transparent($color, $opacity: 75%) { + @return color-mix(in oklch, $color, transparent $opacity); +} diff --git a/src/styles/variables.scss b/src/styles/variables.scss new file mode 100644 index 0000000..e69de29 diff --git a/vite.config.js b/vite.config.js index 0815516..d58e83b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,24 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; +import { dirname, join } from 'path'; +import { fileURLToPath } from 'url'; + +const currentDir = dirname(fileURLToPath(import.meta.url)) export default defineConfig({ - plugins: [sveltekit()], - server:{ - port: 4242 - } + plugins: [sveltekit()], + server: { + port: 4242 + }, + css: { + preprocessorOptions: { + scss: { + api: 'modern', + additionalData: ` + @use "${join(currentDir, './src/styles/functions')}" as *; + @use "${join(currentDir, './src/styles/variables')}" as *; + ` + } + } + } });