# Farbe ändern im Quellcode

**URL:** <https://forum.shopware.com/t/farbe-andern-im-quellcode/37219>\
**Category:** Themes & Design\
**Created:** [3. Juni 2016 um 15:17 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219 "2016-06-03T15:17:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [3. Juni 2016 um 15:17 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/1 "2016-06-03T15:17:59Z")

</div>

Hallo

&nbsp;

Ich habe ein eigenes Template über den Template Manager erstellt.&nbsp;

Wo im Quellcode finde ich den die Farb einstellung wie zb. Brand Primary Brand Secondary?

Ich möchte nähmlich das eine Brand Secondary Farbe eine andere ist wie das Brand Secondary.

&nbsp;

Beste Grüße

&nbsp;

---

<div class="post-metadata">

**Author:** ![pixalla](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@pixalla](https://forum.shopware.com/u/pixalla)\
**Post date:** [3. Juni 2016 um 15:34 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/2 "2016-06-03T15:34:36Z")

</div>

Hallo malakiras,

du kannst direkt in dem Template Manager sämtliche Farben anpassen, auch den Bereich der Brand Secondary. Wenn du die Farbe auserhalb des Manager anpassen möchtest, musst du die Anpassung in einer LESS Datei vornehmen.&nbsp;

Beste Grüße

&nbsp;

---

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [3. Juni 2016 um 15:53 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/3 "2016-06-03T15:53:55Z")

</div>

Problematik ist nur das ich bei der Brand Secondary einen bestimmten Teil nähmlich die eingabe bei den Formularen oder zum Beispiel bei der Suche, da tippe ich etwas ein und ich bekomme nur eine weiße Schrift also ich sehe nichts von dem was ich eintippe, und ich möchte ungern meinen Hintergrund auch Schwarz haben sondern nur das was ich eintippe. Leider ändert sich aber die Farbe nicht egal was ich auch ändere.

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [4. Juni 2016 um 09:57 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/4 "2016-06-04T09:57:29Z")

</div>

Brand Secondary ist eine Variable die verschiedenen Elementen&nbsp;zugewiesen werden kann. Falls das Element über das Backend nicht konfiguriert werden kann,&nbsp;muss du es in LESS oder CSS machen. Und falls es dieses Element noch keine Klasse hat, musst vorher diese Klasse schaffen.

---

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [4. Juni 2016 um 17:04 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/5 "2016-06-04T17:04:09Z")

</div>

> [@NextMike schrieb:](https://forum.shopware.com/profile/19433/NextMike "NextMike")
> 
> Brand Secondary ist eine Variable die verschiedenen Elementen&nbsp;zugewiesen werden kann. Falls das Element über das Backend nicht konfiguriert werden kann,&nbsp;muss du es in LESS oder CSS machen. Und falls es dieses Element noch keine Klasse hat, musst vorher diese Klasse schaffen.

Danke für deine Antwort und wie kann ich das über LESS machen?

&nbsp;

---

<div class="post-metadata">

**Author:** ![pixalla](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@pixalla](https://forum.shopware.com/u/pixalla)\
**Post date:** [4. Juni 2016 um 17:28 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/6 "2016-06-04T17:28:36Z")

</div>

Hallo malakiras,

du findest die LESS Datei in deinem Theme Ordner. Der Pfad sollte so aussehen:&nbsp;/themes/Frontend/DEIN-THEME/frontend/\_public/src/less

Beste Grüße

---

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [4. Juni 2016 um 17:31 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/7 "2016-06-04T17:31:54Z")

</div>

Unter diesem Pfad habe ich 4 Ordner&nbsp;

\_components

\_mixins

\_modules

\_variables

Wie soll ich weiter vorgehen?

---

<div class="post-metadata">

**Author:** ![useg](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@useg](https://forum.shopware.com/u/useg)\
**Post date:** [5. Juni 2016 um 09:01 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/8 "2016-06-05T09:01:13Z")

</div>

Schau mal hier da hat&nbsp;@kayyy‍&nbsp;mal was im Video-Tutorials&nbsp;zusammengestellt und sollte Dir dabei helfen.\>&nbsp;[https://shopwareianer.com/tutorials/shopware-eigene-less-datei-anlegen](https://shopwareianer.com/tutorials/shopware-eigene-less-datei-anlegen)

Uwe

---

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [5. Juni 2016 um 23:07 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/9 "2016-06-05T23:07:19Z")

</div>

Okay komme soweit zurecht damit nur das PROBLEM ist jetzt, ich kann einfach das Theme nicht kompilieren.

Ich habe die all.less erstellt und dieser mit header.less verbunden, alles schön und gut. Aber nun will ich kompilieren und ich warte schon seit 10 Minuten und es tut sich einfach nichts.&nbsp;

Woran kann das liegen?

&nbsp;

---

<div class="post-metadata">

**Author:** ![hds](https://avatars.discourse-cdn.com/v4/letter/h/bb73d2/32.png) [@hds](https://forum.shopware.com/u/hds)\
**Post date:** [5. Juni 2016 um 23:37 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/10 "2016-06-05T23:37:51Z")

</div>

Vielleicht etwas vergessen oder doppelt eingetragen wie z.B. Klammer, Semikon

---

<div class="post-metadata">

**Author:** ![malakiras](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@malakiras](https://forum.shopware.com/u/malakiras)\
**Post date:** [5. Juni 2016 um 23:52 UTC](https://forum.shopware.com/t/farbe-andern-im-quellcode/37219/11 "2016-06-05T23:52:11Z")

</div>

Tatsächlich ! Danke 😃
