Compare commits
5 Commits
deploy-202
...
deploy-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b18d91df99 | ||
|
|
f982ae3410 | ||
|
|
2a3bc5fdd8 | ||
|
|
063ef4f096 | ||
|
|
d55d0e5e02 |
10
CLAUDE.md
10
CLAUDE.md
@@ -48,14 +48,14 @@ scripts/deploy-frontend.sh # Manual frontend deploy to S3/CloudFront
|
|||||||
|
|
||||||
### Frontend (Next.js App Router)
|
### Frontend (Next.js App Router)
|
||||||
- `/app/page.tsx` — Public filament inventory table (home page)
|
- `/app/page.tsx` — Public filament inventory table (home page)
|
||||||
- `/app/upadaj/` — Admin panel: login, `/dashboard` (filament CRUD), `/colors` (color management), `/requests` (customer color requests)
|
- `/app/upadaj/` — Admin panel: login, `/dashboard` (filament CRUD), `/colors` (color management), `/customers` (customer management), `/sales` (sales recording), `/requests` (customer color requests), `/analytics` (revenue/inventory dashboards)
|
||||||
- `/src/services/api.ts` — Axios instance with auth interceptors (auto token injection, 401/403 redirect)
|
- `/src/services/api.ts` — Axios instance with auth interceptors (auto token injection, 401/403 redirect)
|
||||||
- `/src/data/bambuLabColors.ts` — Primary color-to-hex mapping with gradient support (used by `ColorCell` component)
|
- `/src/data/bambuLabColors.ts` — Primary color-to-hex mapping with gradient support (used by `ColorCell` component)
|
||||||
- `/src/data/bambuLabColorsComplete.ts` — Extended color database grouped by finish type (used by filters)
|
- `/src/data/bambuLabColorsComplete.ts` — Extended color database grouped by finish type (used by filters)
|
||||||
|
|
||||||
### API (`/api/server.js`)
|
### API (`/api/server.js`)
|
||||||
Single-file Express server running on EC2 (port 80). All routes inline.
|
Single-file Express server running on EC2 (port 80). All routes inline.
|
||||||
- Endpoints: `/api/login`, `/api/filaments`, `/api/colors`, `/api/sale/bulk`, `/api/color-requests`
|
- Endpoints: `/api/login`, `/api/filaments`, `/api/colors`, `/api/customers`, `/api/sales`, `/api/color-requests`, `/api/analytics/*`
|
||||||
- Auth: JWT tokens with 24h expiry, single admin user (password from `ADMIN_PASSWORD` env var)
|
- Auth: JWT tokens with 24h expiry, single admin user (password from `ADMIN_PASSWORD` env var)
|
||||||
|
|
||||||
### Database (PostgreSQL on RDS)
|
### Database (PostgreSQL on RDS)
|
||||||
@@ -64,13 +64,15 @@ Key schemas and constraints:
|
|||||||
```
|
```
|
||||||
filaments: id, tip (material), finish, boja (color), refill, spulna, kolicina, cena, sale_*
|
filaments: id, tip (material), finish, boja (color), refill, spulna, kolicina, cena, sale_*
|
||||||
colors: id, name, hex, cena_refill (default 3499), cena_spulna (default 3999)
|
colors: id, name, hex, cena_refill (default 3499), cena_spulna (default 3999)
|
||||||
|
customers: id, name, phone (unique), city, notes, created_at
|
||||||
|
sales: id, customer_id (FK→customers), total_amount, notes, created_at + sale_items join table
|
||||||
color_requests: id, color_name, message, contact_name, contact_phone, status
|
color_requests: id, color_name, message, contact_name, contact_phone, status
|
||||||
```
|
```
|
||||||
|
|
||||||
**Critical constraints:**
|
**Critical constraints:**
|
||||||
- `filaments.boja` → FK to `colors.name` (ON UPDATE CASCADE) — colors must exist before filaments reference them
|
- `filaments.boja` → FK to `colors.name` (ON UPDATE CASCADE) — colors must exist before filaments reference them
|
||||||
- `kolicina = refill + spulna` — enforced by check constraint
|
- `kolicina = refill + spulna` — enforced by check constraint
|
||||||
- Migrations in `/database/migrations/` with sequential numbering (currently up to `020_`)
|
- Migrations in `/database/migrations/` with sequential numbering (currently up to `023_`)
|
||||||
|
|
||||||
## Key Patterns
|
## Key Patterns
|
||||||
|
|
||||||
@@ -86,7 +88,7 @@ color_requests: id, color_name, message, contact_name, contact_phone, status
|
|||||||
3. Optionally add to `src/data/bambuLabColorsComplete.ts` finish groups
|
3. Optionally add to `src/data/bambuLabColorsComplete.ts` finish groups
|
||||||
|
|
||||||
### API Communication
|
### API Communication
|
||||||
- Service modules in `src/services/api.ts`: `authService`, `colorService`, `filamentService`, `colorRequestService`
|
- Service modules in `src/services/api.ts`: `authService`, `colorService`, `filamentService`, `colorRequestService`, `customerService`, `saleService`, `analyticsService`
|
||||||
- Auth token stored in localStorage with 24h expiry
|
- Auth token stored in localStorage with 24h expiry
|
||||||
- Cache busting on filament fetches via timestamp query param
|
- Cache busting on filament fetches via timestamp query param
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ describe('Bambu Lab Colors Data', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have Unknown fallback color', () => {
|
it('should return fallback for unknown colors', () => {
|
||||||
expect(bambuLabColors).toHaveProperty('Unknown');
|
const result = getFilamentColor('NonExistentColor');
|
||||||
expect(bambuLabColors.Unknown.hex).toBe('#CCCCCC');
|
expect(result.hex).toBe('#CCCCCC');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ describe('Bambu Lab Colors Complete Data', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should have silk colors', () => {
|
it('should have silk colors', () => {
|
||||||
expect(bambuLabColors).toHaveProperty('Silk Aurora Purple');
|
expect(bambuLabColors).toHaveProperty('Aurora Purple');
|
||||||
expect(bambuLabColors).toHaveProperty('Silk Phantom Blue');
|
expect(bambuLabColors).toHaveProperty('Phantom Blue');
|
||||||
expect(bambuLabColors).toHaveProperty('Silk Mystic Magenta');
|
expect(bambuLabColors).toHaveProperty('Mystic Magenta');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have valid hex colors', () => {
|
it('should have valid hex colors', () => {
|
||||||
@@ -50,7 +50,7 @@ describe('Bambu Lab Colors Complete Data', () => {
|
|||||||
|
|
||||||
it('should return valid hex for getColorHex', () => {
|
it('should return valid hex for getColorHex', () => {
|
||||||
const hex = getColorHex('Black');
|
const hex = getColorHex('Black');
|
||||||
expect(hex).toBe('#000000');
|
expect(hex).toBe('#1A1A1A');
|
||||||
|
|
||||||
const unknownHex = getColorHex('Unknown Color');
|
const unknownHex = getColorHex('Unknown Color');
|
||||||
expect(unknownHex).toBe('#000000');
|
expect(unknownHex).toBe('#000000');
|
||||||
|
|||||||
@@ -887,7 +887,6 @@ function FilamentForm({
|
|||||||
{color.name}
|
{color.name}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
<option value="custom">Druga boja...</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default function Home() {
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p className="text-lg sm:text-xl text-gray-400 leading-relaxed max-w-md mx-auto">
|
<p className="text-lg sm:text-xl text-gray-400 leading-relaxed max-w-md mx-auto">
|
||||||
Trenutno primamo porudžbine samo od postojećih kupaca. Redovna prodaja se vraća nakon <span className="text-amber-400 font-semibold">8. marta</span>.
|
Trenutno primamo porudžbine samo od postojećih kupaca. Redovna prodaja se vraća nakon <span className="text-amber-400 font-semibold">1. aprila</span>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
213
database/migrations/023_cleanup_fake_colors_add_missing.sql
Normal file
213
database/migrations/023_cleanup_fake_colors_add_missing.sql
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
-- Migration 023: Clean up fake colors and add missing real Bambu Lab colors
|
||||||
|
-- Source of truth: bambu_lab_filaments.numbers spreadsheet
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- 1. Rename typo: IronGray Metallic → Iron Gray Metallic (FK cascades to filaments)
|
||||||
|
UPDATE colors SET name = 'Iron Gray Metallic' WHERE name = 'IronGray Metallic';
|
||||||
|
|
||||||
|
-- 2. Delete 67 fake colors not used by any filament
|
||||||
|
DELETE FROM colors WHERE name IN (
|
||||||
|
'Coton Candy Cloud',
|
||||||
|
'Glow in the Dark Blue',
|
||||||
|
'Glow in the Dark Green',
|
||||||
|
'Grey',
|
||||||
|
'Indingo Purple',
|
||||||
|
'Ivory',
|
||||||
|
'Ivory White',
|
||||||
|
'Light Blue',
|
||||||
|
'Light Green',
|
||||||
|
'Matte Black',
|
||||||
|
'Matte Blue',
|
||||||
|
'Matte Brown',
|
||||||
|
'Matte Coral',
|
||||||
|
'Matte Green',
|
||||||
|
'Matte Grey',
|
||||||
|
'Matte Lime',
|
||||||
|
'Matte Mint',
|
||||||
|
'Matte Navy',
|
||||||
|
'Matte Orange',
|
||||||
|
'Matte Pink',
|
||||||
|
'Matte Purple',
|
||||||
|
'Matte White',
|
||||||
|
'Matte Yellow',
|
||||||
|
'Metal Bronze',
|
||||||
|
'Metal Copper',
|
||||||
|
'Metal Gold',
|
||||||
|
'Metal Grey',
|
||||||
|
'Metal Silver',
|
||||||
|
'Mint Green',
|
||||||
|
'Natural',
|
||||||
|
'Navy Blue',
|
||||||
|
'Nebulane',
|
||||||
|
'Silk Black',
|
||||||
|
'Silk Blue',
|
||||||
|
'Silk Bronze',
|
||||||
|
'Silk Copper',
|
||||||
|
'Silk Emerald',
|
||||||
|
'Silk Gold',
|
||||||
|
'Silk Green',
|
||||||
|
'Silk Jade',
|
||||||
|
'Silk Orange',
|
||||||
|
'Silk Pearl',
|
||||||
|
'Silk Pink',
|
||||||
|
'Silk Purple',
|
||||||
|
'Silk Red',
|
||||||
|
'Silk Rose Gold',
|
||||||
|
'Silk Ruby',
|
||||||
|
'Silk Sapphire',
|
||||||
|
'Silk Silver',
|
||||||
|
'Silk White',
|
||||||
|
'Sky Blue',
|
||||||
|
'Sparkle Blue',
|
||||||
|
'Sparkle Gold',
|
||||||
|
'Sparkle Green',
|
||||||
|
'Sparkle Purple',
|
||||||
|
'Sparkle Red',
|
||||||
|
'Sparkle Silver',
|
||||||
|
'Support G',
|
||||||
|
'Support White',
|
||||||
|
'Translucent Tea',
|
||||||
|
'Transparent Blue',
|
||||||
|
'Transparent Green',
|
||||||
|
'Transparent Orange',
|
||||||
|
'Transparent Purple',
|
||||||
|
'Transparent Red',
|
||||||
|
'Transparent Yellow',
|
||||||
|
'Violet'
|
||||||
|
);
|
||||||
|
|
||||||
|
-- 3. Add 17 missing real Bambu Lab colors from spreadsheet
|
||||||
|
INSERT INTO colors (name, hex) VALUES
|
||||||
|
('Aurora Purple', '#9C27B0'),
|
||||||
|
('Candy Green', '#66CDAA'),
|
||||||
|
('Candy Red', '#E8505B'),
|
||||||
|
('Crystal Blue', '#68B8E8'),
|
||||||
|
('Flesh', '#FFCCB0'),
|
||||||
|
('Forest Green', '#39541A'),
|
||||||
|
('Grape Jelly', '#6A0DAD'),
|
||||||
|
('Lake Blue', '#1F79E5'),
|
||||||
|
('Lime', '#76FF03'),
|
||||||
|
('Mystic Magenta', '#E040FB'),
|
||||||
|
('Nebulae', '#4A148C'),
|
||||||
|
('Neon Green', '#76FF03'),
|
||||||
|
('Phantom Blue', '#1A237E'),
|
||||||
|
('Quicksilver', '#A6A6A6'),
|
||||||
|
('Rose Gold', '#B76E79'),
|
||||||
|
('Translucent Teal', '#008B8B')
|
||||||
|
ON CONFLICT (name) DO NOTHING;
|
||||||
|
|
||||||
|
-- 4. Fix hex codes for existing colors to match spreadsheet
|
||||||
|
UPDATE colors SET hex = '#3B7DD8' WHERE name = 'ABS Azure';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'ABS Bambu Green';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'ABS Black';
|
||||||
|
UPDATE colors SET hex = '#1A3C8F' WHERE name = 'ABS Blue';
|
||||||
|
UPDATE colors SET hex = '#1B2A4A' WHERE name = 'ABS Navy Blue';
|
||||||
|
UPDATE colors SET hex = '#6B7339' WHERE name = 'ABS Olive';
|
||||||
|
UPDATE colors SET hex = '#F57C20' WHERE name = 'ABS Orange';
|
||||||
|
UPDATE colors SET hex = '#C0392B' WHERE name = 'ABS Red';
|
||||||
|
UPDATE colors SET hex = '#B0B0B0' WHERE name = 'ABS Silver';
|
||||||
|
UPDATE colors SET hex = '#FFBF00' WHERE name = 'ABS Tangerine Yellow';
|
||||||
|
UPDATE colors SET hex = '#2E7D32' WHERE name = 'Alpine Green Sparkle';
|
||||||
|
UPDATE colors SET hex = '#E0EFF6' WHERE name = 'Arctic Whisper';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'Bambu Green';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'Black';
|
||||||
|
UPDATE colors SET hex = '#3E2723' WHERE name = 'Black Walnut';
|
||||||
|
UPDATE colors SET hex = '#FF5722' WHERE name = 'Blaze';
|
||||||
|
UPDATE colors SET hex = '#7B8E97' WHERE name = 'Blue Grey';
|
||||||
|
UPDATE colors SET hex = '#00C5CD' WHERE name = 'Blue Hawaii';
|
||||||
|
UPDATE colors SET hex = '#7C4DFF' WHERE name = 'Blueberry Bubblegum';
|
||||||
|
UPDATE colors SET hex = '#9F332A' WHERE name = 'Brick Red';
|
||||||
|
UPDATE colors SET hex = '#5EC323' WHERE name = 'Bright Green';
|
||||||
|
UPDATE colors SET hex = '#DE3163' WHERE name = 'Cherry Pink';
|
||||||
|
UPDATE colors SET hex = '#D7C49E' WHERE name = 'Classic Birch';
|
||||||
|
UPDATE colors SET hex = '#CFB53B' WHERE name = 'Classic Gold Sparkle';
|
||||||
|
UPDATE colors SET hex = '#B08968' WHERE name = 'Clay Brown';
|
||||||
|
UPDATE colors SET hex = '#F0F0F0' WHERE name = 'Clear';
|
||||||
|
UPDATE colors SET hex = '#2C2C2C' WHERE name = 'Clear Black';
|
||||||
|
UPDATE colors SET hex = '#0047AB' WHERE name = 'Cobalt Blue';
|
||||||
|
UPDATE colors SET hex = '#6B4332' WHERE name = 'Cocoa Brown';
|
||||||
|
UPDATE colors SET hex = '#F8BBD0' WHERE name = 'Cotton Candy Cloud';
|
||||||
|
UPDATE colors SET hex = '#F5E6C8' WHERE name = 'Cream';
|
||||||
|
UPDATE colors SET hex = '#B71C1C' WHERE name = 'Crimson Red Sparkle';
|
||||||
|
UPDATE colors SET hex = '#515151' WHERE name = 'Dark Gray';
|
||||||
|
UPDATE colors SET hex = '#FFDAB9' WHERE name = 'Dawn Radiance';
|
||||||
|
UPDATE colors SET hex = '#FF7043' WHERE name = 'Dusk Glare';
|
||||||
|
UPDATE colors SET hex = '#E0F7FA' WHERE name = 'Frozen';
|
||||||
|
UPDATE colors SET hex = '#B76E79' WHERE name = 'Gilded Rose';
|
||||||
|
UPDATE colors SET hex = '#5DADE2' WHERE name = 'Glow Blue';
|
||||||
|
UPDATE colors SET hex = '#82E0AA' WHERE name = 'Glow Green';
|
||||||
|
UPDATE colors SET hex = '#FFB347' WHERE name = 'Glow Orange';
|
||||||
|
UPDATE colors SET hex = '#FFEB3B' WHERE name = 'Glow Yellow';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'Green';
|
||||||
|
UPDATE colors SET hex = '#FF4F81' WHERE name = 'Hot Pink';
|
||||||
|
UPDATE colors SET hex = '#A5DEE4' WHERE name = 'Ice Blue';
|
||||||
|
UPDATE colors SET hex = '#324585' WHERE name = 'Indigo Blue';
|
||||||
|
UPDATE colors SET hex = '#3B2D6B' WHERE name = 'Indigo Purple';
|
||||||
|
UPDATE colors SET hex = '#C5A04D' WHERE name = 'Iridium Gold Metallic';
|
||||||
|
UPDATE colors SET hex = '#5B3A8C' WHERE name = 'Iris Purple';
|
||||||
|
UPDATE colors SET hex = '#6E6E6E' WHERE name = 'Iron Gray Metallic';
|
||||||
|
UPDATE colors SET hex = '#4A6FA5' WHERE name = 'Jeans Blue';
|
||||||
|
UPDATE colors SET hex = '#5B5B5B' WHERE name = 'Lava Gray';
|
||||||
|
UPDATE colors SET hex = '#B39DDB' WHERE name = 'Lavender';
|
||||||
|
UPDATE colors SET hex = '#B2EBF2' WHERE name = 'Light Cyan';
|
||||||
|
UPDATE colors SET hex = '#C8C8C8' WHERE name = 'Light Gray';
|
||||||
|
UPDATE colors SET hex = '#C8E6C9' WHERE name = 'Light Jade';
|
||||||
|
UPDATE colors SET hex = '#7EC845' WHERE name = 'Lime Green';
|
||||||
|
UPDATE colors SET hex = '#0BDA51' WHERE name = 'Malachite Green';
|
||||||
|
UPDATE colors SET hex = '#7B2D34' WHERE name = 'Maroon Red';
|
||||||
|
UPDATE colors SET hex = '#7B9B5B' WHERE name = 'Matcha Green';
|
||||||
|
UPDATE colors SET hex = '#8DB600' WHERE name = 'Matte Apple Green';
|
||||||
|
UPDATE colors SET hex = '#CBC6B8' WHERE name = 'Matte Bone White';
|
||||||
|
UPDATE colors SET hex = '#AE835B' WHERE name = 'Matte Caramel';
|
||||||
|
UPDATE colors SET hex = '#3C3C3C' WHERE name = 'Matte Charcoal';
|
||||||
|
UPDATE colors SET hex = '#1B3A5C' WHERE name = 'Matte Dark Blue';
|
||||||
|
UPDATE colors SET hex = '#4D3324' WHERE name = 'Matte Dark Chocolate';
|
||||||
|
UPDATE colors SET hex = '#8B1A1A' WHERE name = 'Matte Dark Red';
|
||||||
|
UPDATE colors SET hex = '#61C680' WHERE name = 'Matte Grass Green';
|
||||||
|
UPDATE colors SET hex = '#FFFFFF' WHERE name = 'Matte Ivory White';
|
||||||
|
UPDATE colors SET hex = '#6E6E6E' WHERE name = 'Matte Nardo Gray';
|
||||||
|
UPDATE colors SET hex = '#7D3F6B' WHERE name = 'Matte Plum';
|
||||||
|
UPDATE colors SET hex = '#7EB6D9' WHERE name = 'Matte Sky Blue';
|
||||||
|
UPDATE colors SET hex = '#B15533' WHERE name = 'Matte Terracotta';
|
||||||
|
UPDATE colors SET hex = '#F8E875' WHERE name = 'Mellow Yellow';
|
||||||
|
UPDATE colors SET hex = '#2C1654' WHERE name = 'Midnight Blaze';
|
||||||
|
UPDATE colors SET hex = '#98FFB0' WHERE name = 'Mint';
|
||||||
|
UPDATE colors SET hex = '#A5D6A7' WHERE name = 'Mint Lime';
|
||||||
|
UPDATE colors SET hex = '#39FF14' WHERE name = 'Neon City';
|
||||||
|
UPDATE colors SET hex = '#FF6D00' WHERE name = 'Neon Orange';
|
||||||
|
UPDATE colors SET hex = '#4DB6AC' WHERE name = 'Ocean to Meadow';
|
||||||
|
UPDATE colors SET hex = '#CC7722' WHERE name = 'Ochre Yellow';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'Onyx Black Sparkle';
|
||||||
|
UPDATE colors SET hex = '#4A6741' WHERE name = 'Oxide Green Metallic';
|
||||||
|
UPDATE colors SET hex = '#A0724A' WHERE name = 'Peanut Brown';
|
||||||
|
UPDATE colors SET hex = '#FF8A65' WHERE name = 'Pink Citrus';
|
||||||
|
UPDATE colors SET hex = '#E87530' WHERE name = 'Pumpkin Orange';
|
||||||
|
UPDATE colors SET hex = '#A0522D' WHERE name = 'Red Granite';
|
||||||
|
UPDATE colors SET hex = '#65000B' WHERE name = 'Rosewood';
|
||||||
|
UPDATE colors SET hex = '#002FA7' WHERE name = 'Royal Blue';
|
||||||
|
UPDATE colors SET hex = '#6A1B9A' WHERE name = 'Royal Purple Sparkle';
|
||||||
|
UPDATE colors SET hex = '#708090' WHERE name = 'Slate Gray Sparkle';
|
||||||
|
UPDATE colors SET hex = '#FFD54F' WHERE name = 'Solar Breeze';
|
||||||
|
UPDATE colors SET hex = '#00BCD4' WHERE name = 'South Beach';
|
||||||
|
UPDATE colors SET hex = '#FEC600' WHERE name = 'Sunflower Yellow';
|
||||||
|
UPDATE colors SET hex = '#009FA1' WHERE name = 'Teal';
|
||||||
|
UPDATE colors SET hex = '#8A8D8F' WHERE name = 'Titan Gray';
|
||||||
|
UPDATE colors SET hex = '#A9A9A9' WHERE name = 'Translucent Gray';
|
||||||
|
UPDATE colors SET hex = '#8B4513' WHERE name = 'Translucent Brown';
|
||||||
|
UPDATE colors SET hex = '#ADD8E6' WHERE name = 'Translucent Light Blue';
|
||||||
|
UPDATE colors SET hex = '#808000' WHERE name = 'Translucent Olive';
|
||||||
|
UPDATE colors SET hex = '#FF8C00' WHERE name = 'Translucent Orange';
|
||||||
|
UPDATE colors SET hex = '#FFB6C1' WHERE name = 'Translucent Pink';
|
||||||
|
UPDATE colors SET hex = '#800080' WHERE name = 'Translucent Purple';
|
||||||
|
UPDATE colors SET hex = '#E8E8E8' WHERE name = 'Transparent';
|
||||||
|
UPDATE colors SET hex = '#3B0A45' WHERE name = 'Velvet Eclipse';
|
||||||
|
UPDATE colors SET hex = '#583061' WHERE name = 'Violet Purple';
|
||||||
|
UPDATE colors SET hex = '#E8E8E8' WHERE name = 'White Marble';
|
||||||
|
UPDATE colors SET hex = '#C8B88A' WHERE name = 'White Oak';
|
||||||
|
UPDATE colors SET hex = '#FF69B4' WHERE name = 'Glow Pink';
|
||||||
|
UPDATE colors SET hex = '#F7E7CE' WHERE name = 'Champagne';
|
||||||
|
UPDATE colors SET hex = '#0047AB' WHERE name = 'Cobalt Blue Metallic';
|
||||||
|
UPDATE colors SET hex = '#B87333' WHERE name = 'Copper Brown Metallic';
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
205
database/migrations/024_fix_colors_cleanup.sql
Normal file
205
database/migrations/024_fix_colors_cleanup.sql
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
-- Migration 024: Fix colors cleanup (handles partial state from 023)
|
||||||
|
-- Source of truth: bambu_lab_filaments.numbers spreadsheet
|
||||||
|
|
||||||
|
-- Delete the typo duplicate (keep the correct one)
|
||||||
|
DELETE FROM colors WHERE name = 'IronGray Metallic';
|
||||||
|
|
||||||
|
-- Delete fake colors not used by any filament
|
||||||
|
DELETE FROM colors WHERE name IN (
|
||||||
|
'Coton Candy Cloud',
|
||||||
|
'Glow in the Dark Blue',
|
||||||
|
'Glow in the Dark Green',
|
||||||
|
'Grey',
|
||||||
|
'Indingo Purple',
|
||||||
|
'Ivory',
|
||||||
|
'Ivory White',
|
||||||
|
'Light Blue',
|
||||||
|
'Light Green',
|
||||||
|
'Matte Black',
|
||||||
|
'Matte Blue',
|
||||||
|
'Matte Brown',
|
||||||
|
'Matte Coral',
|
||||||
|
'Matte Green',
|
||||||
|
'Matte Grey',
|
||||||
|
'Matte Lime',
|
||||||
|
'Matte Mint',
|
||||||
|
'Matte Navy',
|
||||||
|
'Matte Orange',
|
||||||
|
'Matte Pink',
|
||||||
|
'Matte Purple',
|
||||||
|
'Matte White',
|
||||||
|
'Matte Yellow',
|
||||||
|
'Metal Bronze',
|
||||||
|
'Metal Copper',
|
||||||
|
'Metal Gold',
|
||||||
|
'Metal Grey',
|
||||||
|
'Metal Silver',
|
||||||
|
'Mint Green',
|
||||||
|
'Natural',
|
||||||
|
'Navy Blue',
|
||||||
|
'Nebulane',
|
||||||
|
'Silk Black',
|
||||||
|
'Silk Blue',
|
||||||
|
'Silk Bronze',
|
||||||
|
'Silk Copper',
|
||||||
|
'Silk Emerald',
|
||||||
|
'Silk Gold',
|
||||||
|
'Silk Green',
|
||||||
|
'Silk Jade',
|
||||||
|
'Silk Orange',
|
||||||
|
'Silk Pearl',
|
||||||
|
'Silk Pink',
|
||||||
|
'Silk Purple',
|
||||||
|
'Silk Red',
|
||||||
|
'Silk Rose Gold',
|
||||||
|
'Silk Ruby',
|
||||||
|
'Silk Sapphire',
|
||||||
|
'Silk Silver',
|
||||||
|
'Silk White',
|
||||||
|
'Sky Blue',
|
||||||
|
'Sparkle Blue',
|
||||||
|
'Sparkle Gold',
|
||||||
|
'Sparkle Green',
|
||||||
|
'Sparkle Purple',
|
||||||
|
'Sparkle Red',
|
||||||
|
'Sparkle Silver',
|
||||||
|
'Support G',
|
||||||
|
'Support White',
|
||||||
|
'Translucent Tea',
|
||||||
|
'Transparent Blue',
|
||||||
|
'Transparent Green',
|
||||||
|
'Transparent Orange',
|
||||||
|
'Transparent Purple',
|
||||||
|
'Transparent Red',
|
||||||
|
'Transparent Yellow',
|
||||||
|
'Violet'
|
||||||
|
);
|
||||||
|
|
||||||
|
-- Fix all hex codes to match spreadsheet
|
||||||
|
UPDATE colors SET hex = '#3B7DD8' WHERE name = 'ABS Azure';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'ABS Bambu Green';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'ABS Black';
|
||||||
|
UPDATE colors SET hex = '#1A3C8F' WHERE name = 'ABS Blue';
|
||||||
|
UPDATE colors SET hex = '#1B2A4A' WHERE name = 'ABS Navy Blue';
|
||||||
|
UPDATE colors SET hex = '#6B7339' WHERE name = 'ABS Olive';
|
||||||
|
UPDATE colors SET hex = '#F57C20' WHERE name = 'ABS Orange';
|
||||||
|
UPDATE colors SET hex = '#C0392B' WHERE name = 'ABS Red';
|
||||||
|
UPDATE colors SET hex = '#B0B0B0' WHERE name = 'ABS Silver';
|
||||||
|
UPDATE colors SET hex = '#FFBF00' WHERE name = 'ABS Tangerine Yellow';
|
||||||
|
UPDATE colors SET hex = '#2E7D32' WHERE name = 'Alpine Green Sparkle';
|
||||||
|
UPDATE colors SET hex = '#E0EFF6' WHERE name = 'Arctic Whisper';
|
||||||
|
UPDATE colors SET hex = '#9C27B0' WHERE name = 'Aurora Purple';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'Bambu Green';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'Black';
|
||||||
|
UPDATE colors SET hex = '#3E2723' WHERE name = 'Black Walnut';
|
||||||
|
UPDATE colors SET hex = '#FF5722' WHERE name = 'Blaze';
|
||||||
|
UPDATE colors SET hex = '#7B8E97' WHERE name = 'Blue Grey';
|
||||||
|
UPDATE colors SET hex = '#00C5CD' WHERE name = 'Blue Hawaii';
|
||||||
|
UPDATE colors SET hex = '#7C4DFF' WHERE name = 'Blueberry Bubblegum';
|
||||||
|
UPDATE colors SET hex = '#9F332A' WHERE name = 'Brick Red';
|
||||||
|
UPDATE colors SET hex = '#5EC323' WHERE name = 'Bright Green';
|
||||||
|
UPDATE colors SET hex = '#66CDAA' WHERE name = 'Candy Green';
|
||||||
|
UPDATE colors SET hex = '#E8505B' WHERE name = 'Candy Red';
|
||||||
|
UPDATE colors SET hex = '#F7E7CE' WHERE name = 'Champagne';
|
||||||
|
UPDATE colors SET hex = '#DE3163' WHERE name = 'Cherry Pink';
|
||||||
|
UPDATE colors SET hex = '#D7C49E' WHERE name = 'Classic Birch';
|
||||||
|
UPDATE colors SET hex = '#CFB53B' WHERE name = 'Classic Gold Sparkle';
|
||||||
|
UPDATE colors SET hex = '#B08968' WHERE name = 'Clay Brown';
|
||||||
|
UPDATE colors SET hex = '#F0F0F0' WHERE name = 'Clear';
|
||||||
|
UPDATE colors SET hex = '#2C2C2C' WHERE name = 'Clear Black';
|
||||||
|
UPDATE colors SET hex = '#0047AB' WHERE name = 'Cobalt Blue';
|
||||||
|
UPDATE colors SET hex = '#0047AB' WHERE name = 'Cobalt Blue Metallic';
|
||||||
|
UPDATE colors SET hex = '#6B4332' WHERE name = 'Cocoa Brown';
|
||||||
|
UPDATE colors SET hex = '#B87333' WHERE name = 'Copper Brown Metallic';
|
||||||
|
UPDATE colors SET hex = '#F8BBD0' WHERE name = 'Cotton Candy Cloud';
|
||||||
|
UPDATE colors SET hex = '#F5E6C8' WHERE name = 'Cream';
|
||||||
|
UPDATE colors SET hex = '#B71C1C' WHERE name = 'Crimson Red Sparkle';
|
||||||
|
UPDATE colors SET hex = '#68B8E8' WHERE name = 'Crystal Blue';
|
||||||
|
UPDATE colors SET hex = '#515151' WHERE name = 'Dark Gray';
|
||||||
|
UPDATE colors SET hex = '#FFDAB9' WHERE name = 'Dawn Radiance';
|
||||||
|
UPDATE colors SET hex = '#FF7043' WHERE name = 'Dusk Glare';
|
||||||
|
UPDATE colors SET hex = '#FFCCB0' WHERE name = 'Flesh';
|
||||||
|
UPDATE colors SET hex = '#39541A' WHERE name = 'Forest Green';
|
||||||
|
UPDATE colors SET hex = '#E0F7FA' WHERE name = 'Frozen';
|
||||||
|
UPDATE colors SET hex = '#B76E79' WHERE name = 'Gilded Rose';
|
||||||
|
UPDATE colors SET hex = '#5DADE2' WHERE name = 'Glow Blue';
|
||||||
|
UPDATE colors SET hex = '#82E0AA' WHERE name = 'Glow Green';
|
||||||
|
UPDATE colors SET hex = '#FFB347' WHERE name = 'Glow Orange';
|
||||||
|
UPDATE colors SET hex = '#FF69B4' WHERE name = 'Glow Pink';
|
||||||
|
UPDATE colors SET hex = '#FFEB3B' WHERE name = 'Glow Yellow';
|
||||||
|
UPDATE colors SET hex = '#6A0DAD' WHERE name = 'Grape Jelly';
|
||||||
|
UPDATE colors SET hex = '#00AE42' WHERE name = 'Green';
|
||||||
|
UPDATE colors SET hex = '#FF4F81' WHERE name = 'Hot Pink';
|
||||||
|
UPDATE colors SET hex = '#A5DEE4' WHERE name = 'Ice Blue';
|
||||||
|
UPDATE colors SET hex = '#324585' WHERE name = 'Indigo Blue';
|
||||||
|
UPDATE colors SET hex = '#3B2D6B' WHERE name = 'Indigo Purple';
|
||||||
|
UPDATE colors SET hex = '#C5A04D' WHERE name = 'Iridium Gold Metallic';
|
||||||
|
UPDATE colors SET hex = '#5B3A8C' WHERE name = 'Iris Purple';
|
||||||
|
UPDATE colors SET hex = '#6E6E6E' WHERE name = 'Iron Gray Metallic';
|
||||||
|
UPDATE colors SET hex = '#4A6FA5' WHERE name = 'Jeans Blue';
|
||||||
|
UPDATE colors SET hex = '#1F79E5' WHERE name = 'Lake Blue';
|
||||||
|
UPDATE colors SET hex = '#5B5B5B' WHERE name = 'Lava Gray';
|
||||||
|
UPDATE colors SET hex = '#B39DDB' WHERE name = 'Lavender';
|
||||||
|
UPDATE colors SET hex = '#B2EBF2' WHERE name = 'Light Cyan';
|
||||||
|
UPDATE colors SET hex = '#C8C8C8' WHERE name = 'Light Gray';
|
||||||
|
UPDATE colors SET hex = '#C8E6C9' WHERE name = 'Light Jade';
|
||||||
|
UPDATE colors SET hex = '#76FF03' WHERE name = 'Lime';
|
||||||
|
UPDATE colors SET hex = '#7EC845' WHERE name = 'Lime Green';
|
||||||
|
UPDATE colors SET hex = '#0BDA51' WHERE name = 'Malachite Green';
|
||||||
|
UPDATE colors SET hex = '#7B2D34' WHERE name = 'Maroon Red';
|
||||||
|
UPDATE colors SET hex = '#7B9B5B' WHERE name = 'Matcha Green';
|
||||||
|
UPDATE colors SET hex = '#8DB600' WHERE name = 'Matte Apple Green';
|
||||||
|
UPDATE colors SET hex = '#CBC6B8' WHERE name = 'Matte Bone White';
|
||||||
|
UPDATE colors SET hex = '#AE835B' WHERE name = 'Matte Caramel';
|
||||||
|
UPDATE colors SET hex = '#3C3C3C' WHERE name = 'Matte Charcoal';
|
||||||
|
UPDATE colors SET hex = '#1B3A5C' WHERE name = 'Matte Dark Blue';
|
||||||
|
UPDATE colors SET hex = '#4D3324' WHERE name = 'Matte Dark Chocolate';
|
||||||
|
UPDATE colors SET hex = '#8B1A1A' WHERE name = 'Matte Dark Red';
|
||||||
|
UPDATE colors SET hex = '#61C680' WHERE name = 'Matte Grass Green';
|
||||||
|
UPDATE colors SET hex = '#FFFFFF' WHERE name = 'Matte Ivory White';
|
||||||
|
UPDATE colors SET hex = '#6E6E6E' WHERE name = 'Matte Nardo Gray';
|
||||||
|
UPDATE colors SET hex = '#7D3F6B' WHERE name = 'Matte Plum';
|
||||||
|
UPDATE colors SET hex = '#7EB6D9' WHERE name = 'Matte Sky Blue';
|
||||||
|
UPDATE colors SET hex = '#B15533' WHERE name = 'Matte Terracotta';
|
||||||
|
UPDATE colors SET hex = '#F8E875' WHERE name = 'Mellow Yellow';
|
||||||
|
UPDATE colors SET hex = '#2C1654' WHERE name = 'Midnight Blaze';
|
||||||
|
UPDATE colors SET hex = '#98FFB0' WHERE name = 'Mint';
|
||||||
|
UPDATE colors SET hex = '#A5D6A7' WHERE name = 'Mint Lime';
|
||||||
|
UPDATE colors SET hex = '#E040FB' WHERE name = 'Mystic Magenta';
|
||||||
|
UPDATE colors SET hex = '#4A148C' WHERE name = 'Nebulae';
|
||||||
|
UPDATE colors SET hex = '#39FF14' WHERE name = 'Neon City';
|
||||||
|
UPDATE colors SET hex = '#76FF03' WHERE name = 'Neon Green';
|
||||||
|
UPDATE colors SET hex = '#FF6D00' WHERE name = 'Neon Orange';
|
||||||
|
UPDATE colors SET hex = '#4DB6AC' WHERE name = 'Ocean to Meadow';
|
||||||
|
UPDATE colors SET hex = '#CC7722' WHERE name = 'Ochre Yellow';
|
||||||
|
UPDATE colors SET hex = '#1A1A1A' WHERE name = 'Onyx Black Sparkle';
|
||||||
|
UPDATE colors SET hex = '#4A6741' WHERE name = 'Oxide Green Metallic';
|
||||||
|
UPDATE colors SET hex = '#A0724A' WHERE name = 'Peanut Brown';
|
||||||
|
UPDATE colors SET hex = '#1A237E' WHERE name = 'Phantom Blue';
|
||||||
|
UPDATE colors SET hex = '#FF8A65' WHERE name = 'Pink Citrus';
|
||||||
|
UPDATE colors SET hex = '#E87530' WHERE name = 'Pumpkin Orange';
|
||||||
|
UPDATE colors SET hex = '#A6A6A6' WHERE name = 'Quicksilver';
|
||||||
|
UPDATE colors SET hex = '#A0522D' WHERE name = 'Red Granite';
|
||||||
|
UPDATE colors SET hex = '#B76E79' WHERE name = 'Rose Gold';
|
||||||
|
UPDATE colors SET hex = '#65000B' WHERE name = 'Rosewood';
|
||||||
|
UPDATE colors SET hex = '#002FA7' WHERE name = 'Royal Blue';
|
||||||
|
UPDATE colors SET hex = '#6A1B9A' WHERE name = 'Royal Purple Sparkle';
|
||||||
|
UPDATE colors SET hex = '#708090' WHERE name = 'Slate Gray Sparkle';
|
||||||
|
UPDATE colors SET hex = '#FFD54F' WHERE name = 'Solar Breeze';
|
||||||
|
UPDATE colors SET hex = '#00BCD4' WHERE name = 'South Beach';
|
||||||
|
UPDATE colors SET hex = '#FEC600' WHERE name = 'Sunflower Yellow';
|
||||||
|
UPDATE colors SET hex = '#009FA1' WHERE name = 'Teal';
|
||||||
|
UPDATE colors SET hex = '#8A8D8F' WHERE name = 'Titan Gray';
|
||||||
|
UPDATE colors SET hex = '#A9A9A9' WHERE name = 'Translucent Gray';
|
||||||
|
UPDATE colors SET hex = '#8B4513' WHERE name = 'Translucent Brown';
|
||||||
|
UPDATE colors SET hex = '#ADD8E6' WHERE name = 'Translucent Light Blue';
|
||||||
|
UPDATE colors SET hex = '#808000' WHERE name = 'Translucent Olive';
|
||||||
|
UPDATE colors SET hex = '#FF8C00' WHERE name = 'Translucent Orange';
|
||||||
|
UPDATE colors SET hex = '#FFB6C1' WHERE name = 'Translucent Pink';
|
||||||
|
UPDATE colors SET hex = '#800080' WHERE name = 'Translucent Purple';
|
||||||
|
UPDATE colors SET hex = '#008B8B' WHERE name = 'Translucent Teal';
|
||||||
|
UPDATE colors SET hex = '#E8E8E8' WHERE name = 'Transparent';
|
||||||
|
UPDATE colors SET hex = '#3B0A45' WHERE name = 'Velvet Eclipse';
|
||||||
|
UPDATE colors SET hex = '#583061' WHERE name = 'Violet Purple';
|
||||||
|
UPDATE colors SET hex = '#E8E8E8' WHERE name = 'White Marble';
|
||||||
|
UPDATE colors SET hex = '#C8B88A' WHERE name = 'White Oak';
|
||||||
@@ -52,23 +52,19 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
{ name: 'Bronze', refill: true, spool: false },
|
{ name: 'Bronze', refill: true, spool: false },
|
||||||
{ name: 'Silver', refill: true, spool: false },
|
{ name: 'Silver', refill: true, spool: false },
|
||||||
{ name: 'Dark Gray', refill: true, spool: false },
|
{ name: 'Dark Gray', refill: true, spool: false },
|
||||||
|
{ name: 'Indigo Purple', refill: true, spool: false },
|
||||||
|
{ name: 'Cocoa Brown', refill: true, spool: false },
|
||||||
|
{ name: 'Gray', refill: true, spool: false },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'Basic Gradient': {
|
'Basic Gradient': {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Neon City', refill: false, spool: true },
|
|
||||||
{ name: 'Midnight Blaze', refill: false, spool: true },
|
|
||||||
{ name: 'South Beach', refill: false, spool: true },
|
|
||||||
{ name: 'Arctic Whisper', refill: false, spool: true },
|
{ name: 'Arctic Whisper', refill: false, spool: true },
|
||||||
{ name: 'Cotton Candy Cloud', refill: false, spool: true },
|
{ name: 'Cotton Candy Cloud', refill: false, spool: true },
|
||||||
{ name: 'Ocean to Meadow', refill: false, spool: true },
|
{ name: 'Ocean to Meadow', refill: false, spool: true },
|
||||||
{ name: 'Solar Breeze', refill: false, spool: true },
|
{ name: 'Solar Breeze', refill: false, spool: true },
|
||||||
{ name: 'Velvet Eclipse', refill: false, spool: true },
|
|
||||||
{ name: 'Dawn Radiance', refill: false, spool: true },
|
|
||||||
{ name: 'Dusk Glare', refill: false, spool: true },
|
{ name: 'Dusk Glare', refill: false, spool: true },
|
||||||
{ name: 'Blueberry Bubblegum', refill: false, spool: true },
|
{ name: 'Blueberry Bubblegum', refill: false, spool: true },
|
||||||
{ name: 'Blue Hawaii', refill: false, spool: true },
|
|
||||||
{ name: 'Gilded Rose', refill: false, spool: true },
|
|
||||||
{ name: 'Pink Citrus', refill: false, spool: true },
|
{ name: 'Pink Citrus', refill: false, spool: true },
|
||||||
{ name: 'Mint Lime', refill: false, spool: true },
|
{ name: 'Mint Lime', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
@@ -111,13 +107,26 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
{ name: 'Rose Gold', refill: false, spool: true },
|
{ name: 'Rose Gold', refill: false, spool: true },
|
||||||
{ name: 'Champagne', refill: false, spool: true },
|
{ name: 'Champagne', refill: false, spool: true },
|
||||||
{ name: 'Baby Blue', refill: false, spool: true },
|
{ name: 'Baby Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Gold', refill: false, spool: true },
|
||||||
|
{ name: 'Silver', refill: false, spool: true },
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
|
{ name: 'Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Purple', refill: false, spool: true },
|
||||||
|
{ name: 'Pink', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'Silk Multi-Color': {
|
'Silk Multi-Color': {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Silk Aurora Purple', refill: false, spool: true },
|
{ name: 'Aurora Purple', refill: false, spool: true },
|
||||||
{ name: 'Silk Phantom Blue', refill: false, spool: true },
|
{ name: 'Phantom Blue', refill: false, spool: true },
|
||||||
{ name: 'Silk Mystic Magenta', refill: false, spool: true },
|
{ name: 'Mystic Magenta', refill: false, spool: true },
|
||||||
|
{ name: 'Dawn Radiance', refill: false, spool: true },
|
||||||
|
{ name: 'South Beach', refill: false, spool: true },
|
||||||
|
{ name: 'Neon City', refill: false, spool: true },
|
||||||
|
{ name: 'Midnight Blaze', refill: false, spool: true },
|
||||||
|
{ name: 'Gilded Rose', refill: false, spool: true },
|
||||||
|
{ name: 'Blue Hawaii', refill: false, spool: true },
|
||||||
|
{ name: 'Velvet Eclipse', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
Metal: {
|
Metal: {
|
||||||
@@ -142,6 +151,9 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
Galaxy: {
|
Galaxy: {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Nebulae', refill: true, spool: true },
|
{ name: 'Nebulae', refill: true, spool: true },
|
||||||
|
{ name: 'Purple', refill: false, spool: true },
|
||||||
|
{ name: 'Green', refill: false, spool: true },
|
||||||
|
{ name: 'Brown', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
Marble: {
|
Marble: {
|
||||||
@@ -164,11 +176,40 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
{ name: 'Ochre Yellow', refill: false, spool: true },
|
{ name: 'Ochre Yellow', refill: false, spool: true },
|
||||||
{ name: 'White Oak', refill: false, spool: true },
|
{ name: 'White Oak', refill: false, spool: true },
|
||||||
{ name: 'Clay Brown', refill: false, spool: true },
|
{ name: 'Clay Brown', refill: false, spool: true },
|
||||||
|
{ name: 'Black Walnut', refill: false, spool: true },
|
||||||
|
{ name: 'Rosewood', refill: false, spool: true },
|
||||||
|
{ name: 'Classic Birch', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'Tough+': {
|
'Tough+': {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Black', refill: true, spool: true },
|
{ name: 'Black', refill: true, spool: true },
|
||||||
|
{ name: 'White', refill: true, spool: true },
|
||||||
|
{ name: 'Yellow', refill: true, spool: true },
|
||||||
|
{ name: 'Orange', refill: true, spool: true },
|
||||||
|
{ name: 'Gray', refill: true, spool: true },
|
||||||
|
{ name: 'Silver', refill: true, spool: true },
|
||||||
|
{ name: 'Cyan', refill: true, spool: true },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
Translucent: {
|
||||||
|
colors: [
|
||||||
|
{ name: 'Teal', refill: false, spool: true },
|
||||||
|
{ name: 'Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Orange', refill: false, spool: true },
|
||||||
|
{ name: 'Purple', refill: false, spool: true },
|
||||||
|
{ name: 'Red', refill: false, spool: true },
|
||||||
|
{ name: 'Light Jade', refill: false, spool: true },
|
||||||
|
{ name: 'Mellow Yellow', refill: false, spool: true },
|
||||||
|
{ name: 'Cherry Pink', refill: false, spool: true },
|
||||||
|
{ name: 'Ice Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Lavender', refill: false, spool: true },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
Aero: {
|
||||||
|
colors: [
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
|
{ name: 'Gray', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
CF: {
|
CF: {
|
||||||
@@ -186,12 +227,14 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
PETG: {
|
PETG: {
|
||||||
HF: {
|
HF: {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Jade White', refill: true, spool: true },
|
|
||||||
{ name: 'Black', refill: true, spool: true },
|
{ name: 'Black', refill: true, spool: true },
|
||||||
|
{ name: 'White', refill: true, spool: true },
|
||||||
{ name: 'Red', refill: true, spool: true },
|
{ name: 'Red', refill: true, spool: true },
|
||||||
{ name: 'Green', refill: true, spool: true },
|
{ name: 'Green', refill: true, spool: true },
|
||||||
{ name: 'Blue', refill: true, spool: true },
|
{ name: 'Blue', refill: true, spool: true },
|
||||||
{ name: 'Gray', refill: true, spool: true },
|
{ name: 'Gray', refill: true, spool: true },
|
||||||
|
{ name: 'Dark Gray', refill: true, spool: true },
|
||||||
|
{ name: 'Yellow', refill: true, spool: true },
|
||||||
{ name: 'Orange', refill: true, spool: true },
|
{ name: 'Orange', refill: true, spool: true },
|
||||||
{ name: 'Cream', refill: true, spool: true },
|
{ name: 'Cream', refill: true, spool: true },
|
||||||
{ name: 'Forest Green', refill: true, spool: true },
|
{ name: 'Forest Green', refill: true, spool: true },
|
||||||
@@ -210,7 +253,7 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
{ name: 'Translucent Olive', refill: false, spool: true },
|
{ name: 'Translucent Olive', refill: false, spool: true },
|
||||||
{ name: 'Translucent Pink', refill: false, spool: true },
|
{ name: 'Translucent Pink', refill: false, spool: true },
|
||||||
{ name: 'Translucent Light Blue', refill: false, spool: true },
|
{ name: 'Translucent Light Blue', refill: false, spool: true },
|
||||||
{ name: 'Translucent Tea', refill: false, spool: true },
|
{ name: 'Translucent Teal', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
CF: {
|
CF: {
|
||||||
@@ -244,6 +287,12 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
colors: [
|
colors: [
|
||||||
{ name: 'ABS GF Yellow', refill: true, spool: false },
|
{ name: 'ABS GF Yellow', refill: true, spool: false },
|
||||||
{ name: 'ABS GF Orange', refill: true, spool: false },
|
{ name: 'ABS GF Orange', refill: true, spool: false },
|
||||||
|
{ name: 'Orange', refill: true, spool: false },
|
||||||
|
{ name: 'Red', refill: true, spool: false },
|
||||||
|
{ name: 'Blue', refill: true, spool: false },
|
||||||
|
{ name: 'White', refill: true, spool: false },
|
||||||
|
{ name: 'Gray', refill: true, spool: false },
|
||||||
|
{ name: 'Black', refill: true, spool: false },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -251,10 +300,10 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
'85A': {
|
'85A': {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Black', refill: false, spool: true },
|
{ name: 'Black', refill: false, spool: true },
|
||||||
{ name: 'White', refill: false, spool: true },
|
|
||||||
{ name: 'Flesh', refill: false, spool: true },
|
{ name: 'Flesh', refill: false, spool: true },
|
||||||
{ name: 'Light Cyan', refill: false, spool: true },
|
{ name: 'Light Cyan', refill: false, spool: true },
|
||||||
{ name: 'Neon Orange', refill: false, spool: true },
|
{ name: 'Neon Orange', refill: false, spool: true },
|
||||||
|
{ name: 'Lime Green', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'90A': {
|
'90A': {
|
||||||
@@ -275,6 +324,23 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
{ name: 'Black', refill: true, spool: false },
|
{ name: 'Black', refill: true, spool: false },
|
||||||
{ name: 'White', refill: true, spool: false },
|
{ name: 'White', refill: true, spool: false },
|
||||||
{ name: 'TPU 95A HF Yellow', refill: true, spool: false },
|
{ name: 'TPU 95A HF Yellow', refill: true, spool: false },
|
||||||
|
{ name: 'Gray', refill: true, spool: false },
|
||||||
|
{ name: 'Yellow', refill: true, spool: false },
|
||||||
|
{ name: 'Blue', refill: true, spool: false },
|
||||||
|
{ name: 'Red', refill: true, spool: false },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'TPU for AMS': {
|
||||||
|
Basic: {
|
||||||
|
colors: [
|
||||||
|
{ name: 'Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Red', refill: false, spool: true },
|
||||||
|
{ name: 'Yellow', refill: false, spool: true },
|
||||||
|
{ name: 'Neon Green', refill: false, spool: true },
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
|
{ name: 'Gray', refill: false, spool: true },
|
||||||
|
{ name: 'Black', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -301,9 +367,21 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
PA6: {
|
PA6: {
|
||||||
|
CF: {
|
||||||
|
colors: [
|
||||||
|
{ name: 'Black', refill: false, spool: true },
|
||||||
|
],
|
||||||
|
},
|
||||||
GF: {
|
GF: {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Black', refill: false, spool: true },
|
{ name: 'Black', refill: false, spool: true },
|
||||||
|
{ name: 'Blue', refill: false, spool: true },
|
||||||
|
{ name: 'Orange', refill: false, spool: true },
|
||||||
|
{ name: 'Yellow', refill: false, spool: true },
|
||||||
|
{ name: 'Lime', refill: false, spool: true },
|
||||||
|
{ name: 'Brown', refill: false, spool: true },
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
|
{ name: 'Gray', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -319,11 +397,15 @@ export const BAMBU_LAB_CATALOG: BambuLabCatalog = {
|
|||||||
colors: [
|
colors: [
|
||||||
{ name: 'Clear Black', refill: false, spool: true },
|
{ name: 'Clear Black', refill: false, spool: true },
|
||||||
{ name: 'Transparent', refill: false, spool: true },
|
{ name: 'Transparent', refill: false, spool: true },
|
||||||
|
{ name: 'Black', refill: false, spool: true },
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
FR: {
|
FR: {
|
||||||
colors: [
|
colors: [
|
||||||
{ name: 'Black', refill: false, spool: true },
|
{ name: 'Black', refill: false, spool: true },
|
||||||
|
{ name: 'White', refill: false, spool: true },
|
||||||
|
{ name: 'Gray', refill: false, spool: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,214 +4,204 @@ export interface ColorMapping {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const bambuLabColors: Record<string, ColorMapping> = {
|
export const bambuLabColors: Record<string, ColorMapping> = {
|
||||||
'Alpine Green Sparkle': { hex: '#3F5443' },
|
'Alpine Green Sparkle': { hex: '#2E7D32' },
|
||||||
'Apple Green': { hex: '#C6E188' },
|
'Apple Green': { hex: '#C6E188' },
|
||||||
'Arctic Whisper': { hex: '#ECF7F8' },
|
'Arctic Whisper': { hex: '#E0EFF6' },
|
||||||
'Ash Grey': { hex: '#9B9EA0' },
|
'Ash Grey': { hex: '#9B9EA0' },
|
||||||
'Aurora Purple': { hex: '#285BB7' },
|
'Aurora Purple': { hex: ['#7F3696', '#006EC9'], isGradient: true },
|
||||||
'Azure': { hex: '#489FDF' },
|
'Azure': { hex: '#489FDF' },
|
||||||
'Baby Blue': { hex: '#AEC3ED' },
|
'Baby Blue': { hex: '#89CFF0' },
|
||||||
'Bambu Green': { hex: '#00AE42' },
|
'Bambu Green': { hex: '#00AE42' },
|
||||||
'Beige': { hex: '#F7E6DE' },
|
'Beige': { hex: '#F7E6DE' },
|
||||||
'Black': { hex: '#000000' },
|
'Black': { hex: '#1A1A1A' },
|
||||||
'Black Walnut': { hex: '#4D4229' },
|
'Black Walnut': { hex: '#3E2723' },
|
||||||
'Blaze': { hex: '#E78390' },
|
'Blaze': { hex: '#FF5722' },
|
||||||
'Blue': { hex: '#0A2989' },
|
'Blue': { hex: '#0A2989' },
|
||||||
'Blue Grey': { hex: '#5B6579' },
|
'Blue Grey': { hex: '#7B8E97' },
|
||||||
'Blue Hawaii': { hex: '#739FE6' },
|
'Blue Hawaii': { hex: '#00C5CD' },
|
||||||
'Blueberry Bubblegum': { hex: '#BADCF4' },
|
'Blueberry Bubblegum': { hex: '#7C4DFF' },
|
||||||
'Bone White': { hex: '#C8C5B6' },
|
'Bone White': { hex: '#C8C5B6' },
|
||||||
'Bright Green': { hex: '#BDCF00' },
|
'Bright Green': { hex: '#5EC323' },
|
||||||
'Brick Red': { hex: '#9F332A' },
|
'Brick Red': { hex: '#9F332A' },
|
||||||
'Bronze': { hex: '#847D48' },
|
'Bronze': { hex: '#847D48' },
|
||||||
'Brown': { hex: '#9D432C' },
|
'Brown': { hex: '#9D432C' },
|
||||||
'Burgundy Red': { hex: '#951E23' },
|
'Burgundy Red': { hex: '#800020' },
|
||||||
'Candy Green': { hex: '#408619' },
|
'Candy Green': { hex: '#66CDAA' },
|
||||||
'Candy Red': { hex: '#BB3A2E' },
|
'Candy Red': { hex: '#E8505B' },
|
||||||
'Caramel': { hex: '#A4845C' },
|
'Caramel': { hex: '#A4845C' },
|
||||||
'Champagne': { hex: '#EBD0B1' },
|
'Champagne': { hex: '#F7E7CE' },
|
||||||
'Charcoal': { hex: '#000000' },
|
'Charcoal': { hex: '#000000' },
|
||||||
'Cherry Pink': { hex: '#E9B6CC' },
|
'Cherry Pink': { hex: '#DE3163' },
|
||||||
'Chocolate': { hex: '#4A3729' },
|
'Chocolate': { hex: '#4A3729' },
|
||||||
'Classic Birch': { hex: '#E8D5B7' },
|
'Classic Birch': { hex: '#D7C49E' },
|
||||||
'Classic Gold Sparkle': { hex: '#E4BD68' },
|
'Classic Gold Sparkle': { hex: '#CFB53B' },
|
||||||
'Clay Brown': { hex: '#8E621A' },
|
'Clay Brown': { hex: '#B08968' },
|
||||||
'Clear': { hex: '#FAFAFA' },
|
'Clear': { hex: '#F0F0F0' },
|
||||||
'Clear Black': { hex: '#5A5161' },
|
'Clear Black': { hex: '#2C2C2C' },
|
||||||
'Cobalt Blue': { hex: '#0055B8' },
|
'Cobalt Blue': { hex: '#0047AB' },
|
||||||
'Cobalt Blue Metallic': { hex: '#39699E' },
|
'Cobalt Blue Metallic': { hex: '#0047AB' },
|
||||||
'Cocoa Brown': { hex: '#6F5034' },
|
'Cocoa Brown': { hex: '#6B4332' },
|
||||||
'Copper Brown Metallic': { hex: '#AA6443' },
|
'Copper Brown Metallic': { hex: '#B87333' },
|
||||||
'Cotton Candy Cloud': { hex: '#E9E2EC' },
|
'Cotton Candy Cloud': { hex: '#F8BBD0' },
|
||||||
'Cream': { hex: '#F3E0B8' },
|
'Cream': { hex: '#F5E6C8' },
|
||||||
'Crimson Red Sparkle': { hex: '#792B36' },
|
'Crimson Red Sparkle': { hex: '#B71C1C' },
|
||||||
'Cyan': { hex: '#0086D6' },
|
'Cyan': { hex: '#0086D6' },
|
||||||
'Dark Blue': { hex: '#042F56' },
|
'Dark Blue': { hex: '#042F56' },
|
||||||
'Dark Brown': { hex: '#7D6556' },
|
'Dark Brown': { hex: '#7D6556' },
|
||||||
'Dark Chocolate': { hex: '#4A3729' },
|
'Dark Chocolate': { hex: '#4A3729' },
|
||||||
'Dark Gray': { hex: '#555555' },
|
'Dark Gray': { hex: '#515151' },
|
||||||
'Dark Green': { hex: '#68724D' },
|
'Dark Green': { hex: '#68724D' },
|
||||||
'Dark Red': { hex: '#BB3D43' },
|
'Dark Red': { hex: '#BB3D43' },
|
||||||
'Dawn Radiance': { hex: '#C472A1' },
|
'Dawn Radiance': { hex: '#FFDAB9' },
|
||||||
'Desert Tan': { hex: '#E8DBB7' },
|
'Desert Tan': { hex: '#E8DBB7' },
|
||||||
'Dusk Glare': { hex: '#F6B790' },
|
'Dusk Glare': { hex: '#FF7043' },
|
||||||
'Forest Green': { hex: '#415520' },
|
'Forest Green': { hex: '#39541A' },
|
||||||
'Frozen': { hex: '#A6DEF3' },
|
'Frozen': { hex: '#E0F7FA' },
|
||||||
'Gilded Rose': { hex: '#ED982C' },
|
'Gilded Rose': { hex: '#B76E79' },
|
||||||
'Glow Blue': { hex: '#7AC0E9' },
|
'Glow Blue': { hex: '#5DADE2' },
|
||||||
'Glow Green': { hex: '#A1FFAC' },
|
'Glow Green': { hex: '#82E0AA' },
|
||||||
'Glow Orange': { hex: '#FF9D5B' },
|
'Glow Orange': { hex: '#FFB347' },
|
||||||
'Glow Pink': { hex: '#F17B8F' },
|
'Glow Pink': { hex: '#FF69B4' },
|
||||||
'Glow Yellow': { hex: '#F8FF80' },
|
'Glow Yellow': { hex: '#FFEB3B' },
|
||||||
'Gold': { hex: '#E4BD68' },
|
'Gold': { hex: '#E4BD68' },
|
||||||
'Gray': { hex: '#8E9089' },
|
'Gray': { hex: '#8E9089' },
|
||||||
'Green': { hex: '#3B665E' },
|
'Green': { hex: '#00AE42' },
|
||||||
'Hot Pink': { hex: '#F5547D' },
|
'Hot Pink': { hex: '#FF4F81' },
|
||||||
'Ice Blue': { hex: '#A3D8E1' },
|
'Ice Blue': { hex: '#A5DEE4' },
|
||||||
'Indigo Blue': { hex: '#324585' },
|
'Indigo Blue': { hex: '#324585' },
|
||||||
'Indigo Purple': { hex: '#482A60' },
|
'Indigo Purple': { hex: '#3B2D6B' },
|
||||||
'Iridium Gold Metallic': { hex: '#B39B84' },
|
'Iridium Gold Metallic': { hex: '#C5A04D' },
|
||||||
'Iris Purple': { hex: '#69398E' },
|
'Iris Purple': { hex: '#5B3A8C' },
|
||||||
'Iron Gray Metallic': { hex: '#6B6C6F' },
|
'Iron Gray Metallic': { hex: '#6E6E6E' },
|
||||||
'IronGray Metallic': { hex: '#6B6C6F' },
|
|
||||||
'Ivory White': { hex: '#FFFFFF' },
|
|
||||||
'Jade White': { hex: '#FFFFFF' },
|
'Jade White': { hex: '#FFFFFF' },
|
||||||
'Jeans Blue': { hex: '#6E88BC' },
|
'Jeans Blue': { hex: '#4A6FA5' },
|
||||||
'Lake Blue': { hex: '#4672E4' },
|
'Lake Blue': { hex: '#1F79E5' },
|
||||||
'Latte Brown': { hex: '#D3B7A7' },
|
'Latte Brown': { hex: '#D3B7A7' },
|
||||||
'Lava Gray': { hex: '#4D5054' },
|
'Lava Gray': { hex: '#5B5B5B' },
|
||||||
'Lavender': { hex: '#B5AAD5' },
|
'Lavender': { hex: '#B39DDB' },
|
||||||
'Lemon Yellow': { hex: '#F7D959' },
|
'Lemon Yellow': { hex: '#F7D959' },
|
||||||
'Light Blue': { hex: '#61B0FF' },
|
'Light Blue': { hex: '#61B0FF' },
|
||||||
'Light Cyan': { hex: '#B9E3DF' },
|
'Light Cyan': { hex: '#B2EBF2' },
|
||||||
'Light Gray': { hex: '#D0D2D4' },
|
'Light Gray': { hex: '#C8C8C8' },
|
||||||
'Light Jade': { hex: '#A4D6AD' },
|
'Light Jade': { hex: '#C8E6C9' },
|
||||||
'Lilac Purple': { hex: '#AE96D4' },
|
'Lilac Purple': { hex: '#AE96D4' },
|
||||||
'Lime': { hex: '#C5ED48' },
|
'Lime': { hex: '#76FF03' },
|
||||||
'Lime Green': { hex: '#8EE43D' },
|
'Lime Green': { hex: '#7EC845' },
|
||||||
'Magenta': { hex: '#EC008C' },
|
'Magenta': { hex: '#EC008C' },
|
||||||
'Malachite Green': { hex: '#16B08E' },
|
'Malachite Green': { hex: '#0BDA51' },
|
||||||
'Mandarin Orange': { hex: '#F99963' },
|
'Mandarin Orange': { hex: '#F99963' },
|
||||||
'Marine Blue': { hex: '#0078BF' },
|
'Marine Blue': { hex: '#0078BF' },
|
||||||
'Maroon Red': { hex: '#0A2989' },
|
'Maroon Red': { hex: '#7B2D34' },
|
||||||
'Matcha Green': { hex: '#5C9748' },
|
'Matcha Green': { hex: '#7B9B5B' },
|
||||||
'Mellow Yellow': { hex: '#EFDCAA' },
|
'Mellow Yellow': { hex: '#F8E875' },
|
||||||
'Midnight Blaze': { hex: '#0047BB' },
|
'Midnight Blaze': { hex: '#2C1654' },
|
||||||
'Mint': { hex: '#A5DAB7' },
|
'Mint': { hex: '#98FFB0' },
|
||||||
'Mint Lime': { hex: '#BAF382' },
|
'Mint Lime': { hex: '#A5D6A7' },
|
||||||
'Mistletoe Green': { hex: '#3F8E43' },
|
'Mistletoe Green': { hex: '#3F8E43' },
|
||||||
'Nardo Gray': { hex: '#747474' },
|
'Nardo Gray': { hex: '#747474' },
|
||||||
'Navy Blue': { hex: '#0C2340' },
|
'Navy Blue': { hex: '#0C2340' },
|
||||||
'Nebulae': { hex: '#424379' },
|
'Nebulae': { hex: '#4A148C' },
|
||||||
'Nebulane': { hex: '#424379' },
|
'Neon City': { hex: '#39FF14' },
|
||||||
'Neon City': { hex: '#0047BB' },
|
'Neon Green': { hex: '#76FF03' },
|
||||||
'Neon Green': { hex: '#ABFF1E' },
|
'Neon Orange': { hex: '#FF6D00' },
|
||||||
'Neon Orange': { hex: '#F68A1B' },
|
'Ochre Yellow': { hex: '#CC7722' },
|
||||||
'Ochre Yellow': { hex: '#BC8B39' },
|
'Ocean to Meadow': { hex: '#4DB6AC' },
|
||||||
'Ocean to Meadow': { hex: '#A1E4CA' },
|
|
||||||
'Olive': { hex: '#748C45' },
|
'Olive': { hex: '#748C45' },
|
||||||
'Onyx Black Sparkle': { hex: '#2D2B28' },
|
'Onyx Black Sparkle': { hex: '#1A1A1A' },
|
||||||
'Orange': { hex: '#FF6A13' },
|
'Orange': { hex: '#FF6A13' },
|
||||||
'Oxide Green Metallic': { hex: '#1D7C6A' },
|
'Oxide Green Metallic': { hex: '#4A6741' },
|
||||||
'Peanut Brown': { hex: '#7E5A1F' },
|
'Peanut Brown': { hex: '#A0724A' },
|
||||||
'Pink': { hex: '#F55A74' },
|
'Pink': { hex: '#F55A74' },
|
||||||
'Pink Citrus': { hex: '#F8C4BC' },
|
'Pink Citrus': { hex: '#FF8A65' },
|
||||||
'Plum': { hex: '#851A52' },
|
'Plum': { hex: '#851A52' },
|
||||||
'Pumpkin Orange': { hex: '#FF8E16' },
|
'Pumpkin Orange': { hex: '#E87530' },
|
||||||
'Purple': { hex: '#5E43B7' },
|
'Purple': { hex: '#5E43B7' },
|
||||||
'Red': { hex: '#C12E1F' },
|
'Red': { hex: '#C12E1F' },
|
||||||
'Red Granite': { hex: '#AD4E38' },
|
'Red Granite': { hex: '#A0522D' },
|
||||||
'Rose Gold': { hex: '#B29593' },
|
'Rose Gold': { hex: '#B76E79' },
|
||||||
'Rosewood': { hex: '#472A22' },
|
'Rosewood': { hex: '#65000B' },
|
||||||
'Royal Blue': { hex: '#2842AD' },
|
'Royal Blue': { hex: '#002FA7' },
|
||||||
'Royal Purple Sparkle': { hex: '#483D8B' },
|
'Royal Purple Sparkle': { hex: '#6A1B9A' },
|
||||||
'Sakura Pink': { hex: '#E8AFCF' },
|
'Sakura Pink': { hex: '#E8AFCF' },
|
||||||
'Scarlet Red': { hex: '#DE4343' },
|
'Scarlet Red': { hex: '#DE4343' },
|
||||||
'Silver': { hex: '#A6A9AA' },
|
'Silver': { hex: '#A6A9AA' },
|
||||||
'Sky Blue': { hex: '#73B2E5' },
|
'Sky Blue': { hex: '#73B2E5' },
|
||||||
'Slate Gray Sparkle': { hex: '#8E9089' },
|
'Slate Gray Sparkle': { hex: '#708090' },
|
||||||
'Solar Breeze': { hex: '#F3D9D5' },
|
'Solar Breeze': { hex: '#FFD54F' },
|
||||||
'South Beach': { hex: '#468791' },
|
'South Beach': { hex: '#00BCD4' },
|
||||||
'Sunflower Yellow': { hex: '#FEC601' },
|
'Sunflower Yellow': { hex: '#FEC600' },
|
||||||
'Tangerine Yellow': { hex: '#FFC72C' },
|
'Tangerine Yellow': { hex: '#FFC72C' },
|
||||||
'Teal': { hex: '#77EDD7' },
|
'Teal': { hex: '#009FA1' },
|
||||||
'Terracotta': { hex: '#A25A37' },
|
'Terracotta': { hex: '#A25A37' },
|
||||||
'Titan Gray': { hex: '#606367' },
|
'Titan Gray': { hex: '#8A8D8F' },
|
||||||
'Transparent': { hex: '#FFFFFF' },
|
'Transparent': { hex: '#E8E8E8' },
|
||||||
'Turquoise': { hex: '#00B1B7' },
|
'Turquoise': { hex: '#00B1B7' },
|
||||||
'Velvet Eclipse': { hex: '#000000' },
|
'Velvet Eclipse': { hex: '#3B0A45' },
|
||||||
'Violet Purple': { hex: '#583061' },
|
'Violet Purple': { hex: '#583061' },
|
||||||
'White': { hex: '#FFFFFF' },
|
'White': { hex: '#FFFFFF' },
|
||||||
'White Marble': { hex: '#F7F3F0' },
|
'White Marble': { hex: '#E8E8E8' },
|
||||||
'White Oak': { hex: '#D2CCA2' },
|
'White Oak': { hex: '#C8B88A' },
|
||||||
'Yellow': { hex: '#F4EE2A' },
|
'Yellow': { hex: '#F4EE2A' },
|
||||||
|
|
||||||
// ABS Colors
|
// ABS Colors
|
||||||
'ABS GF Yellow': { hex: '#FDD835' },
|
'ABS Azure': { hex: '#3B7DD8' },
|
||||||
'ABS GF Orange': { hex: '#F48438' },
|
'ABS Olive': { hex: '#6B7339' },
|
||||||
'ABS Azure': { hex: '#489FDF' },
|
'ABS Blue': { hex: '#1A3C8F' },
|
||||||
'ABS Olive': { hex: '#748C45' },
|
'ABS Tangerine Yellow': { hex: '#FFBF00' },
|
||||||
'ABS Blue': { hex: '#0A2989' },
|
'ABS Navy Blue': { hex: '#1B2A4A' },
|
||||||
'ABS Tangerine Yellow': { hex: '#FFC72C' },
|
'ABS Orange': { hex: '#F57C20' },
|
||||||
'ABS Navy Blue': { hex: '#0C2340' },
|
|
||||||
'ABS Orange': { hex: '#FF6A13' },
|
|
||||||
'ABS Bambu Green': { hex: '#00AE42' },
|
'ABS Bambu Green': { hex: '#00AE42' },
|
||||||
'ABS Red': { hex: '#C12E1F' },
|
'ABS Red': { hex: '#C0392B' },
|
||||||
'ABS White': { hex: '#FFFFFF' },
|
'ABS White': { hex: '#FFFFFF' },
|
||||||
'ABS Black': { hex: '#000000' },
|
'ABS Black': { hex: '#1A1A1A' },
|
||||||
'ABS Silver': { hex: '#A6A9AA' },
|
'ABS Silver': { hex: '#B0B0B0' },
|
||||||
|
|
||||||
// PETG Translucent Colors
|
// PETG Translucent Colors
|
||||||
'Translucent Gray': { hex: '#B8B8B8' },
|
'Translucent Gray': { hex: '#A9A9A9' },
|
||||||
'Translucent Brown': { hex: '#C89A74' },
|
'Translucent Brown': { hex: '#8B4513' },
|
||||||
'Translucent Purple': { hex: '#C5A8D8' },
|
'Translucent Purple': { hex: '#800080' },
|
||||||
'Translucent Orange': { hex: '#FFB380' },
|
'Translucent Orange': { hex: '#FF8C00' },
|
||||||
'Translucent Olive': { hex: '#A4B885' },
|
'Translucent Olive': { hex: '#808000' },
|
||||||
'Translucent Pink': { hex: '#F9B8D0' },
|
'Translucent Pink': { hex: '#FFB6C1' },
|
||||||
'Translucent Light Blue': { hex: '#A8D8F0' },
|
'Translucent Light Blue': { hex: '#ADD8E6' },
|
||||||
'Translucent Tea': { hex: '#D9C7A8' },
|
'Translucent Teal': { hex: '#008B8B' },
|
||||||
|
|
||||||
// PLA Matte Colors
|
// PLA Matte Colors
|
||||||
'Matte Ivory White': { hex: '#FFFFF0' },
|
'Matte Ivory White': { hex: '#FFFFFF' },
|
||||||
'Matte Charcoal': { hex: '#333333' },
|
'Matte Charcoal': { hex: '#3C3C3C' },
|
||||||
'Matte Scarlet Red': { hex: '#DE4343' },
|
'Matte Scarlet Red': { hex: '#DE4343' },
|
||||||
'Matte Marine Blue': { hex: '#0078BF' },
|
'Matte Marine Blue': { hex: '#0078BF' },
|
||||||
'Matte Mandarin Orange': { hex: '#F99963' },
|
'Matte Mandarin Orange': { hex: '#F99963' },
|
||||||
'Matte Ash Gray': { hex: '#9B9EA0' },
|
'Matte Ash Gray': { hex: '#9B9EA0' },
|
||||||
'Matte Desert Tan': { hex: '#E8DBB7' },
|
'Matte Desert Tan': { hex: '#E8DBB7' },
|
||||||
'Matte Nardo Gray': { hex: '#747474' },
|
'Matte Nardo Gray': { hex: '#6E6E6E' },
|
||||||
'Matte Apple Green': { hex: '#C6E188' },
|
'Matte Apple Green': { hex: '#8DB600' },
|
||||||
'Matte Bone White': { hex: '#C8C5B6' },
|
'Matte Bone White': { hex: '#CBC6B8' },
|
||||||
'Matte Caramel': { hex: '#A4845C' },
|
'Matte Caramel': { hex: '#AE835B' },
|
||||||
'Matte Dark Blue': { hex: '#042F56' },
|
'Matte Dark Blue': { hex: '#1B3A5C' },
|
||||||
'Matte Dark Brown': { hex: '#7D6556' },
|
'Matte Dark Brown': { hex: '#7D6556' },
|
||||||
'Matte Dark Chocolate': { hex: '#4A3729' },
|
'Matte Dark Chocolate': { hex: '#4D3324' },
|
||||||
'Matte Dark Green': { hex: '#68724D' },
|
'Matte Dark Green': { hex: '#68724D' },
|
||||||
'Matte Dark Red': { hex: '#BB3D43' },
|
'Matte Dark Red': { hex: '#8B1A1A' },
|
||||||
'Matte Grass Green': { hex: '#7CB342' },
|
'Matte Grass Green': { hex: '#61C680' },
|
||||||
'Matte Ice Blue': { hex: '#A3D8E1' },
|
'Matte Ice Blue': { hex: '#A3D8E1' },
|
||||||
'Matte Lemon Yellow': { hex: '#F7D959' },
|
'Matte Lemon Yellow': { hex: '#F7D959' },
|
||||||
'Matte Lilac Purple': { hex: '#AE96D4' },
|
'Matte Lilac Purple': { hex: '#AE96D4' },
|
||||||
'Matte Plum': { hex: '#851A52' },
|
'Matte Plum': { hex: '#7D3F6B' },
|
||||||
'Matte Sakura Pink': { hex: '#E8AFCF' },
|
'Matte Sakura Pink': { hex: '#E8AFCF' },
|
||||||
'Matte Sky Blue': { hex: '#73B2E5' },
|
'Matte Sky Blue': { hex: '#7EB6D9' },
|
||||||
'Matte Latte Brown': { hex: '#D3B7A7' },
|
'Matte Latte Brown': { hex: '#D3B7A7' },
|
||||||
'Matte Terracotta': { hex: '#A25A37' },
|
'Matte Terracotta': { hex: '#B15533' },
|
||||||
|
|
||||||
// PLA Silk Multi-Color
|
// PLA Silk Multi-Color
|
||||||
'Silk Aurora Purple': { hex: ['#7F3696', '#006EC9'], isGradient: true },
|
'Phantom Blue': { hex: ['#00629B', '#000000'], isGradient: true },
|
||||||
'Silk Phantom Blue': { hex: ['#00629B', '#000000'], isGradient: true },
|
'Mystic Magenta': { hex: ['#720062', '#3A913F'], isGradient: true },
|
||||||
'Silk Mystic Magenta': { hex: ['#720062', '#3A913F'], isGradient: true },
|
|
||||||
|
|
||||||
// TPU Colors
|
// TPU Colors
|
||||||
'Flesh': { hex: '#E8C4A2' },
|
'Flesh': { hex: '#FFCCB0' },
|
||||||
'Grape Jelly': { hex: '#6B2D75' },
|
'Grape Jelly': { hex: '#6A0DAD' },
|
||||||
'Crystal Blue': { hex: '#5BC0EB' },
|
'Crystal Blue': { hex: '#68B8E8' },
|
||||||
'Quicksilver': { hex: '#A6A9AA' },
|
'Quicksilver': { hex: '#A6A6A6' }
|
||||||
'TPU 95A HF Yellow': { hex: '#F3E600' },
|
|
||||||
|
|
||||||
// Default fallback
|
|
||||||
'Unknown': { hex: '#CCCCCC' }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getFilamentColor(colorName: string): ColorMapping {
|
export function getFilamentColor(colorName: string): ColorMapping {
|
||||||
@@ -240,7 +230,7 @@ export function getFilamentColor(colorName: string): ColorMapping {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return default unknown color
|
// Return default unknown color
|
||||||
return bambuLabColors['Unknown'];
|
return { hex: '#CCCCCC' };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getColorStyle(colorMapping: ColorMapping): React.CSSProperties {
|
export function getColorStyle(colorMapping: ColorMapping): React.CSSProperties {
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ import { BAMBU_LAB_CATALOG } from './bambuLabCatalog';
|
|||||||
export const bambuLabColors: Record<string, string> = {
|
export const bambuLabColors: Record<string, string> = {
|
||||||
// PLA Basic
|
// PLA Basic
|
||||||
"Jade White": "#FFFFFF",
|
"Jade White": "#FFFFFF",
|
||||||
"Black": "#000000",
|
"Black": "#1A1A1A",
|
||||||
"White": "#FFFFFF",
|
"White": "#FFFFFF",
|
||||||
"Red": "#E53935",
|
"Red": "#C12E1F",
|
||||||
"Blue": "#1E88E5",
|
"Blue": "#0A2989",
|
||||||
"Green": "#43A047",
|
"Green": "#00AE42",
|
||||||
"Yellow": "#FDD835",
|
"Yellow": "#F4EE2A",
|
||||||
"Orange": "#FB8C00",
|
"Orange": "#FF6A13",
|
||||||
"Purple": "#5E43B7",
|
"Purple": "#5E43B7",
|
||||||
"Pink": "#F55A74",
|
"Pink": "#F55A74",
|
||||||
"Gray": "#8E9089",
|
"Gray": "#8E9089",
|
||||||
"Brown": "#9D432C",
|
"Brown": "#9D432C",
|
||||||
"Light Blue": "#61B0FF",
|
"Light Blue": "#61B0FF",
|
||||||
"Light Gray": "#D0D2D4",
|
"Light Gray": "#C8C8C8",
|
||||||
"Sky Blue": "#73B2E5",
|
"Sky Blue": "#73B2E5",
|
||||||
"Navy Blue": "#0C2340",
|
"Navy Blue": "#0C2340",
|
||||||
"Magenta": "#EC008C",
|
"Magenta": "#EC008C",
|
||||||
@@ -29,177 +29,188 @@ export const bambuLabColors: Record<string, string> = {
|
|||||||
"Lemon Yellow": "#F7D959",
|
"Lemon Yellow": "#F7D959",
|
||||||
"Cyan": "#0086D6",
|
"Cyan": "#0086D6",
|
||||||
"Sakura Pink": "#E8AFCF",
|
"Sakura Pink": "#E8AFCF",
|
||||||
"Cobalt Blue": "#0055B8",
|
"Cobalt Blue": "#0047AB",
|
||||||
"Mistletoe Green": "#3F8E43",
|
"Mistletoe Green": "#3F8E43",
|
||||||
"Dark Red": "#BB3D43",
|
"Dark Red": "#BB3D43",
|
||||||
"Hot Pink": "#F5547D",
|
"Hot Pink": "#FF4F81",
|
||||||
"Lavender": "#B5AAD5",
|
"Lavender": "#B39DDB",
|
||||||
"Sunflower Yellow": "#FEC601",
|
"Sunflower Yellow": "#FEC600",
|
||||||
"Pumpkin Orange": "#FF8E16",
|
"Pumpkin Orange": "#E87530",
|
||||||
"Lime": "#C5ED48",
|
"Lime": "#76FF03",
|
||||||
"Blue Grey": "#5B6579",
|
"Blue Grey": "#7B8E97",
|
||||||
"Gold": "#E4BD68",
|
"Gold": "#E4BD68",
|
||||||
"Bright Green": "#BDCF00",
|
"Bright Green": "#5EC323",
|
||||||
"Maroon Red": "#0A2989",
|
"Maroon Red": "#7B2D34",
|
||||||
"Turquoise": "#00B1B7",
|
"Turquoise": "#00B1B7",
|
||||||
"Bronze": "#847D48",
|
"Bronze": "#847D48",
|
||||||
"Silver": "#A6A9AA",
|
"Silver": "#A6A9AA",
|
||||||
"Dark Gray": "#555555",
|
"Dark Gray": "#515151",
|
||||||
|
|
||||||
// PLA Basic Gradient
|
// PLA Basic Gradient
|
||||||
"Neon City": "#0047BB",
|
"Neon City": "#39FF14",
|
||||||
"Midnight Blaze": "#0047BB",
|
"Midnight Blaze": "#2C1654",
|
||||||
"South Beach": "#468791",
|
"South Beach": "#00BCD4",
|
||||||
"Arctic Whisper": "#ECF7F8",
|
"Arctic Whisper": "#E0EFF6",
|
||||||
"Cotton Candy Cloud": "#E9E2EC",
|
"Cotton Candy Cloud": "#F8BBD0",
|
||||||
"Ocean to Meadow": "#A1E4CA",
|
"Ocean to Meadow": "#4DB6AC",
|
||||||
"Solar Breeze": "#F3D9D5",
|
"Solar Breeze": "#FFD54F",
|
||||||
"Velvet Eclipse": "#000000",
|
"Velvet Eclipse": "#3B0A45",
|
||||||
"Dawn Radiance": "#C472A1",
|
"Dawn Radiance": "#FFDAB9",
|
||||||
"Dusk Glare": "#F6B790",
|
"Dusk Glare": "#FF7043",
|
||||||
"Blueberry Bubblegum": "#BADCF4",
|
"Blueberry Bubblegum": "#7C4DFF",
|
||||||
"Blue Hawaii": "#739FE6",
|
"Blue Hawaii": "#00C5CD",
|
||||||
"Gilded Rose": "#ED982C",
|
"Gilded Rose": "#B76E79",
|
||||||
"Pink Citrus": "#F8C4BC",
|
"Pink Citrus": "#FF8A65",
|
||||||
"Mint Lime": "#BAF382",
|
"Mint Lime": "#A5D6A7",
|
||||||
|
|
||||||
// PLA Matte
|
// PLA Matte
|
||||||
"Matte Ivory White": "#FFFFF0",
|
"Matte Ivory White": "#FFFFFF",
|
||||||
"Matte Charcoal": "#333333",
|
"Matte Charcoal": "#3C3C3C",
|
||||||
"Matte Scarlet Red": "#DE4343",
|
"Matte Scarlet Red": "#DE4343",
|
||||||
"Matte Marine Blue": "#0078BF",
|
"Matte Marine Blue": "#0078BF",
|
||||||
"Matte Mandarin Orange": "#F99963",
|
"Matte Mandarin Orange": "#F99963",
|
||||||
"Matte Ash Gray": "#9B9EA0",
|
"Matte Ash Gray": "#9B9EA0",
|
||||||
"Matte Desert Tan": "#E8DBB7",
|
"Matte Desert Tan": "#E8DBB7",
|
||||||
"Matte Nardo Gray": "#747474",
|
"Matte Nardo Gray": "#6E6E6E",
|
||||||
"Matte Apple Green": "#C6E188",
|
"Matte Apple Green": "#8DB600",
|
||||||
"Matte Bone White": "#C8C5B6",
|
"Matte Bone White": "#CBC6B8",
|
||||||
"Matte Caramel": "#A4845C",
|
"Matte Caramel": "#AE835B",
|
||||||
"Matte Dark Blue": "#042F56",
|
"Matte Dark Blue": "#1B3A5C",
|
||||||
"Matte Dark Brown": "#7D6556",
|
"Matte Dark Brown": "#7D6556",
|
||||||
"Matte Dark Chocolate": "#4A3729",
|
"Matte Dark Chocolate": "#4D3324",
|
||||||
"Matte Dark Green": "#68724D",
|
"Matte Dark Green": "#68724D",
|
||||||
"Matte Dark Red": "#BB3D43",
|
"Matte Dark Red": "#8B1A1A",
|
||||||
"Matte Grass Green": "#7CB342",
|
"Matte Grass Green": "#61C680",
|
||||||
"Matte Ice Blue": "#A3D8E1",
|
"Matte Ice Blue": "#A3D8E1",
|
||||||
"Matte Lemon Yellow": "#F7D959",
|
"Matte Lemon Yellow": "#F7D959",
|
||||||
"Matte Lilac Purple": "#AE96D4",
|
"Matte Lilac Purple": "#AE96D4",
|
||||||
"Matte Plum": "#851A52",
|
"Matte Plum": "#7D3F6B",
|
||||||
"Matte Sakura Pink": "#E8AFCF",
|
"Matte Sakura Pink": "#E8AFCF",
|
||||||
"Matte Sky Blue": "#73B2E5",
|
"Matte Sky Blue": "#7EB6D9",
|
||||||
"Matte Latte Brown": "#D3B7A7",
|
"Matte Latte Brown": "#D3B7A7",
|
||||||
"Matte Terracotta": "#A25A37",
|
"Matte Terracotta": "#B15533",
|
||||||
|
|
||||||
// PLA Silk+
|
// PLA Silk+
|
||||||
"Candy Green": "#408619",
|
"Candy Green": "#66CDAA",
|
||||||
"Candy Red": "#BB3A2E",
|
"Candy Red": "#E8505B",
|
||||||
"Mint": "#A5DAB7",
|
"Mint": "#98FFB0",
|
||||||
"Titan Gray": "#606367",
|
"Titan Gray": "#8A8D8F",
|
||||||
"Rose Gold": "#B29593",
|
"Rose Gold": "#B76E79",
|
||||||
"Champagne": "#EBD0B1",
|
"Champagne": "#F7E7CE",
|
||||||
"Baby Blue": "#AEC3ED",
|
"Baby Blue": "#89CFF0",
|
||||||
|
|
||||||
// PLA Silk Multi-Color
|
// PLA Silk Multi-Color
|
||||||
"Silk Aurora Purple": "#7F3696",
|
"Aurora Purple": "#9C27B0",
|
||||||
"Silk Phantom Blue": "#00629B",
|
"Phantom Blue": "#1A237E",
|
||||||
"Silk Mystic Magenta": "#720062",
|
"Mystic Magenta": "#E040FB",
|
||||||
|
|
||||||
// PLA Metal
|
// PLA Metal
|
||||||
"Iron Gray Metallic": "#6B6C6F",
|
"Iron Gray Metallic": "#6E6E6E",
|
||||||
"Iridium Gold Metallic": "#B39B84",
|
"Iridium Gold Metallic": "#C5A04D",
|
||||||
"Cobalt Blue Metallic": "#39699E",
|
"Cobalt Blue Metallic": "#0047AB",
|
||||||
"Copper Brown Metallic": "#AA6443",
|
"Copper Brown Metallic": "#B87333",
|
||||||
"Oxide Green Metallic": "#1D7C6A",
|
"Oxide Green Metallic": "#4A6741",
|
||||||
|
|
||||||
// PLA Sparkle
|
// PLA Sparkle
|
||||||
"Onyx Black Sparkle": "#2D2B28",
|
"Onyx Black Sparkle": "#1A1A1A",
|
||||||
"Classic Gold Sparkle": "#E4BD68",
|
"Classic Gold Sparkle": "#CFB53B",
|
||||||
"Crimson Red Sparkle": "#792B36",
|
"Crimson Red Sparkle": "#B71C1C",
|
||||||
"Royal Purple Sparkle": "#483D8B",
|
"Royal Purple Sparkle": "#6A1B9A",
|
||||||
"Slate Gray Sparkle": "#8E9089",
|
"Slate Gray Sparkle": "#708090",
|
||||||
"Alpine Green Sparkle": "#3F5443",
|
"Alpine Green Sparkle": "#2E7D32",
|
||||||
|
|
||||||
|
// PLA Translucent
|
||||||
|
"Teal": "#009FA1",
|
||||||
|
"Light Jade": "#C8E6C9",
|
||||||
|
"Mellow Yellow": "#F8E875",
|
||||||
|
"Cherry Pink": "#DE3163",
|
||||||
|
"Ice Blue": "#A5DEE4",
|
||||||
|
|
||||||
// PLA Galaxy
|
// PLA Galaxy
|
||||||
"Nebulae": "#424379",
|
"Nebulae": "#4A148C",
|
||||||
|
|
||||||
// PLA Marble
|
// PLA Marble
|
||||||
"White Marble": "#F7F3F0",
|
"White Marble": "#E8E8E8",
|
||||||
"Red Granite": "#AD4E38",
|
"Red Granite": "#A0522D",
|
||||||
|
|
||||||
// PLA Glow
|
// PLA Glow
|
||||||
"Glow Blue": "#7AC0E9",
|
"Glow Blue": "#5DADE2",
|
||||||
"Glow Green": "#A1FFAC",
|
"Glow Green": "#82E0AA",
|
||||||
"Glow Orange": "#FF9D5B",
|
"Glow Orange": "#FFB347",
|
||||||
"Glow Pink": "#F17B8F",
|
"Glow Pink": "#FF69B4",
|
||||||
"Glow Yellow": "#F8FF80",
|
"Glow Yellow": "#FFEB3B",
|
||||||
|
|
||||||
// PLA Wood
|
// PLA Wood
|
||||||
"Ochre Yellow": "#BC8B39",
|
"Ochre Yellow": "#CC7722",
|
||||||
"White Oak": "#D2CCA2",
|
"White Oak": "#C8B88A",
|
||||||
"Clay Brown": "#8E621A",
|
"Clay Brown": "#B08968",
|
||||||
|
"Black Walnut": "#3E2723",
|
||||||
|
"Rosewood": "#65000B",
|
||||||
|
"Classic Birch": "#D7C49E",
|
||||||
|
|
||||||
// PLA CF
|
// PLA CF
|
||||||
"Burgundy Red": "#951E23",
|
"Burgundy Red": "#800020",
|
||||||
"Jeans Blue": "#6E88BC",
|
"Jeans Blue": "#4A6FA5",
|
||||||
"Lava Gray": "#4D5054",
|
"Lava Gray": "#5B5B5B",
|
||||||
"Matcha Green": "#5C9748",
|
"Matcha Green": "#7B9B5B",
|
||||||
"Royal Blue": "#2842AD",
|
"Royal Blue": "#002FA7",
|
||||||
"Iris Purple": "#69398E",
|
"Iris Purple": "#5B3A8C",
|
||||||
|
|
||||||
// PETG HF
|
// PETG HF
|
||||||
"Cream": "#F3E0B8",
|
"Cream": "#F5E6C8",
|
||||||
"Forest Green": "#415520",
|
"Forest Green": "#39541A",
|
||||||
"Lake Blue": "#4672E4",
|
"Lake Blue": "#1F79E5",
|
||||||
"Lime Green": "#8EE43D",
|
"Lime Green": "#7EC845",
|
||||||
"Peanut Brown": "#7E5A1F",
|
"Peanut Brown": "#A0724A",
|
||||||
|
|
||||||
// PETG Translucent
|
// PETG Translucent
|
||||||
"Clear": "#FAFAFA",
|
"Clear": "#F0F0F0",
|
||||||
"Translucent Gray": "#B8B8B8",
|
"Translucent Gray": "#A9A9A9",
|
||||||
"Translucent Brown": "#C89A74",
|
"Translucent Brown": "#8B4513",
|
||||||
"Translucent Purple": "#C5A8D8",
|
"Translucent Purple": "#800080",
|
||||||
"Translucent Orange": "#FFB380",
|
"Translucent Orange": "#FF8C00",
|
||||||
"Translucent Olive": "#A4B885",
|
"Translucent Olive": "#808000",
|
||||||
"Translucent Pink": "#F9B8D0",
|
"Translucent Pink": "#FFB6C1",
|
||||||
"Translucent Light Blue": "#A8D8F0",
|
"Translucent Light Blue": "#ADD8E6",
|
||||||
"Translucent Tea": "#D9C7A8",
|
"Translucent Teal": "#008B8B",
|
||||||
|
|
||||||
// PETG CF
|
// PETG CF
|
||||||
"Brick Red": "#9F332A",
|
"Brick Red": "#9F332A",
|
||||||
"Indigo Blue": "#324585",
|
"Indigo Blue": "#324585",
|
||||||
"Malachite Green": "#16B08E",
|
"Malachite Green": "#0BDA51",
|
||||||
"Violet Purple": "#583061",
|
"Violet Purple": "#583061",
|
||||||
|
|
||||||
// ABS
|
// ABS
|
||||||
"ABS Azure": "#489FDF",
|
"ABS Azure": "#3B7DD8",
|
||||||
"ABS Black": "#000000",
|
"ABS Black": "#1A1A1A",
|
||||||
"ABS Blue": "#0A2989",
|
"ABS Blue": "#1A3C8F",
|
||||||
"ABS Olive": "#748C45",
|
"ABS Olive": "#6B7339",
|
||||||
"ABS Tangerine Yellow": "#FFC72C",
|
"ABS Tangerine Yellow": "#FFBF00",
|
||||||
"ABS Navy Blue": "#0C2340",
|
"ABS Navy Blue": "#1B2A4A",
|
||||||
"ABS Orange": "#FF6A13",
|
"ABS Orange": "#F57C20",
|
||||||
"ABS Bambu Green": "#00AE42",
|
"ABS Bambu Green": "#00AE42",
|
||||||
"ABS Red": "#C12E1F",
|
"ABS Red": "#C0392B",
|
||||||
"ABS White": "#FFFFFF",
|
"ABS White": "#FFFFFF",
|
||||||
"ABS Silver": "#A6A9AA",
|
"ABS Silver": "#B0B0B0",
|
||||||
"ABS GF Yellow": "#FDD835",
|
|
||||||
"ABS GF Orange": "#F48438",
|
// Additional PLA Basic
|
||||||
|
"Indigo Purple": "#3B2D6B",
|
||||||
|
|
||||||
// TPU
|
// TPU
|
||||||
"Flesh": "#E8C4A2",
|
"Neon Green": "#76FF03",
|
||||||
"Light Cyan": "#B9E3DF",
|
"Flesh": "#FFCCB0",
|
||||||
"Neon Orange": "#F68A1B",
|
"Light Cyan": "#B2EBF2",
|
||||||
"Blaze": "#E78390",
|
"Neon Orange": "#FF6D00",
|
||||||
"Frozen": "#A6DEF3",
|
"Blaze": "#FF5722",
|
||||||
"Grape Jelly": "#6B2D75",
|
"Frozen": "#E0F7FA",
|
||||||
"Crystal Blue": "#5BC0EB",
|
"Grape Jelly": "#6A0DAD",
|
||||||
"Quicksilver": "#A6A9AA",
|
"Crystal Blue": "#68B8E8",
|
||||||
"Cocoa Brown": "#6F5034",
|
"Quicksilver": "#A6A6A6",
|
||||||
"TPU 95A HF Yellow": "#F3E600",
|
"Cocoa Brown": "#6B4332",
|
||||||
|
|
||||||
// PC
|
// PC
|
||||||
"Clear Black": "#5A5161",
|
"Clear Black": "#2C2C2C",
|
||||||
"Transparent": "#FFFFFF",
|
"Transparent": "#E8E8E8",
|
||||||
};
|
};
|
||||||
|
|
||||||
// Colors grouped by finish type — derived from catalog
|
// Colors grouped by finish type — derived from catalog
|
||||||
|
|||||||
Reference in New Issue
Block a user