From 9a7787d4528430e9643c09c34cb334e0dfa8f55c Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 13 Nov 2024 15:31:01 +0100 Subject: [PATCH] added new yarn: Ice Yarns - Lorena Worsted --- src/lib/types/color-types.d.ts | 1 + src/lib/yarns/brands.ts | 2 + .../ice-yarns/lorena-worsted/colorways.ts | 194 ++++++++++++++++++ .../yarns/ice-yarns/lorena-worsted/yarn.ts | 9 + src/lib/yarns/ice-yarns/yarns.ts | 8 + src/routes/changelog/changelog.ts | 10 + 6 files changed, 224 insertions(+) create mode 100644 src/lib/yarns/ice-yarns/lorena-worsted/colorways.ts create mode 100644 src/lib/yarns/ice-yarns/lorena-worsted/yarn.ts create mode 100644 src/lib/yarns/ice-yarns/yarns.ts diff --git a/src/lib/types/color-types.d.ts b/src/lib/types/color-types.d.ts index f68af5a..7fb1de5 100644 --- a/src/lib/types/color-types.d.ts +++ b/src/lib/types/color-types.d.ts @@ -15,6 +15,7 @@ export interface Brand { name: string; + /** snake_case version of the name */ id: string; yarns: Yarn[]; } diff --git a/src/lib/yarns/brands.ts b/src/lib/yarns/brands.ts index 40f8e6c..f091c50 100644 --- a/src/lib/yarns/brands.ts +++ b/src/lib/yarns/brands.ts @@ -18,6 +18,7 @@ import { brand as hobbii } from './hobbii/yarns'; import { brand as hobbyLobby } from './hobby-lobby/yarns'; import { brand as hobbyStore } from './hobby-store/yarns'; import { brand as holst } from './holst/yarns'; +import { brand as iceYarns } from './ice-yarns/yarns'; import { brand as katia } from './katia/yarns'; import { brand as knitPicks } from './knit-picks/yarns'; import { brand as lilySugarNCream } from './lily-sugar-n-cream/yarns'; @@ -69,6 +70,7 @@ export const brands: Brand[] = [ hobbyLobby, hobbyStore, holst, + iceYarns, katia, knitPicks, lilySugarNCream, diff --git a/src/lib/yarns/ice-yarns/lorena-worsted/colorways.ts b/src/lib/yarns/ice-yarns/lorena-worsted/colorways.ts new file mode 100644 index 0000000..402277a --- /dev/null +++ b/src/lib/yarns/ice-yarns/lorena-worsted/colorways.ts @@ -0,0 +1,194 @@ +import type { Colorway } from '$lib/types'; + +const colorways: Colorway[] = [ + { + source: { + name: 'iceyarns.net', + href: 'https://www.iceyarns.net/lorena-worsted', + accessed: '2024-11-13', + }, + colors: [ + { + hex: '#523726', + name: 'Brown', + }, + { + hex: '#da88ba', + name: 'Candy Pink', + }, + { + hex: '#8d7dae', + name: 'Lilac', + }, + { + hex: '#9ec992', + name: 'Mint Green', + }, + { + hex: '#e6d864', + name: 'Light Yellow', + }, + { + hex: '#c69285', + name: 'Powder Pink', + }, + { + hex: '#b19470', + name: 'Beige', + }, + { + hex: '#bd2c22', + name: 'Tomato Red', + }, + { + hex: '#c03b23', + name: 'Orange', + }, + { + hex: '#e5dec2', + name: 'Ecru', + }, + { + hex: '#2a2d31', + name: 'Anthracite Black', + }, + { + hex: '#ab2928', + name: 'Red', + }, + { + hex: '#ddb1b2', + name: 'Baby Pink', + }, + { + hex: '#8caec9', + name: 'Light Blue', + }, + { + hex: '#84d2d8', + name: 'Light Turquoise', + }, + { + hex: '#ac91ab', + name: 'Light Lilac', + }, + { + hex: '#e1beb8', + name: 'Baby Pink', + }, + { + hex: '#e3b985', + name: 'Light Salmon', + }, + { + hex: '#d1d573', + name: 'Light Green', + }, + { + hex: '#b59a69', + name: 'Light Brown', + }, + { + hex: '#beb8a6', + name: 'Light Grey', + }, + { + hex: '#7e5da2', + name: 'Lilac', + }, + { + hex: '#8c5762', + name: 'Rose Pink', + }, + { + hex: '#ca6f87', + name: 'Light Pink', + }, + { + hex: '#c43959', + name: 'Candy Pink', + }, + { + hex: '#4390b9', + name: 'Turquoise', + }, + { + hex: '#5a85b9', + name: 'Baby Blue', + }, + { + hex: '#1e3e98', + name: 'Royal Blue', + }, + { + hex: '#4b5b77', + name: 'Jeans Blue', + }, + { + hex: '#264a84', + name: 'Blue', + }, + { + hex: '#13264e', + name: 'Dark Blue', + }, + { + hex: '#e6af3e', + name: 'Dark Yellow', + }, + { + hex: '#531317', + name: 'Burgundy', + }, + { + hex: '#617736', + name: 'Green', + }, + { + hex: '#214947', + name: 'Teal', + }, + { + hex: '#efe7c7', + name: 'Cream', + }, + { + hex: '#cbb895', + name: 'Light Beige', + }, + { + hex: '#ac7f51', + name: 'Cafe Latte', + }, + { + hex: '#7c604f', + name: 'Camel', + }, + { + hex: '#4e3427', + name: 'Brown', + }, + { + hex: '#e5e1d8', + name: 'White', + }, + { + hex: '#6f706d', + name: 'Grey', + }, + { + hex: '#242629', + name: 'Black', + }, + { + hex: '#dfb951', + name: 'Yellow', + }, + { + hex: '#295632', + name: 'Dark Green', + }, + ], + }, +]; +export default colorways; diff --git a/src/lib/yarns/ice-yarns/lorena-worsted/yarn.ts b/src/lib/yarns/ice-yarns/lorena-worsted/yarn.ts new file mode 100644 index 0000000..287a0fe --- /dev/null +++ b/src/lib/yarns/ice-yarns/lorena-worsted/yarn.ts @@ -0,0 +1,9 @@ +import type { Yarn } from '$lib/types'; +import colorways from './colorways'; + +export const yarn: Yarn = { + colorways, + name: 'Lorena Worsted', + id: 'lorena_worsted', + weightId: 'a', +}; diff --git a/src/lib/yarns/ice-yarns/yarns.ts b/src/lib/yarns/ice-yarns/yarns.ts new file mode 100644 index 0000000..e905a15 --- /dev/null +++ b/src/lib/yarns/ice-yarns/yarns.ts @@ -0,0 +1,8 @@ +import type { Brand } from '$lib/types'; +import { yarn as lorenaWorsted } from './lorena-worsted/yarn'; + +export const brand: Brand = { + name: 'Ice Yarns', + id: 'ice_yarns', + yarns: [lorenaWorsted], +}; diff --git a/src/routes/changelog/changelog.ts b/src/routes/changelog/changelog.ts index 223760f..62b5462 100644 --- a/src/routes/changelog/changelog.ts +++ b/src/routes/changelog/changelog.ts @@ -20,6 +20,16 @@ import type { ChangelogItem } from '$lib/types'; export const entries: ChangelogItem[] = [ { date: 'November, 2024', + notes: [ + { + icon: ICONS.checkCircle, + text: `45 colorways`, + title: 'Added Yarn: Ice Yarns - Lorena Worsted', + }, + ], + version: '4.6.0', + }, + { notes: [ { icon: ICONS.checkCircle,