From 70ded8e3c38c2cfc21744b7fe085c10f72111ab8 Mon Sep 17 00:00:00 2001 From: Linde Vrenne Date: Mon, 12 Oct 2026 13:47:38 +0200 Subject: [PATCH] =?UTF-8?q?La=20til=20figma=20styling=20med=20komponenter?= =?UTF-8?q?=20og=20theme.=20Endret=20litt=20p=C3=A5=20App.tsx=20slik=20at?= =?UTF-8?q?=20test=20siden=20ogs=C3=A5=20har=20mer=20v=C3=A5rt=20tema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.css | 20 +- frontend/src/App.tsx | 2 +- frontend/src/components/badge/Badge.css | 27 +++ frontend/src/components/button/Button.css | 66 +++++++ frontend/src/components/card/Card.css | 15 ++ .../components/categoryCard/CategoryCard.css | 74 ++++++++ frontend/src/components/checkbox/Checkbox.css | 40 ++++ .../src/components/filterChip/FilterChip.css | 22 +++ .../src/components/filterRow/FilterRow.css | 25 +++ frontend/src/components/header/Header.css | 45 +++++ frontend/src/components/logo/Logo.css | 35 ++++ frontend/src/components/noteItem/NoteItem.css | 26 +++ frontend/src/components/priceRow/PriceRow.css | 0 .../quantityStepper/QuantityStepper.css | 31 +++ .../src/components/resultRow/ResultRow.css | 112 +++++++++++ .../components/searchfield/Searchfield.css | 86 +++++++++ .../segmentedControl/SegmentedControl.css | 28 +++ .../shoppingListRow/ShoppingListRow.css | 68 +++++++ frontend/src/main.tsx | 3 +- frontend/src/tema.css | 90 --------- frontend/src/theme.css | 176 ++++++++++++++++++ 21 files changed, 889 insertions(+), 102 deletions(-) create mode 100644 frontend/src/components/badge/Badge.css create mode 100644 frontend/src/components/button/Button.css create mode 100644 frontend/src/components/card/Card.css create mode 100644 frontend/src/components/categoryCard/CategoryCard.css create mode 100644 frontend/src/components/checkbox/Checkbox.css create mode 100644 frontend/src/components/filterChip/FilterChip.css create mode 100644 frontend/src/components/filterRow/FilterRow.css create mode 100644 frontend/src/components/header/Header.css create mode 100644 frontend/src/components/logo/Logo.css create mode 100644 frontend/src/components/noteItem/NoteItem.css create mode 100644 frontend/src/components/priceRow/PriceRow.css create mode 100644 frontend/src/components/quantityStepper/QuantityStepper.css create mode 100644 frontend/src/components/resultRow/ResultRow.css create mode 100644 frontend/src/components/searchfield/Searchfield.css create mode 100644 frontend/src/components/segmentedControl/SegmentedControl.css create mode 100644 frontend/src/components/shoppingListRow/ShoppingListRow.css delete mode 100644 frontend/src/tema.css create mode 100644 frontend/src/theme.css diff --git a/frontend/src/App.css b/frontend/src/App.css index f987250..1223237 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1,5 +1,5 @@ /* Hjemskjerm – styling etter Figma (Handlelappen – notatbok). - Farger og skrift kommer fra tema.css. */ + Farger og skrift kommer fra styles/theme.css. */ #root { max-width: 1100px; @@ -21,20 +21,20 @@ max-width: 480px; padding: 10px 14px; font: 15px var(--font-ui); - color: var(--blekk); - background: var(--hvit); - border: 1px solid var(--blekk); + color: var(--text-primary); + background: var(--bg-surface); + border: 1px solid var(--border-strong); border-radius: 8px; } .search input:focus { - outline: 2px solid var(--bringebaer); + outline: 2px solid var(--text-accent); outline-offset: 2px; } .search button { - background: var(--bringebaer); - color: var(--hvit); + background: var(--bg-primary); + color: var(--text-on-dark); border: none; border-radius: 8px; padding: 10px 16px; @@ -55,7 +55,7 @@ gap: 1rem; align-items: center; padding: 0.75rem 0; - border-bottom: 1px solid #e5e5e5; + border-bottom: 1px solid var(--border-hairline); } .product img, @@ -63,8 +63,8 @@ width: 64px; height: 64px; object-fit: contain; - background: var(--hvit); - border: 1px solid var(--burgunder); + background: var(--bg-surface); + border: 1px solid var(--border-brand); border-radius: 6px; flex-shrink: 0; } \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index fd4dd23..ab7dfc1 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -86,7 +86,7 @@ function App() { )} {data && data.products.length > 0 && ( -