diff --git a/src/lib/yarns/sandnes/tynn-peer-gynt/colorways.ts b/src/lib/yarns/sandnes/tynn-peer-gynt/colorways.ts new file mode 100644 index 0000000..04a3f94 --- /dev/null +++ b/src/lib/yarns/sandnes/tynn-peer-gynt/colorways.ts @@ -0,0 +1,214 @@ +import type { Colorway } from '$lib/types'; + +const colorways: Colorway[] = [ + { + source: { + name: 'sandnesgarn.no', + href: 'https://www.sandnesgarn.no/tynn-peer-gynt', + accessed: '2024-09-27', + }, + colors: [ + { + hex: '#f2ede1', + name: 'Hvit 1002', + }, + { + hex: '#d8d7cc', + name: 'Lys Gråmelert 1021', + }, + { + hex: '#c7c4ba', + name: 'Lys Gråmelert Med Natur Tweed 1034', + }, + { + hex: '#96938b', + name: 'Gråmelert 1042', + }, + { + hex: '#615f5b', + name: 'Mørk Gråmelert 1053', + }, + { + hex: '#2c2b2a', + name: 'Koksmelert 1088', + }, + { + hex: '#181719', + name: 'Svart 1099', + }, + { + hex: '#e8c969', + name: 'Solgul 2016', + }, + { + hex: '#d6c5b7', + name: 'Marsipan 2321', + }, + { + hex: '#e8e1cd', + name: 'Natur Tweed2523', + }, + { + hex: '#dbd0c3', + name: 'Naturmelert 2641', + }, + { + hex: '#b9ada1', + name: 'Gråbeige Melert 2650', + }, + { + hex: '#71635d', + name: 'Mellombrun Melert 2652', + }, + { + hex: '#c6bbae', + name: 'Gråbeige Tweed 2655', + }, + { + hex: '#ab5f32', + name: 'Cognac 2745', + }, + { + hex: '#5f4433', + name: 'Sjokolade 3073', + }, + { + hex: '#f3dace', + name: 'Ballet Tutu 3509', + }, + { + hex: '#a96754', + name: 'Lys Kobberbrun 3535', + }, + { + hex: '#393335', + name: 'Bristol Black 3800', + }, + { + hex: '#d74c37', + name: 'Spicy Orange 3819', + }, + { + hex: '#473a36', + name: 'Mørk Sjokolade 3880', + }, + { + hex: '#ce5052', + name: 'Poppy 4008', + }, + { + hex: '#be3030', + name: 'Scarlet Red 4018', + }, + { + hex: '#f3bbb6', + name: 'Blossom 4213', + }, + { + hex: '#991e2c', + name: 'Rød 4219', + }, + { + hex: '#7d2328', + name: 'Dyp Rød 4236', + }, + { + hex: '#842135', + name: 'Rumba Red 4255', + }, + { + hex: '#ec849a', + name: 'Bubblegum Pink 4315', + }, + { + hex: '#962b58', + name: 'Jazzy Pink 4600', + }, + { + hex: '#d2a6c1', + name: 'Rosa Peon 4623', + }, + { + hex: '#bb5f86', + name: 'Magenta 4628', + }, + { + hex: '#a78496', + name: 'Rosa Lavendel 4632', + }, + { + hex: '#4c2b43', + name: 'Bjørnebærsaft 4672', + }, + { + hex: '#ddb9d1', + name: 'Pink Lilac 4813', + }, + { + hex: '#c3acc5', + name: 'Lilac 5023', + }, + { + hex: '#1b1d31', + name: 'Marine 5575', + }, + { + hex: '#d0dadf', + name: 'Arctic Ice 5811', + }, + { + hex: '#2d4c99', + name: 'Dazzling Blue 5845', + }, + { + hex: '#8b9eb7', + name: 'Blå Hortensia 6032', + }, + { + hex: '#5c7caa', + name: 'Regatta Blå 6044', + }, + { + hex: '#1d448d', + name: 'Jolly Blue 6046', + }, + { + hex: '#64afc1', + name: 'Turkis 6315', + }, + { + hex: '#293f3d', + name: 'Dyp Petrol 7281', + }, + { + hex: '#2e3f32', + name: 'Skoggrønn 8082', + }, + { + hex: '#9cb587', + name: 'Spring Green 8733', + }, + { + hex: '#f7e287', + name: 'Lemon 9004', + }, + { + hex: '#434b48', + name: 'Urban Chic 9080', + }, + { + hex: '#4a4d3a', + name: 'Mørk Grønnmelert 9572', + }, + { + hex: '#c1b467', + name: 'Sunny Lime 9825', + }, + { + hex: '#605539', + name: 'Dark Olive 9873', + }, + ], + }, +]; +export default colorways; diff --git a/src/lib/yarns/sandnes/tynn-peer-gynt/yarn.ts b/src/lib/yarns/sandnes/tynn-peer-gynt/yarn.ts new file mode 100644 index 0000000..87d3f2f --- /dev/null +++ b/src/lib/yarns/sandnes/tynn-peer-gynt/yarn.ts @@ -0,0 +1,9 @@ +import type { Yarn } from '$lib/types'; +import colorways from './colorways'; + +export const yarn: Yarn = { + colorways, + id: 'tynn_peer_gynt', + name: 'Tynn Peer Gynt', + weightId: 'f', +}; diff --git a/src/routes/.dev-tools/+layout.js b/src/routes/.dev-tools/+layout.js new file mode 100644 index 0000000..d43d0cd --- /dev/null +++ b/src/routes/.dev-tools/+layout.js @@ -0,0 +1 @@ +export const prerender = false; diff --git a/src/routes/.dev-tools/extract-yarn-colorways/+page.svelte b/src/routes/.dev-tools/extract-yarn-colorways/+page.svelte new file mode 100644 index 0000000..0fc0060 --- /dev/null +++ b/src/routes/.dev-tools/extract-yarn-colorways/+page.svelte @@ -0,0 +1,287 @@ + + + + Extract Yarn Colorways + + + + + + + + + + + +
+ {#if dev} +

Input

+ +
+